AI GLOSSARY · AI CONCEPTS

Vector database

Markdown version · Wikidata Q118396004

Definition

A vector database stores numerical vectors and supports similarity search over them. Vectors can be embeddings of text, images or other data. Exact search and approximate indexes offer different speed and recall tradeoffs; similarity is not a guarantee of relevance.

Also called: vector databases, vector db, vector store, vector search database.

In plain language

A vector database stores lists of numbers and finds stored vectors close to a query vector under a chosen similarity or distance measure. An embedding model can turn documents and a question into those vectors; some database services provide that step, while others expect vectors from your application. A support application can use the results to find candidate articles, but the nearest match can still be irrelevant or stale.

Technical definition

Vector stores support similarity queries over vectors, often alongside metadata filters. Exact search can compare candidates directly. Approximate indexes such as HNSW and IVFFlat trade some recall for speed. The pgvector extension for Postgres performs exact nearest-neighbor search by default; adding an approximate index changes that tradeoff. Embedding generation, storage, retrieval and answer generation are separate responsibilities even when one service combines them.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Guide · Illustrative, not executed

    What Is RAG? Retrieval-Augmented Generation Explained

    What you see
    The guide explains that a RAG index holds chunk embeddings stored with their source metadata, and that edited documents keep returning old text until they are embedded again.
    Why it exercises the concept
    Document RAG is one use of a vector database. The guide describes a concrete failure: a stale index can keep returning old document content.
  2. Skill by Skill Almanac · Illustrative, not executed

    rag-chunking-planner 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Your documents split by three chunking strategies, with defects and offline recall reported for each, so chunk settings are chosen with numbers.
    Why it exercises the concept
    In document RAG, a vector database can store chunk embeddings with associated text or metadata. Chunk boundaries affect retrieval candidates; this skill uses an offline lexical proxy before indexing, not a measured vector-database retrieval test.
  3. Skill by Skill Almanac · Illustrative, not executed

    library-docs-lookup 52/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    An answer to a library question drawn from the installed package's own files, with file and line cited.
    Why it exercises the concept
    It is a contrast case: a coding agent that retrieves from the files already on disk. It shows that retrieval does not always need a vector database.

How it shows up when you use agents

A vector database is usually invisible in a coding session, but it sits behind several agent features: a chat app that answers questions about uploaded files, a documentation assistant, and a notes store an agent searches for earlier decisions. When you connect one to an agent, for example through an MCP server, the agent gets a tool such as a search call. The application can use returned vector matches to select associated passages and add them to a model prompt. That retrieval-and-generation pipeline is one implementation of retrieval-augmented generation.

What breaks when it is misunderstood: people treat the database as the answer instead of a retrieval step. The model can still write a wrong answer from the right passages, or from the wrong ones if the index is stale. Others reach for a separate vector service for a small set of documents, when searching the files directly may do. Some products add vector search to a database you already run, as pgvector does for Postgres, which can be a smaller step.

Next actions. Before choosing a product, write down how many documents you have, how often they change and whether exact matches matter. Test retrieval on real questions before wiring in a model. Re-embed documents when they change, and check what any hosted service does with your data. The embedding entry explains what is being stored.

Common confusions

  • Vector search versus other database queries. Similarity search ranks vectors using a chosen measure. Databases can also support structured filters, text search and other query types; Postgres with pgvector combines relational and vector features.
  • Vector database versus embedding. The embedding is a stored vector. The database is the system that holds many of them and searches them quickly.
  • Vector database versus memory. A database can serve as an agent memory store, but memory also involves what to write, when to read it and when to forget. Storage alone does not decide that.
  • Myth. Approximate search finds the true closest matches. pgvector's README says an approximate index trades some recall for speed and changes results compared with exact search.
Show all 25 related terms

Terms that mention Vector database

24 terms mention this one

More in AI concepts

Next steps

  1. What Is RAG? Retrieval-Augmented Generation Explained The long-form guide.
  2. rag-chunking-planner A skill that exercises it.
  3. Embedding Related term.
  4. Retrieval-augmented generation (RAG) Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft) and Codex (automated revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (6)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Verifier pass: attributed the speed trade-off to pgvector; dropped unsupported 'no vector index'.
  • : Targeted correction from source-supported early audit; complete exact-version review remains pending.
  • : Required source-scope correction applied; independent affected-claim recheck pending.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.