Where the numbers live. Indexing vs Brute Force.
It is a specialized database. It stores:
We use it because SQL databases are too slow for vector math.
If you have 1 million vectors, comparing your query to every single one (Brute Force) is slow. Vector stores use ANN (Approximate Nearest Neighbor) indexing. They group similar vectors into clusters. When you search, they only check the relevant cluster. Trade-off: You gain Speed (100x), you lose Recall (1-5% errors).
They share the same interface.
from langchain_community.vectorstores import Chroma
# Add
db = Chroma.from_documents(docs, embedding_model)
# Search
results = db.similarity_search("How do I reset password?")
For < 100k docs, use Chroma/FAISS locally. For > 1M docs, use Pinecone/Weaviate/Milvus. The logic is the same: Index vectors to find neighbors fast.
Key Intuition: "It's a map of meaning, not a list of keywords."