Skip to content

Commit

Permalink
refactor(ragToolkit): rename llmInstance to llm for consistency; upda…
Browse files Browse the repository at this point in the history
…te query in tool stories
  • Loading branch information
anthonydevs17 committed Nov 27, 2024
1 parent 8dd2e08 commit 1ccbd4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/tools/src/_utils/rag/ragToolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class RAGToolkit {
);

const chain = await createStuffDocumentsChain({
llmInstance: this.llmInstance,
llm: this.llmInstance,
prompt: promptTemplate,
outputParser: new StringOutputParser(),
});
Expand Down
2 changes: 1 addition & 1 deletion packages/tools/src/simple-rag/tool.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const Default = {
args: {
toolInstance: simpleRAGTool,
callParams: {
query: 'What is the capital of France?',
query: 'What is Kaiban?',
content,
},
},
Expand Down

0 comments on commit 1ccbd4c

Please sign in to comment.