feat(app): lint & beautify

This commit is contained in:
ItzCrazyKns 2024-10-15 16:21:29 +05:30
parent 9db847c366
commit b9509a5d41
3 changed files with 9 additions and 7 deletions

View File

@ -115,11 +115,7 @@ const createBasicAcademicSearchRetrieverChain = (llm: BaseChatModel) => {
const res = await searchSearxng(input, { const res = await searchSearxng(input, {
language: 'en', language: 'en',
engines: [ engines: ['arxiv', 'google scholar', 'pubmed'],
'arxiv',
'google scholar',
'pubmed',
],
}); });
const documents = res.results.map( const documents = res.results.map(

View File

@ -121,7 +121,13 @@ router.post('/', async (req, res) => {
return res.status(400).json({ message: 'Invalid focus mode' }); return res.status(400).json({ message: 'Invalid focus mode' });
} }
const emitter = searchHandler(body.query, history, llm, embeddings, body.optimizationMode); const emitter = searchHandler(
body.query,
history,
llm,
embeddings,
body.optimizationMode,
);
let message = ''; let message = '';
let sources = []; let sources = [];