Create a Paul Graham essay Q&A system with OpenAI and Milvus vector database
Ready for 3.0What this workflow does
This AI workflow has 17 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Milvus Vector Store and Embeddings OpenAI. It also calls paulgraham.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Fetch Essay List (HTTP Request): calls paulgraham.com
- Q&A Chain to Retrieve from Milvus and Answer Question (Question and Answer Chain): answers questions over your documents (RAG), with model: OpenAI Chat Model; retriever: Milvus Vector Store Retriever
- Extract essay names (HTML): parses or builds HTML
- Split Out: splits a list into separate items
- Limit: keeps the first few items
- Fetch essay texts (HTTP Request): calls an HTTP API
- Extract Text Only (HTML): parses or builds HTML
- Milvus Vector Store: stores documents in the Milvus vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
Services it uses
HTTP calls to: paulgraham.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 (13)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - HTML
n8n-nodes-base.html - Split Out
n8n-nodes-base.splitOut - Limit
n8n-nodes-base.limit - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Milvus Vector Store
@n8n/n8n-nodes-langchain.vectorStoreMilvus - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Question and Answer Chain
@n8n/n8n-nodes-langchain.chainRetrievalQa - Vector Store Retriever
@n8n/n8n-nodes-langchain.retrieverVectorStore
From the author
Create a Paul Graham Essay Q&A System with OpenAI and Milvus Vector Database How It Works This workflow creates a question-answering system based on Paul Graham essays. It has two main steps: 1. Data Collection & Processing: - Scrapes Paul Graham essays -…