app icon
Voyage AI
0.0.1

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.

mongodb/voyage_ai22 installs

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 KeyAtlas model API key starting with

To create a key: Atlas UI → your project → AI ModelsCreate 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
stringllmThe text to embed. Pipe a workflow variable directly here (e.g. )
selectformEmbedding model (default )
selectform (for search), (for indexing), or empty for generic (default )
selectformOutput dimensions: 256, 512, 1024, or 2048 (model default if blank)
booleanformTruncate 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
stringllmThe search query
stringllmJSON array of document strings, e.g.
selectformReranking model (default )
numberllmReturn only top K results (blank = return all)
booleanformTruncate long documents (default true)

Output:


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
512 (default), 128, 25632KOpen-weight model
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


License

Apache 2.0 — see LICENSE [blocked] for details.

CATEGORY
Tool
TAGS
UTILITIES
VERSION
0.0.1
mongodb·04/30/2026 01:59 AM
REQUIREMENTS
Maximum memory
256MB
Voyage AI - Dify Marketplace