AI 101 — What is a vector database?

Share
AI 101 — What is a vector database?

A vector database is a database purpose-built to store and search "embeddings" — long lists of numbers that capture the meaning of a piece of text, an image, or audio — so it can find things that are semantically similar rather than things that merely match your keywords.

If that sounds abstract, consider where you have already met one. Every "chat with your documents" feature works because a system converts your question into numbers, compares those numbers against millions of stored ones, and pulls back the closest matches as context for the answer. The same trick powers recommendation feeds, duplicate detection, image search, and the long-term memory that lets an agent recall what it did last week. Our explainer on What is RAG? describes how retrieval grounds a model's answers; the vector database is the machinery doing the finding.

Why it matters right now

Retrieval has quietly become load-bearing infrastructure for AI. When a company points a chatbot at its internal documentation, the quality of the whole system rests on whether relevant paragraphs actually come back from the search. Get that wrong and even a frontier model will confidently answer from the wrong context — or hallucinate around the gap.

That is why nearly every serious RAG pipeline runs on a vector database, and why the category exploded: dedicated products like Pinecone, Weaviate, Qdrant, Milvus, and Chroma compete for the workload, while cloud giants bolted vector search onto existing offerings such as Elasticsearch and Google Cloud's Vertex AI services. Even PostgreSQL, the world's favorite general-purpose relational database, gained a popular open-source extension called pgvector that stores and searches embeddings directly. The pattern repeats across the industry: if software holds knowledge, someone is adding vector search to it.

The mental model

An embedding places a piece of content at coordinates in "meaning space." A sentence about laptops sits near other laptop talk, regardless of exact wording; a photo of a retriever lands near photos of other dogs. Similar meaning means nearby points — that single property is what makes semantic search possible.

A vector database does two jobs with those coordinates. First it indexes millions or billions of them so that "which stored vectors sit closest to this query?" returns in milliseconds instead of hours. Brute-force comparison dies at scale, so these databases use approximate-nearest-neighbor indexes such as HNSW — a multi-layer graph, published by researchers Yury Malkov and Dmitry Yashunin, that hops across the space like a courier using highways then side streets. Second, it behaves like a real database: rows can be inserted, updated, deleted, and filtered by ordinary metadata — "search only contracts from this year" — alongside the similarity math. Many also blend vector results with classic keyword matching, a combination called hybrid search, because exact terms still matter for names, part numbers, and error codes.

Old wooden library card catalog with many small labeled drawers

The library analogy

Keyword search is a card catalog: find the drawer labeled exactly "VOLTAIRE", miss everything filed under the author's pen name. A vector database is a librarian who has read every book and understands your intent — ask for "books about questioning authority through wit" and she hands you the right shelf even though no title contains those words.

The approximate part is honest too: our librarian occasionally skips a book she should have handed over. Well-tuned systems get the important ones right far more often than they miss, which is the trade that makes searching billions of items instant.

Common misconceptions

"It's just a place to store embeddings." Storage is the easy half. The value lies in the ANN index structures, metadata filtering, and hybrid ranking — the engineering that turns similarity math into sub-second search at scale.

"I need a new database to use vectors." Not always. pgvector inside PostgreSQL handles many workloads comfortably; dedicated vector databases earn their keep at large scale or under demanding latency requirements. Match the tool to the job.

"Approximate means unreliable." The approximation trades a sliver of recall for orders-of-magnitude speed, and quality is tunable. It is the same bargain web search made decades ago.

"Adding one fixes hallucinations." Retrieval only helps when good documents exist and the search returns them; poor data in, poor answers out. It narrows the problem, it does not eliminate it.

Where to learn more

Start with Pinecone's and Elastic's introductory guides, then read the original HNSW paper if the indexing ideas hook you. To place this concept in the bigger picture, pair it with our explainers on What is RAG? and What is a context window? — retrieval decides what fits into that window, and both determine how much a model really knows when it answers.

Related reading: What is RAG? shows the pipeline this database powers, and What is a context window? explains where retrieved documents end up once found.

If your team added vector search this year, did it actually improve answers — or just add infrastructure? Tell us in the comments.

Sources: pgvector (GitHub)

Read more

Kling 4.0 goes live with 30-second native video at 10-bit HDR

Kling 4.0 goes live with 30-second native video at 10-bit HDR

Kuaishou's Kling AI has spent two years becoming the video model people actually finish projects with. Its new flagship, Kling 4.0, went fully live on October 15 — and this round is less about prettier frames than about the two things that make a generated shot usable in a real edit: length and control. Kling 4.0 generates up to 30 seconds in a single native pass, outputs 10-bit HDR at 4K, 1080p and 21:9, and takes up to 15 reference assets in one task. That budget splits across ten images, fi

Brain organoids classified Braille at 83% — in a trio, not alone

Brain organoids classified Braille at 83% — in a trio, not alone

Two stories today: human brain tissue on a chip decoded a tactile signal, and the data-centre company behind some of the largest AI contracts in Europe turns out to be six months behind on its flagship site. Human forebrain organoids grown on a microelectrode array classified Braille letters with 61 percent accuracy on their own and 83 percent when the responses of three organoids were combined, in a peer-reviewed study from the University of Bristol. The team took event-based tactile readings

Suleyman says Microsoft's base model beat OpenAI's on a quarter compute

Suleyman says Microsoft's base model beat OpenAI's on a quarter compute

Microsoft finished pre-training its biggest in-house model yet — then used it to make a point about the company it bankrolls. Microsoft AI completed pre-training of MAI-Base-2, a mixture-of-experts foundation model with 80 billion active and 2.8 trillion total parameters, and says the recipe is 4.2–12.3x more pre-training FLOPs-efficient than DeepSeek-V4-Pro-Base. The run itself is the number worth keeping: 16,000 Nvidia GB200 GPUs for 38 days across August and September, at 21% average model

Amazon's new Bee devices listen all day — for $11.99 a month

Amazon's new Bee devices listen all day — for $11.99 a month

Amazon turned its always-listening Bee line into a two-device family on Thursday, and NVIDIA opened a 2.8-trillion-token Indic corpus recipe. The connecting thread: both are bets that the next AI money is in memory — yours, or your model's. Amazon put two new always-listening devices on sale, and both now lead to a subscription. Bee Frontier, the next-generation wristband that also clips to clothing, ships now at $74.99 in Onyx, Lavender and Sage — up from the $50 predecessor — with seven-day