mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 12:40:09 +01:00
Add new Voyage AI embedding models (#2193)
new voyageai embedding models
This commit is contained in:
parent
bc0cc20678
commit
86ba16acdc
@ -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",
|
||||
|
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user