# ULTIMATE RAG - vectorization search system with OpenAI: n8n workflow

> Started by someone opening a chat with it, and works across Qdrant. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply...

Source: https://millionrounds.com/workflow/ultimate-rag-vectorization-search-system-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [AI assistants](https://millionrounds.com/workflows?category=AI+assistants#library)

# ULTIMATE RAG - vectorization search system with OpenAI

Started by someone opening a chat with it, and works across Qdrant. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 36 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fultimate-rag-vectorization-search-system-with-openai)

**36 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 6 Model 19 Logic 9 Service 2

The steps in the order they run, from what starts it.

- 1 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 2 **Default Data Loader** Document Default Data Loader *Model*
- 3 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 4 **Embeddings OpenAI1** Embeddings Open Ai *Model*
- 5 **Default Data Loader1** Document Default Data Loader *Model*
- 6 **Embeddings OpenAI2** Embeddings Open Ai *Model*
- 7 **MEMORY** Memory Buffer Window *Model*
- 8 **TRIGGER REQUETE** Chat trigger *Starts it*
- 9 **Default Data Loader2** Document Default Data Loader *Model*
- 10 **Embeddings OpenAI3** Embeddings Open Ai *Model*
- 11 **📝 Form Submit** Form trigger *Starts it*
- 12 **🔗 Webhook** Webhook *Starts it*
- 13 **Requete** Webhook *Starts it*
- 14 **Respond to Webhook1** Respond To Webhook *Starts it*
- 15 **💾 Qdrant PDF2** Vector Store Qdrant *Model*
- 16 **AI Agent** Agent *Model*
- 17 **Qdrant Vector Store1** Vector Store Qdrant *Model*
- 18 **💾 Qdrant PDF1** Vector Store Qdrant *Model*
- 19 **💾 Qdrant PDF** Vector Store Qdrant *Model*
- 20 **🔀 PDF ou URL?** Code *Logic*
- 21 **Code in JavaScript1** Code *Logic*
- 22 **Code in JavaScript** Code *Logic*
- 23 **🚦 Router** Switch *Logic*
- 24 **Respond to Webhook** Respond To Webhook *Starts it*
- 25 **🔍 OCR Fichier** Mistral Ai *Model*
- 26 **📥 Scrap Page** Http Request *Service*
- 27 **📥 Download PDF** Http Request *Service*
- 28 **🧠 Analyse Fichier** Open Ai *Model*
- 29 **📄 Extract HTML** Html *Logic*
- 30 **🔍 OCR PDF** Mistral Ai *Model*
- 31 **⚙️ Parse Fichier** Code *Logic*
- 32 **🧹 Clean HTML** Code *Logic*
- 33 **🧠 Analyse PDF (notation)** Open Ai *Model*
- 34 **WEB analyse** Open Ai *Model*
- 35 **⚙️ Parse PDF** Code *Logic*
- 36 **⚙️ Parse Web** Code *Logic*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 36, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Qdrant
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Qdrant account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone opening a chat with it.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 36 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 36 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fultimate-rag-vectorization-search-system-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Qdrant](https://millionrounds.com/workflows?service=Qdrant#library)

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**Bitrix24 AI-Powered RAG Chatbot for Open Line Channels** 33 steps · calls a model · Qdrant](https://millionrounds.com/workflow/bitrix24-ai-powered-rag-chatbot-for-open-line-channels)
- [**Adaptive RAG strategy with Gemini and Qdrant** 30 steps · calls a model · Qdrant](https://millionrounds.com/workflow/adaptive-rag-strategy-with-gemini-and-qdrant)
- [**Adaptive RAG with Gemini and Qdrant:** 30 steps · calls a model · Qdrant](https://millionrounds.com/workflow/adaptive-rag-with-gemini-and-qdrant)
- [**Create adaptive RAG chat agent with Gemini and Qdrant** 30 steps · calls a model · Qdrant](https://millionrounds.com/workflow/create-adaptive-rag-chat-agent-with-gemini-and-qdrant)
- [**Build a WordPress RAG chatbot with OpenAI and Qdrant** 44 steps · calls a model · Google Cloud Storage, Qdrant](https://millionrounds.com/workflow/build-a-wordpress-rag-chatbot-with-openai-and-qdrant)
- [**Vision RAG and image embeddings with Cohere Command-A** 27 steps · calls a model · Qdrant](https://millionrounds.com/workflow/vision-rag-and-image-embeddings-with-cohere-command-a)
