Thinklytics

AI Infrastructure · 7 min read · July 2026

What Is a Vector Database? A Plain-English 2026 Guide for Teams Building AI

By Thinklytics Partners, Data & AI Consulting Practice

Your team wants to build a chatbot over internal docs, and someone says you need a vector database. Before you buy one, here is what it actually does, when a regular Postgres table is plenty, and how to tell the difference without the hype.

Someone on your team wants to build an assistant that answers questions from your internal documents, and the plan calls for a vector database. It sounds like specialized infrastructure you now have to learn, budget for, and maintain. Before any of that, it helps to know what the thing actually does and whether your situation calls for one at all.

This guide explains what a vector database is in plain terms, how it differs from the SQL database you already run, and where the honest line sits between "you need this" and "a Postgres extension covers you." No hype, just what we would tell you across a table.

What a vector database actually is

A vector database stores content as embeddings, which are long lists of numbers, and searches them by similarity instead of exact match. That last part is the whole point. A normal database is built to find the row where an ID equals a value. A vector database is built to find the rows that are closest in meaning to whatever you gave it.

When you save a document, the database keeps its embedding. When you ask a question, the question also becomes an embedding, and the database returns the stored items whose numbers sit nearest to your question's numbers. "Nearest" is measured with distance math, and shorter distance means more related content. That is the core loop: store as numbers, search by closeness.

What an embedding is, in plain terms

An embedding is a model's numeric summary of a piece of content. Feed a sentence to an embedding model and it returns a list of a few hundred to a few thousand numbers. The useful property is that content with similar meaning lands at similar numbers, so "cancel my subscription" and "how do I end my plan" end up close together even though they share almost no words.

This is why vector search feels smarter than keyword search. It matches on meaning rather than the exact letters you typed. The quality of that matching depends heavily on the embedding model you choose, which is a separate decision from the database that stores the output.

Why vector databases matter for AI and search

Two forces made vector databases common. The first is RAG, or retrieval-augmented generation, where a language model answers using documents you pull in at query time. To pull in the right documents, you need to search by meaning, and that search runs against a vector store.

The second is semantic search inside products: help centers, e-commerce catalogs, and support tools that return results by intent rather than exact keywords. In both cases the pattern is the same. Turn your content into embeddings, store them, and at query time find the closest matches to feed the model or show the user. The vector database is the piece that makes that lookup fast at scale.

How they differ from a traditional SQL database

A SQL database is optimized for exact and structured questions. Give it a customer ID and it returns that customer. Ask for orders between two dates and it scans an index built for ranges. The answers are precise and repeatable, and the query either matches or it does not.

A vector database answers a fuzzier question: which items are most like this one. There is no exact match, only a ranked list ordered by closeness. It uses specialized indexes, often called approximate nearest neighbor indexes, that trade a tiny bit of accuracy for a large speed gain, because comparing your query against millions of vectors one by one would be too slow. This is a different job, not a better version of the same job. Most systems keep the SQL database for records and add vector search for meaning.

When you actually need one

Be honest about your scale before you adopt new infrastructure. If you have a few thousand documents and a modest amount of traffic, you may not need a dedicated vector database at all. The pgvector extension adds vector columns and similarity search to Postgres, so your embeddings live in the database you already run and back up. For collections up to a few hundred thousand vectors, that is often all you need, and it keeps you filtering on normal columns and vectors in one query.

You have outgrown that setup when a few things start to hurt. Vector counts climb into the millions, query latency under load matters to the user experience, index rebuilds slow your writes, or you want features like hybrid search and rich metadata filtering without building them yourself. Those are the signals that a purpose-built system starts to pay for itself. Adopting one before you feel that pain usually adds cost and operational overhead for capability you are not using yet.

The main options, at a high level

The options split into a few groups. There are the extension approaches, where pgvector on Postgres and similar add-ons on databases you already run give you vector search without a new system. There are the dedicated managed services that run the store for you and bill by vectors and traffic. And there are open-source engines you can self-host, which remove the subscription fee in exchange for the work of running and tuning them.

None of these is the right answer for everyone. The extension route wins on simplicity when your data already sits in Postgres. Managed services win when you want scale without operating the infrastructure. Self-hosting wins when you have the team and want control over cost and data location. Pick based on your scale, your existing stack, and how much operations work you want to own.

How to start

Start with the smallest thing that works. Put a few hundred real documents through an embedding model, load them into pgvector or a free tier of a managed service, and run actual queries your users would ask. You will learn more from that afternoon than from any comparison chart, because retrieval quality depends on your content and your embedding model as much as the database.

If the pilot shows promise and the scale question gets real, that is a good moment to bring in help. Our AI consulting work often starts exactly here, sizing the problem before anyone commits to infrastructure so you buy what the workload needs and nothing more.

Frequently asked questions

What is a vector database in simple terms?

A vector database stores text, images, or other content as lists of numbers called embeddings, and lets you search for items by meaning rather than exact keywords. When you ask a question, it finds the stored items whose numbers sit closest to your question's numbers. That closeness stands in for similarity of meaning.

What is the difference between a vector database and a SQL database?

A SQL database answers exact-match and range questions: rows where the status equals open or the date falls in June. A vector database answers similarity questions: the ten documents most related to this paragraph. They solve different problems, and most real systems use both side by side rather than replacing one with the other.

Do I need a vector database for RAG?

You need a way to store embeddings and search them by similarity, which a vector database provides. For small collections up to a few hundred thousand items, the pgvector extension on Postgres often handles this without a separate system. A dedicated vector database earns its place once you reach millions of vectors, need low latency at scale, or want metadata filtering and hybrid search built in.

What is an embedding?

An embedding is a list of numbers that a model produces to represent a piece of content. Content with similar meaning gets similar numbers, so the distance between two embeddings tells you how related they are. Embeddings are what a vector database stores and compares, so the quality of your embedding model matters as much as the database you pick.

Is pgvector enough, or do I need a specialized vector database?

pgvector is enough for many production systems, especially when your data already lives in Postgres and your collection is in the hundreds of thousands of vectors. It keeps your stack simpler and lets you filter on regular columns and vectors in one query. Move to a specialized database when index build times, query latency, or vector counts in the millions start to strain Postgres.

How much does a vector database cost to run?

Managed services charge by the volume of vectors stored and the query traffic, and small projects often run in the low hundreds of dollars a month or less. Self-hosted open-source options trade that fee for the engineering time to run and tune them. The larger hidden cost is usually the embedding model calls and the work to keep your index fresh as content changes.

Topics covered

  • Vector Databases
  • Embeddings
  • RAG
  • Semantic Search
  • AI Infrastructure
  • pgvector

Frequently asked questions

What is a vector database in simple terms?

A vector database stores text, images, or other content as lists of numbers called embeddings, and lets you search for items by meaning rather than exact keywords. When you ask a question, it finds the stored items whose numbers sit closest to your question's numbers. That closeness stands in for similarity of meaning.

What is the difference between a vector database and a SQL database?

A SQL database answers exact-match and range questions: rows where the status equals open or the date falls in June. A vector database answers similarity questions: the ten documents most related to this paragraph. They solve different problems, and most real systems use both side by side rather than replacing one with the other.

Do I need a vector database for RAG?

You need a way to store embeddings and search them by similarity, which a vector database provides. For small collections up to a few hundred thousand items, the pgvector extension on Postgres often handles this without a separate system. A dedicated vector database earns its place once you reach millions of vectors, need low latency at scale, or want metadata filtering and hybrid search built in.

What is an embedding?

An embedding is a list of numbers that a model produces to represent a piece of content. Content with similar meaning gets similar numbers, so the distance between two embeddings tells you how related they are. Embeddings are what a vector database stores and compares, so the quality of your embedding model matters as much as the database you pick.

Is pgvector enough, or do I need a specialized vector database?

pgvector is enough for many production systems, especially when your data already lives in Postgres and your collection is in the hundreds of thousands of vectors. It keeps your stack simpler and lets you filter on regular columns and vectors in one query. Move to a specialized database when index build times, query latency, or vector counts in the millions start to strain Postgres.

How much does a vector database cost to run?

Managed services charge by the volume of vectors stored and the query traffic, and small projects often run in the low hundreds of dollars a month or less. Self-hosted open-source options trade that fee for the engineering time to run and tune them. The larger hidden cost is usually the embedding model calls and the work to keep your index fresh as content changes.

Related reading

Thinklytics

Data and AI consulting for Fortune 500s, health systems, and growth-stage companies. Clean data, governed metrics, analytics ready for AI.

Austin, TX · United States

[email protected]