mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 12:40:09 +01:00
Added voyage-3 and voyage-3-lite. (#2394)
This commit is contained in:
parent
cadc09d71a
commit
e07535471f
@ -36,6 +36,8 @@ export default function VoyageAiOptions({ settings }) {
|
|||||||
"voyage-code-2",
|
"voyage-code-2",
|
||||||
"voyage-large-2",
|
"voyage-large-2",
|
||||||
"voyage-2",
|
"voyage-2",
|
||||||
|
"voyage-3",
|
||||||
|
"voyage-3-lite",
|
||||||
].map((model) => {
|
].map((model) => {
|
||||||
return (
|
return (
|
||||||
<option key={model} value={model}>
|
<option key={model} value={model}>
|
||||||
|
@ -11,7 +11,7 @@ class VoyageAiEmbedder {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.voyage = voyage;
|
this.voyage = voyage;
|
||||||
this.model = process.env.EMBEDDING_MODEL_PREF || "voyage-large-2-instruct";
|
this.model = process.env.EMBEDDING_MODEL_PREF || "voyage-3-lite";
|
||||||
|
|
||||||
// Limit of how many strings we can process in a single pass to stay with resource or network limits
|
// Limit of how many strings we can process in a single pass to stay with resource or network limits
|
||||||
this.batchSize = 128; // Voyage AI's limit per request is 128 https://docs.voyageai.com/docs/rate-limits#use-larger-batches
|
this.batchSize = 128; // Voyage AI's limit per request is 128 https://docs.voyageai.com/docs/rate-limits#use-larger-batches
|
||||||
@ -23,6 +23,8 @@ class VoyageAiEmbedder {
|
|||||||
switch (this.model) {
|
switch (this.model) {
|
||||||
case "voyage-finance-2":
|
case "voyage-finance-2":
|
||||||
case "voyage-multilingual-2":
|
case "voyage-multilingual-2":
|
||||||
|
case "voyage-3":
|
||||||
|
case "voyage-3-lite":
|
||||||
return 32_000;
|
return 32_000;
|
||||||
case "voyage-large-2-instruct":
|
case "voyage-large-2-instruct":
|
||||||
case "voyage-law-2":
|
case "voyage-law-2":
|
||||||
|
Loading…
Reference in New Issue
Block a user