mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-05-02 17:07:13 +00:00
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
2 changed files with 4 additions and 0 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue