Resources
Vector-store and embedding APIs still move. Prefer each project’s official docs. This course only pins the principles: chunk, embed, store, retrieve / rerank, evaluate.
Official
Field names in chromadb, psycopg + pgvector, and qdrant-client follow your installed minor version. This tutorial tracks the mainstream APIs on those pages (PersistentClient, <=>, upsert / query_points).
Related courses on this site
Do not append .html / .md to these paths:
Chinese pages use the same paths without /en.
A useful map: this course explains where chunks go; LangChain / LlamaIndex / Dify wrap the same pipeline; Ollama / Hugging Face supply embedding models; Postgres hosts pgvector.
Tutorial index
- RAG tutorial
- Introduction
- Pipeline
- Chunking
- Embeddings
- Chroma
- pgvector
- Qdrant
- Retrieval
- Evaluation
- Practical Examples
Suggested exercises
- Write 3 Markdown files with invented clause IDs, ask 10 questions via Chroma, compute hit@4
- Embed the same corpus with
text-embedding-3-smalland Ollamabge-m3—never mix vectors ALTER TABLE ... ADD COLUMN embeddingon an existing Postgres table; filter by tenant- Add a Qdrant
deptpayload and confirm engineering docs never appear in HR questions - Run the Evaluation chapter’s token scan on model answers; note paraphrases (“a week” vs “7 days”)
Contribute
This tutorial lives in Kenhuang Academy. When APIs change, open an issue or PR and update both docs/zh/rag/ and docs/en/rag/.