The library sorted by meaning β the machine under semantic search, RAG and
agent memory. Taught the school way: a real mini vector DB in the repo (~70 lines, pure
Python, zero dependencies) that you read in full β including one honest, deliberate failure
that explains why learned embeddings exist.
keywords match strings; meaning needs seats πΊοΈ
text β coordinates: the toy way and the real way
similarity = direction (normalize, then dot) π§
millions of seats: the friendship map (HNSW) π
π§ Part 2 β FOR REAL (5β8)
read the database whole: 70 honest lines π¬
scissors & stickers: chunking is the quality lever βοΈ
RAG end to end, with YOUR page-finder π
pgvector β Pinecone: picking without a bake-off π¬
# the 60-second wow β search by meaning, filters, and one honest failure:
git clone https://github.com/BaluRaut/learn-vectordb-school.git && cd learn-vectordb-school
python3 vectordb/demo.py
πΊοΈ The big picture β one diagram, both worlds
One git branch = one idea; branch 05 contains lessons 01β05. The natural deep-dive
after the AI course's embeddings (L04)
and RAG (L10) lessons β and the memory layer of the
Agents school.
π¬ The showcase:the product landscape β
pgvector, Pinecone-class, Chroma/Qdrant/LanceDB, FAISS, and your-old-store-with-new-tricks β
compared honestly, with the boring pick order.
π The lesson diagrams β follow the numbers
Blue = the idea, green = for real. Also on a
standalone page.
1 πΊοΈ Why vector DBs
The library sorted by MEANING β keywords match strings, not ideas.