Templates / Document Q&A system with Voyage-Context-3 embeddings and MongoDB Atlas

Document Q&A system with Voyage-Context-3 embeddings and MongoDB Atlas

Ready for 3.0

by Jimleuk ✓ · 1,381 views · created 2025-08-01 · Engineering, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 43 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects MongoDB, OpenAI Chat Model and OpenAI. It also calls api.voyageai.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).

  1. Set Variables (Edit Fields (Set)): sets 1 field: url
  2. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Get Query (Edit Fields (Set)): sets 1 field: query
  4. Clear Collection (MongoDB): delete
  5. Generate Clarifying Questions (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Chat Model
  6. Import Research Paper (HTTP Request): calls an HTTP API
  7. Chunk Page Text (Code): runs custom JavaScript code
  8. Combine Content & Metadata (Edit Fields (Set)): sets 2 fields: text, metadata
  9. Split Questions (Split Out): splits a list into separate items
  10. Extract from File: extracts data from a file (pdf)

…plus 25 more steps. See the full node list below.

Services it uses

MongoDBOpenAI Chat ModelOpenAI

HTTP calls to: api.voyageai.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (20)

From the author

On my never-ending quest to find the best embeddings model, I was intrigued to come across Voyage-Context-3 by MongoDB and was excited to give it a try. This template implements the embedding model on a Arxiv research paper and stores the results in a Vector…

Excerpt from Jimleuk's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.