Skip to content
Snippets Groups Projects
Unverified Commit e0753547 authored by Blazej Owczarczyk's avatar Blazej Owczarczyk Committed by GitHub
Browse files

Added voyage-3 and voyage-3-lite. (#2394)

parent cadc09d7
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,8 @@ export default function VoyageAiOptions({ settings }) { ...@@ -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 { ...@@ -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 { ...@@ -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":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment