Create a RAG system with Paul Essays, Milvus, and OpenAI for cited answers
Create a RAG System with Paul Essays, Milvus, and OpenAI for Cited Answers This workflow automates the process of creating a document-based AI retrieval system using [Milvus](https://milvus.io/), an open-source vector...
Template notes
Create a RAG System with Paul Essays, Milvus, and OpenAI for Cited Answers
This workflow automates the process of creating a document-based AI retrieval system using [Milvus](https://milvus.io/), an open-source vector database. It consists of two main steps:
1. Data collection/processing 2. Retrieval/response generation
The system scrapes [Paul Graham essays](https://paulgraham.com/articles.html), processes them, and loads them into a Milvus vector store. When users ask questions, it retrieves relevant information and generates responses with citations.
Step 1: Data Collection and Processing
1. Set up a Milvus server using the [official guide](https://milvus.io/docs/installstandalone-docker.md) 2. Create a collection named "mycollection" 3. Execute the workflow to scrape Paul Graham essays: - Fetch essay lists - Extract names - Split content into manageable items - Limit results (if needed) - Fetch texts - Extract content - Load everything into Milvus Vector Store
This step uses [OpenAI embeddings](https://platform.openai.com/docs/guides/embeddings) for vectorization.
Step 2: Retrieval and Response Generation