Skip to content

Commit

Permalink
Add new Voyage AI embedding models (#2193)
Browse files Browse the repository at this point in the history
new voyageai embedding models
  • Loading branch information
shatfield4 authored Aug 29, 2024
1 parent bc0cc20 commit 86ba16a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export default function VoyageAiOptions({ settings }) {
<optgroup label="Available embedding models">
{[
"voyage-large-2-instruct",
"voyage-finance-2",
"voyage-multilingual-2",
"voyage-law-2",
"voyage-code-2",
"voyage-large-2",
Expand Down
3 changes: 3 additions & 0 deletions server/utils/EmbeddingEngines/voyageAi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class VoyageAiEmbedder {
// https://docs.voyageai.com/docs/embeddings
#getMaxEmbeddingLength() {
switch (this.model) {
case "voyage-finance-2":
case "voyage-multilingual-2":
return 32_000;
case "voyage-large-2-instruct":
case "voyage-law-2":
case "voyage-code-2":
Expand Down

0 comments on commit 86ba16a

Please sign in to comment.