Skip to content

feat(components): add newer Voyage AI embedding and reranker models#6291

Open
deepak0x wants to merge 2 commits intoFlowiseAI:mainfrom
deepak0x:feature/add-voyage-ai-newer-models
Open

feat(components): add newer Voyage AI embedding and reranker models#6291
deepak0x wants to merge 2 commits intoFlowiseAI:mainfrom
deepak0x:feature/add-voyage-ai-newer-models

Conversation

@deepak0x
Copy link
Copy Markdown

Proposed changes

The Voyage AI embedding and reranker nodes were missing several newer models. The embeddings list in models.json didn't have voyage-multimodal-3, voyage-3.5, voyage-code-3, or voyage-3-large. The reranker dropdown was stuck on older models and missing rerank-2.5 entirely. This adds all current Voyage AI models to both nodes and bumps the reranker default to rerank-2.5.

Issue(s)

Closes #3442

How to test or reproduce

  1. pnpm build && pnpm start
  2. Create a chatflow with a VoyageAI Embedding node — confirm voyage-multimodal-3, voyage-3.5, voyage-code-3 etc. appear in the model dropdown
  3. Add a Voyage AI Rerank Retriever node — confirm rerank-2.5, rerank-2.5-lite, rerank-2-lite appear and rerank-2.5 is the default

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING doc
  • Lint and unit tests pass locally with my changes

Add missing Voyage AI models to the embeddings model list and
reranker node options. New embedding models: voyage-3.5,
voyage-3.5-lite, voyage-multimodal-3, voyage-multimodal-3.5,
voyage-3-large, voyage-code-3. New reranker models: rerank-2.5,
rerank-2.5-lite, rerank-2-lite. Updated reranker default to
rerank-2.5.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the supported Voyage AI models by adding several new embedding models to models.json and refreshing the rerank model options in VoyageAIRerankRetriever.ts. A potential breaking change was identified regarding the removal of the rerank-lite-2 model option, which could disrupt existing chatflows that rely on that specific identifier. It is recommended to implement a mapping or deprecation strategy to maintain backward compatibility.

@deepak0x
Copy link
Copy Markdown
Author

@HenryHengZJ — the Voyage AI nodes were pretty outdated, missing most of their v3+ models. I went through their docs and added what was missing.

Embeddings: voyage-3.5, voyage-3.5-lite, voyage-multimodal-3, voyage-multimodal-3.5, voyage-3-large, voyage-code-3.
Reranker: rerank-2.5, rerank-2.5-lite, rerank-2-lite. Default is now rerank-2.5.

No logic changes, just the model lists.

Existing chatflows may reference rerank-lite-2. Removing it from
the dropdown would cause those flows to send an invalid model name
to the API. Added it back to the options list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]Add voyage-multimodal-3 and rerank-2

1 participant