feat(app): lint & beautify
This commit is contained in:
parent
9db847c366
commit
b9509a5d41
|
@ -115,11 +115,7 @@ const createBasicAcademicSearchRetrieverChain = (llm: BaseChatModel) => {
|
|||
|
||||
const res = await searchSearxng(input, {
|
||||
language: 'en',
|
||||
engines: [
|
||||
'arxiv',
|
||||
'google scholar',
|
||||
'pubmed',
|
||||
],
|
||||
engines: ['arxiv', 'google scholar', 'pubmed'],
|
||||
});
|
||||
|
||||
const documents = res.results.map(
|
||||
|
|
|
@ -121,7 +121,13 @@ router.post('/', async (req, res) => {
|
|||
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 sources = [];
|
||||
|
|
Loading…
Reference in New Issue