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, {
|
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(
|
||||||
|
|
|
@ -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 = [];
|
||||||
|
|
Loading…
Reference in New Issue