feat(server): replace existing search functionality with searxng library

This commit is contained in:
Zan 2024-07-31 11:23:39 +08:00
parent 96f67c7028
commit 28077018a6
11 changed files with 460 additions and 519 deletions

View file

@ -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(