Skip to content

Commit

Permalink
feat: add support for voyage-3-large and voyage-code-3 embedding mode…
Browse files Browse the repository at this point in the history
…ls (#2955)

* feat: add support for voyage-3-large and voyage-code-3 embedding models

- Add voyage-3-large and voyage-code-3 to VoyageAiOptions dropdown
- Update getMaxEmbeddingLength to support 32k context for new models
- Update .env.example with new model options

* unset env example

---------

Co-authored-by: timothycarambat <[email protected]>
  • Loading branch information
root-reindeer-flotilla and timothycarambat authored Jan 9, 2025
1 parent 487db89 commit be886f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export default function VoyageAiOptions({ settings }) {
"voyage-2",
"voyage-3",
"voyage-3-lite",
"voyage-3-large",
"voyage-code-3",
].map((model) => {
return (
<option key={model} value={model}>
Expand Down
2 changes: 2 additions & 0 deletions server/utils/EmbeddingEngines/voyageAi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class VoyageAiEmbedder {
case "voyage-multilingual-2":
case "voyage-3":
case "voyage-3-lite":
case "voyage-3-large":
case "voyage-code-3":
return 32_000;
case "voyage-large-2-instruct":
case "voyage-law-2":
Expand Down

0 comments on commit be886f7

Please sign in to comment.