Templates / Document Q&A with RAG: Query PDF content using Weaviate and OpenAI

Document Q&A with RAG: Query PDF content using Weaviate and OpenAI

Ready for 3.0

by Mary Newhauser · 2,643 views · created 2025-08-08 · Document Extraction, Multimodal AI

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 13 nodes and runs when someone submits an n8n form (“Upload your file here”) (plus 1 other trigger). Along the way it connects Weaviate Vector Store, Embeddings OpenAI and OpenAI Chat Model.

How it runs

Trigger: When someone submits an n8n form (“Upload your file here”) (plus 1 other trigger).

  1. Extract from File: extracts data from a file (pdf)
  2. Question and Answer Chain: answers questions over your documents (RAG), with model: OpenAI Chat Model; retriever: Vector Store Retriever
  3. Edit Fields (Edit Fields (Set)): sets 1 field: text
  4. Weaviate Vector Store: stores documents in the Weaviate vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader

Services it uses

Weaviate Vector StoreEmbeddings OpenAIOpenAI Chat Model

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 (11)

From the author

RAG over a PDF with Weaviate This workflow allows you to upload a PDF file and ask questions about it using the Question and Answer Chain and the Weaviate Vector Store nodes. Who it's for This workflow is the simplest possible implementation of RAG with…

Excerpt from Mary Newhauser'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.