Build RAG from Scratch: Documents to Vector Store to Q&A
What this scenario solves
You used a framework but do not understand the mechanics, so when retrieval quality drops you do not know what to tune.
Tool stack
Not the only solution, but a stack we have verified end to end. Each tool links to its full review, including who it is not for.
What you end up with
You implement chunking, embedding, retrieval, reranking, and generation yourself, plus a measurable retrieval-quality evaluation.
Full steps
- 01核心組件拆解
- 02完整 RAG Pipeline 代碼
Articles carrying the full content
- RAG In-Depth Principles and Practice: A Complete Guide from Chunking to Rerank
The complete tech stack for Retrieval-Augmented Generation (RAG): Embedding selection, Chunking strategies, vector database comparison, Rerank optimization, with practical code examples.
2026-05-1011 minRead - Vector Memory Deep Dive: A Production-Grade Memory System That Ensures AI Agents Never Lose Memory Again
State amnesia is the #1 killer in production Agent environments. We built a four-layer vector memory system based on Qdrant + BGE-m3, with 9 retrieval modes, validated with 6,675 memories in real-world use, raising Chinese search accuracy from 0% to >78%. One line curl | bash, 100% local deployment, and data sovereignty stays in your hands.
2026-06-1025 minRead - The Engineering of AI Memory Retrieval: A Full-Matrix Field Report on Four Access Paths × Ten Scenarios
When an AI assistant needs to "remember everything", how does it retrieve memory? Direct file reads, Qdrant vector search, the MemoryHub capture pipeline, and agentmemory semantic indexing: a field comparison of four paths across ten real scenarios, revealing the boundaries and sweet spots of each path.
2026-05-2327 minRead
Adjacent scenarios
- A Multilingual Localisation Pipeline with Quality ChecksA verified pipeline in 1 day · 7 steps
- Refactoring an Existing Codebase: Understand First, Then ChangeComprehension plus a safe first refactor in 1 day · 8 steps
- Divide a Complex Task Across Multiple AgentsA working division-of-labour setup in 1 day · 8 steps
Other scenarios using
- DeepSeek in other scenarios
- Ollama in other scenarios
- Claude Code in other scenarios
Level: Intermediate · Tracks: Developer Track · Last verified: 2026-09-29