Skip to content
Snippets Groups Projects
Unverified Commit be886f7d authored by ReindeerFlotilla's avatar ReindeerFlotilla Committed by GitHub
Browse files

feat: add support for voyage-3-large and voyage-code-3 embedding models (#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: default avatartimothycarambat <rambat1010@gmail.com>
parent 487db896
No related branches found
No related tags found
No related merge requests found
......@@ -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}>
......
......@@ -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":
......
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