feat(webSearchRetriever): use `question` instead of `input`
This commit is contained in:
parent
c952469f08
commit
92abbc5b98
|
@ -248,7 +248,7 @@ const createBasicWebSearchRetrieverChain = (llm: BaseChatModel) => {
|
|||
|
||||
return { query: question, docs: docs };
|
||||
} else {
|
||||
const res = await searchSearxng(input, {
|
||||
const res = await searchSearxng(question, {
|
||||
language: 'en',
|
||||
});
|
||||
|
||||
|
@ -264,7 +264,7 @@ const createBasicWebSearchRetrieverChain = (llm: BaseChatModel) => {
|
|||
}),
|
||||
);
|
||||
|
||||
return { query: input, docs: documents };
|
||||
return { query: question, docs: documents };
|
||||
}
|
||||
}),
|
||||
]);
|
||||
|
|
Loading…
Reference in New Issue