lint
This commit is contained in:
parent
09463999c2
commit
9a7af945b0
|
@ -36,4 +36,4 @@ services:
|
||||||
- perplexica-network
|
- perplexica-network
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
perplexica-network:
|
perplexica-network:
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node dist/app.js",
|
"start": "node dist/app.js",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"dev": "nodemon src/app.ts" ,
|
"dev": "nodemon src/app.ts",
|
||||||
"format": "prettier . --check",
|
"format": "prettier . --check",
|
||||||
"format:write": "prettier . --write"
|
"format:write": "prettier . --write"
|
||||||
},
|
},
|
||||||
|
|
|
@ -157,7 +157,6 @@ export const getAvailableEmbeddingModelProviders = async () => {
|
||||||
});
|
});
|
||||||
return acc;
|
return acc;
|
||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error(`Error loading Ollama embeddings: ${err}`);
|
logger.error(`Error loading Ollama embeddings: ${err}`);
|
||||||
}
|
}
|
||||||
|
@ -172,11 +171,11 @@ export const getAvailableEmbeddingModelProviders = async () => {
|
||||||
modelName: 'Xenova/gte-small',
|
modelName: 'Xenova/gte-small',
|
||||||
}),
|
}),
|
||||||
'Bert Multilingual': new HuggingFaceTransformersEmbeddings({
|
'Bert Multilingual': new HuggingFaceTransformersEmbeddings({
|
||||||
modelName: 'Xenova/bert-base-multilingual-uncased'
|
modelName: 'Xenova/bert-base-multilingual-uncased',
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
} catch(err) {
|
} catch (err) {
|
||||||
logger.error(`Error loading local embeddings: ${err}`);
|
logger.error(`Error loading local embeddings: ${err}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return models;
|
return models;
|
||||||
|
|
Loading…
Reference in New Issue