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: timothycarambat <rambat1010@gmail.com>
This commit is contained in:
parent
487db896c1
commit
be886f7d61
@ -38,6 +38,8 @@ export default function VoyageAiOptions({ settings }) {
|
|||||||
"voyage-2",
|
"voyage-2",
|
||||||
"voyage-3",
|
"voyage-3",
|
||||||
"voyage-3-lite",
|
"voyage-3-lite",
|
||||||
|
"voyage-3-large",
|
||||||
|
"voyage-code-3",
|
||||||
].map((model) => {
|
].map((model) => {
|
||||||
return (
|
return (
|
||||||
<option key={model} value={model}>
|
<option key={model} value={model}>
|
||||||
|
|||||||
@ -24,6 +24,8 @@ class VoyageAiEmbedder {
|
|||||||
case "voyage-multilingual-2":
|
case "voyage-multilingual-2":
|
||||||
case "voyage-3":
|
case "voyage-3":
|
||||||
case "voyage-3-lite":
|
case "voyage-3-lite":
|
||||||
|
case "voyage-3-large":
|
||||||
|
case "voyage-code-3":
|
||||||
return 32_000;
|
return 32_000;
|
||||||
case "voyage-large-2-instruct":
|
case "voyage-large-2-instruct":
|
||||||
case "voyage-law-2":
|
case "voyage-law-2":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user