Skip to content
Projects

About

📚 从零开始的向量数据库原理与实践教程,在线阅读地址:https://easy-vecdb.datawhale.cc/

Learning & Education

How these counts are measured

Measured star growth

in 24h
-1
in 7 days
0
in 15 days
+2
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_en.md

Original
alt text

Easy-vecDB (⚠️ Alpha Internal Test)

[!CAUTION] ⚠️ Alpha version warning: This is an early internal build. It is not yet complete and may contain bugs. Issues and suggestions are very welcome via GitHub Issues.

GitHub stars GitHub forks GitHub issues GitHub license

中文 | English

📚 Online Documentation

📚 A Hands-on Tutorial on Vector Database Principles and Practices — From Zero to Production

🧭 Project Overview

EasyVecDB is a systematic learning project on vector databases designed for developers and researchers.
It covers the full lifecycle from foundational concepts and algorithmic principles to production-level application deployment, focusing on three main directions:

  • 🧩 Theory Fundamentals: Understand the principles, architecture, and indexing mechanisms of vector databases
  • ⚙️ Hands-on Practice: Master the usage and optimization of Milvus / Faiss / Annoy
  • 💡 Project Cases: Build complete projects from scratch, including RAG systems, embedding-based retrieval, and clustering visualization

📖 Content Navigation

The project is divided into Fundamentals and Practice sections, corresponding to the navigation structure below:

Section Key Content Status
Part I: Fundamentals (Base) Vector DB principles, embeddings, and search basics
Chapter 1 Project Introduction Project goals and learning roadmap ✅
Chapter 2 Why Vector Databases Retrieval bottlenecks and similarity search ✅
Chapter 3 Vector Embedding Basics Word2Vec, Transformer embeddings ✅
Chapter 4 Vector Search Basics Brute-force search and similarity metrics ✅
Chapter 5 ANN Search Algorithms IVF, PQ, HNSW, LSH, Annoy principles & code ✅
Chapter 5 Vamana Algorithm Single-layer proximity graph, robust pruning, greedy search ✅
Chapter 5 DiskANN System Disk-based graph index, PQ compression, batched reads ✅
Chapter 6 Build Your Own Vector Database Minimal vector DB implementation ✅
Part II: Annoy Tutorial Lightweight ANN search library
Chapter 1 Annoy Introduction & Setup Installation and core concepts ✅
Chapter 2 Annoy Core API Index building, querying, parameter tuning ✅
Chapter 3 Annoy Advanced Tips & Best Practices Performance optimization, engineering practices ✅
Part III: Faiss Tutorial High-performance vector search engine
Chapter 1 FAISS Introduction & Setup Installation and core concepts ✅
Chapter 2 FAISS Core Indexes Flat, IVF, PQ, HNSW indexes ✅
Chapter 3 Advanced FAISS Features Composite indexes, GPU, batch search ✅
Chapter 4 FAISS Performance Tuning Recall, latency, memory optimization ✅
Chapter 5 FAISS Engineering Practices Service deployment and real-world cases ✅
Part IV: Milvus Tutorial Distributed vector database & engineering
Chapter 1 Milvus Introduction: Concepts & Architecture Architecture and core components ✅
Chapter 2 Milvus Core Concepts Collection, Partition, Index ✅
Chapter 3 Milvus Basic Operations Data ingestion, query, index management ✅
Chapter 4 Milvus AI Applications: Hybrid Search with BM25 RAG and hybrid retrieval ✅
Chapter 5 Milvus AI Applications: Image Retrieval Image retrieval system ✅
Chapter 6 Milvus Advanced Topics Internal architecture, reranker, Milvus Lite, MinerU ✅
Chapter 7 Milvus 3.0: External Collections, Data Model & Indexing version changes, external collections & snapshots, retrieval enhancements, index choices ✅
7.5A Official Hands-on Projects MinHash near-duplicates, function chains, StructArray, EmbeddingList, facet aggregation ✅
7.5B End-to-End: 12345 Ticket Retrieval & Knowledge Publishing Query side + release side: acceptance gate, rollback, incremental release ✅
Chapter 7.6 Advanced Topics FunctionChain rerank, storage & write engine, StructArray, Regex filtering, aggregation & ORDER BY ✅
Part V: AI Applications Based on Vector Databases
Project 1 Recommendation Recall with Annoy DSSM + Annoy vector recall ✅
Project 2 RAG with FAISS RAG using FAISS ✅
Project 3 Agent with Milvus Agent system using Milvus ✅
Project 4 RAG with Milvus & ArangoDB Hybrid RAG system ✅
Part VI: Supplementary Topics Related advanced topics
Vector Fundamentals Vector math and basics ✅
FusionANNS Architecture GPU-accelerated retrieval ✅
Meta-Chunking Strategy Intelligent text chunking ✅
Theoretical Limits of Retrieval Performance boundaries ✅
RabitQ Indexing High-dimensional quantization ✅
Clustering Algorithms Clustering overview ✅

⏳ Continuously updating...

📘 This project aims to help you master vector databases from principles → practice → deployment.

📄 Additional Resources

Related Competition

🤝 Contributing

  • If you find any issues, feel free to open an Issue. If there is no response, you may contact the Support Team.
  • If you’d like to contribute, submit a Pull Request. If there is no response, you may also contact the Support Team.
  • If you are interested in starting a new Datawhale project, please follow the Datawhale Open Source Project Guide.

Core Contributors

Special Thanks

  • Thanks to @Sm1les for the support and help
  • Thanks to all contributors who made this project possible ❤️

Follow Us

Scan the QR code below to follow the Datawhale official account

📊 Star History

📜 License

Creative Commons License

This work is licensed under the
Creative Commons Attribution–NonCommercial–ShareAlike 4.0 International License.

Made with ❤️ by Datawhale

Explore related projects

Loading…