Embeddings 101: Turning Your Knowledge Base into a Vector Store
What embeddings are, how similarity search works, and how to build a tiny vector store.
An embedding is just a coordinate
An embedding model turns text into a list of numbers — a point in a high-dimensional space where similar meanings sit near each other. That's the entire trick: 'nearest neighbor in vector space' is a surprisingly good proxy for 'related meaning'.
You don't need to understand the geometry to use it. Embed your documents, embed the query, and retrieve the closest documents. The model did the hard part.
Build a tiny vector store first
Before reaching for a vector database, try the simplest thing that works: embed your documents, store the vectors in memory, and rank with cosine similarity. For hundreds of documents this is instant and needs zero infrastructure. My own assistant runs this way — term-frequency vectors and cosine similarity, no server required.
This also teaches you what the fancy systems are actually doing, which makes you a better buyer when you do outgrow the simple version.
When to graduate
Move to a real vector store when you need scale, persistence, filtering or hybrid search. But the retrieval quality problem — chunking, embedding choice, evaluation — is the same at every scale. Solve it small, then scale it.