Vector stores: in-memory → Chroma → production options
Notebook· 06.05· 120–150 min· Lesson 50 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Use the
VectorStoreinterface:add_documents(ids=...),similarity_search(_with_score),delete,as_retriever. - Persist a Chroma index outside git (
data/vectorstores/), reopen it without re-embedding, and upsert by id. - Filter by metadata (type, source, page) to scope a search, e.g. per product or per user.
- Update an index when one document changes, and delete an index safely on Windows.
- Compare production options: pgvector, Qdrant, Pinecone (and when Chroma is enough).
Before you start
Lessons 06.02–06.04.
