/Tool/Voyage AI
app icon

Voyage AI

Verified by Dify
No ratings yet
228
M
mongodb/voyage_ai

Generate vector embeddings and rerank documents using Voyage AI models hosted on MongoDB Atlas. Supports text embeddings with input_type (document/query) and reranking with relevance scores.

Utilities

Voyage AI Plugin for Dify

A Tool-type Dify plugin that lets Chatflow, Workflow, and Agent applications generate vector embeddings and rerank documents using Voyage AI models hosted on MongoDB Atlas.

Companion plugin: Use the MongoDB Atlas Tool plugin to perform vector search with the embeddings generated here. The Embed Text output can be piped directly into the Vector Search tool's Query Vector field.


Tools

ToolDescription
Embed TextGenerate a vector embedding for a single text string
Rerank DocumentsRerank a list of document strings against a query by relevance score

Typical Workflow


Prerequisites

  • A MongoDB Atlas account with the Voyage AI preview feature enabled
  • A Model API key from Atlas → AI Models (key starts with )

Installation

From Dify Marketplace

Search for Voyage AI in the Dify Plugin Marketplace and click Install.

Local / Debug Install

Package for distribution


Configuration

When installing the plugin, you will be prompted for:

CredentialRequiredDescription
Voyage AI API Key✅Atlas model API key starting with

To create a key: Atlas UI → your project → AI Models → Create model API key.


Tool Reference

Embed Text

Generate a vector embedding for a single text. Returns the embedding as a JSON float array string, ready to pipe into the MongoDB Atlas Vector Search tool.

ParameterTypeRequiredFormDescription
string✅llmThe text to embed. Pipe a workflow variable directly here (e.g. )
select❌formEmbedding model (default )
select❌form (for search), (for indexing), or empty for generic (default )
select❌formOutput dimensions: 256, 512, 1024, or 2048 (model default if blank)
boolean❌formTruncate texts exceeding model token limit (default true)

Output (JSON message):

Output (text message): The embedding as a plain JSON array string — pipe directly into Vector Search's field.


Rerank Documents

Rerank a list of documents against a query. Returns documents sorted by relevance score (highest first).

ParameterTypeRequiredFormDescription
string✅llmThe search query
string✅llmJSON array of document strings, e.g. . Also accepts a native list piped from another tool (e.g. Vector Search output).
select❌formReranking model (default )
number❌llmReturn only top K results (blank = return all)
boolean❌formTruncate long documents (default true)

Output (JSON): Each ranked result is yielded as its own JSON message — is the highest-scored, is the second, etc. Directly iterable in Dify's Iterate/Loop nodes.


Supported Models

Embedding Models

ModelDimensionsContextDescription
1024 (default), 256, 512, 204832KBest quality, multilingual
1024 (default), 256, 512, 204832KBalanced quality/cost (recommended)
1024 (default), 256, 512, 204832KLowest latency and cost
1024 (default), 256, 512, 204832KContextualized chunk embeddings
1024 (default), 256, 512, 204832KCode and technical documentation
1024 (fixed)32KFinance RAG
1024 (fixed)16KLegal RAG
1024 (default), 256, 512, 204832KPrevious generation general
1024 (default), 256, 512, 204832KPrevious generation general
1024 (default), 256, 512, 204832KPrevious generation lite
1536 (fixed)16KPrevious generation code

Reranking Models

ModelContextDescription
32KHighest accuracy (recommended, 200M free tokens)
32KFast and cost-effective (200M free tokens)
16KPrevious generation, multilingual
8KPrevious generation lite, multilingual

Support

  • GitHub Issues: https://github.com/mongodb-developer/dify-plugins-voyageai/issues
  • MongoDB Developer Community: https://www.mongodb.com/community/forums/

License

Apache 2.0 — see LICENSE for details.

CATEGORY
Tool
VERSION
0.0.3
mongodb·Updated 4 months ago
REQUIREMENTS
Maximum memory
256MB
Access domain

No outbound calls found

Security
Security Rating

Last checked 09/08/2026 08:48 AM · version 0.0.3

Give a rate
SHARE WITH