Automation library · AI assistants

Build and update RAG system with Google Drive and Qdrant

Started by someone opening a chat with it, and works across Google Drive and Qdrant. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 24 steps, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini, OpenAIRetrieval

24 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 2Model 13Logic 3Service 6

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

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2Embeddings OpenAI1Embeddings Open AiModel
  3. 3Create collectionHttp RequestService
  4. 4Recursive Character Text SplitterText Splitter Recursive Character Text SplitterModel
  5. 5Embeddings OpenAI2Embeddings Open AiModel
  6. 6Recursive Character Text Splitter1Text Splitter Recursive Character Text SplitterModel
  7. 7When chat message receivedChat triggerStarts it
  8. 8Google Gemini Chat ModelLm Chat Google GeminiModel
  9. 9Embeddings OpenAIEmbeddings Open AiModel
  10. 10Edit Fields3SetLogic
  11. 11Clear collectionHttp RequestService
  12. 12Qdrant Vector StoreVector Store QdrantModel
  13. 13Default Data Loader1Document Default Data LoaderModel
  14. 14Update single fileVector Store QdrantModel
  15. 15Default Data LoaderDocument Default Data LoaderModel
  16. 16Question and Answer ChainChain Retrieval QaModel
  17. 17Qdrant Vector Store1Vector Store QdrantModel
  18. 18Download fileGoogle DriveService
  19. 19Delete single fileHttp RequestService
  20. 20Get filesGoogle DriveService
  21. 21WaitWaitLogic
  22. 22Vector Store RetrieverRetriever Vector StoreModel
  23. 23Loop Over ItemsSplit In BatchesLogic
  24. 24Download filesGoogle DriveService

How it's built

Starts on
Someone opening a chat with it
Steps
24, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Qdrant
Model
Gemini, 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 Google Drive and Qdrant accounts, and a key for Gemini and 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 Gemini and 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 24 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 24 steps before you point it at anything that matters.