Skip to content
Snippets Groups Projects
Unverified Commit 86ba16ac authored by Sean Hatfield's avatar Sean Hatfield Committed by GitHub
Browse files

Add new Voyage AI embedding models (#2193)

new voyageai embedding models
parent bc0cc206
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,8 @@ export default function VoyageAiOptions({ settings }) { ...@@ -30,6 +30,8 @@ export default function VoyageAiOptions({ settings }) {
<optgroup label="Available embedding models"> <optgroup label="Available embedding models">
{[ {[
"voyage-large-2-instruct", "voyage-large-2-instruct",
"voyage-finance-2",
"voyage-multilingual-2",
"voyage-law-2", "voyage-law-2",
"voyage-code-2", "voyage-code-2",
"voyage-large-2", "voyage-large-2",
......
...@@ -21,6 +21,9 @@ class VoyageAiEmbedder { ...@@ -21,6 +21,9 @@ class VoyageAiEmbedder {
// https://docs.voyageai.com/docs/embeddings // https://docs.voyageai.com/docs/embeddings
#getMaxEmbeddingLength() { #getMaxEmbeddingLength() {
switch (this.model) { switch (this.model) {
case "voyage-finance-2":
case "voyage-multilingual-2":
return 32_000;
case "voyage-large-2-instruct": case "voyage-large-2-instruct":
case "voyage-law-2": case "voyage-law-2":
case "voyage-code-2": case "voyage-code-2":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment