BuildSpark AI
Dismiss

BuildSpark AI: practical AI concepts for builders. New here? Start with Tokens.

Home · Retrieval & Grounding · 09 · Vector databases

Concept card · Retrieval & Grounding

Vector databases

A vector database is a store built to keep embeddings and return the nearest ones.

A store built to keep embeddings and return the nearest ones.

Last checked 2026-10-18 Free card 5 min

Ask about Vector databases

What changed

Oct 18: First card. The picture ranks three chunks by meaning, then by a product code. Sources are Azure AI Search, pgvector, and Pinecone's current search overview. Pinecone Local is not a source.

1 What it is

Azure AI Search's vector search overview says vector search indexes numeric representations and returns the vectors most similar to the query. It says you can use the service as a pure vector index for a knowledge base, and that a nearest-neighbors algorithm returns the requested k neighbors. pgvector's README describes vector similarity search for Postgres, including exact and approximate nearest neighbor search, and a query that orders rows by distance. Pinecone's search overview says semantic search uses dense embeddings, and that searches consume read units. Pinecone's 2026 changelog says Pinecone Local reached end of life on October 7, 2026. This card cites the current search overview, not Pinecone Local. The picture ranks three labelled chunks. It is not a query against any of those stores.

Illustration. Three chunks ranked two ways. Distances are written for this picture. Nothing is embedded.

Question: When does the warehouse close?

NearestThe north building shuts in the evening.

NextThe warehouse closes at 18:00.

FarProduct code NX-14.

The picture's nearest neighbor is the paraphrase. The product code is far from this question.

2 Why it matters

Cost

Azure's overview says vector search is available in all regions and on all tiers at no extra charge, and that generating embeddings might incur charges from the model provider. That "no extra charge" is vendor-reported for the search feature, not for the embedding call. Pinecone's overview says searches consume read units and points to a pricing page. This card does not copy a read-unit rate. pgvector stores the vectors in Postgres.

Quality

Azure's overview says vectors can match text that is conceptually alike, and gives "dog" and "canine" as the example. A product code can still miss when the match is by meaning. The hybrid search card is the one that runs words and vectors together.

Risk

The nearest chunk is not a decision about who may read it, and it is not a check that the text is current. The store returns neighbors. A filter decides who sees them.

3 How to apply · try today

Name the store you already run. If the support rows live in Postgres, pgvector can keep the vectors beside them. If you already use Azure AI Search, the vector fields can live on that index. Write down where the embedding is computed. That call is a separate bill.

Common mistake

Opening a second database before you know the embedding call is the line that grows. Azure's overview separates the search feature from the embedding charge.

Self-check

Azure's overview says vector search has no extra charge. Which part can still cost money?

Questions

What is a vector database?
A vector database is a store built to keep embeddings and return the nearest ones.
Does Azure charge extra for vector search?
Azure's overview says vector search has no extra charge on any tier, and that generating embeddings might incur charges from the model provider. That split is vendor-reported.
Does the nearest chunk mean this user may see it?
No. The store returns neighbors. Access is a separate check.