feat(server): replace existing search functionality with searxng library
This commit is contained in:
parent
96f67c7028
commit
28077018a6
11 changed files with 460 additions and 519 deletions
|
|
@ -113,8 +113,8 @@ const createBasicYoutubeSearchRetrieverChain = (llm: BaseChatModel) => {
|
|||
}
|
||||
|
||||
const res = await searchSearxng(input, {
|
||||
language: 'en',
|
||||
engines: ['youtube'],
|
||||
lang: 'en',
|
||||
engines: ['youtube_api'],
|
||||
});
|
||||
|
||||
const documents = res.results.map(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue