mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-04-30 08:12:26 +00:00
feat(webSearchRetriever): use question
instead of input
This commit is contained in:
@ -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 };
|
||||
}
|
||||
}),
|
||||
]);
|
||||
|
Reference in New Issue
Block a user