---
title: "What is a vector database? Definition and examples"
description: "A vector database stores embeddings and finds the items most similar to a query vector quickly, even across millions of records."
canonical: "https://finic.ai/glossary/vector-database"
last-updated: "2026-12-03"
---

# What is a vector database?

A vector database stores embeddings and finds the items most similar to a query vector quickly, even across millions of records. It is a common building block for AI search and retrieval.

Also called: vector store, vector index

## How it works

Each record is stored with its [embedding](https://finic.ai/glossary/embeddings) and often some metadata, such as a date or category. When a query arrives, it is turned into a vector and the database returns the nearest stored vectors.

Checking every record would be slow, so most vector databases use approximate nearest neighbor indexes. These trade a small amount of accuracy for large gains in speed. Many general databases now offer vector search as a feature, so a separate system is not always needed.

## Why it matters for fraud and risk

Vector search lets teams ask questions like "show me past cases like this one" or "find messages similar to this scam". It is also the retrieval layer behind many [retrieval-augmented generation](https://finic.ai/glossary/retrieval-augmented-generation) tools that give an AI assistant access to policies, playbooks and case history.

Metadata filters matter here. Analysts usually want similar cases within a time range, a product line or a region, not across all data ever stored.

## Security and privacy points

- Embeddings can leak information about the source text, so treat them as sensitive as the data they came from.
- Apply the same access controls as the source system; retrieval should not let users see records they could not open directly.
- Plan for deletion: removing a customer's data means removing their vectors too.
- Watch for [data poisoning](https://finic.ai/glossary/data-poisoning), where an attacker plants content so it is retrieved later.

## Example

A hypothetical compliance team loads its written policies into a vector database. When a reviewer asks an assistant how to handle a certain alert type, the system retrieves the three most relevant policy sections and the assistant answers with references to them.

## Related terms

- [Embeddings](https://finic.ai/glossary/embeddings.md): Embeddings are lists of numbers that represent the meaning of text, images or other data, placed so that similar items sit close together and can be compared mathematically.
- [Hybrid search](https://finic.ai/glossary/hybrid-search.md): Hybrid search combines keyword search, which matches exact words, with vector search, which matches meaning, and merges the results to find relevant items more reliably than either alone.
- [Retrieval-augmented generation (RAG)](https://finic.ai/glossary/retrieval-augmented-generation.md): Retrieval-augmented generation (RAG) is a method where an AI system first finds relevant documents or records, then gives them to a language model to use when it writes its answer.
- [Data poisoning](https://finic.ai/glossary/data-poisoning.md): Data poisoning is an attack that corrupts the data a model learns from, so the model makes wrong or attacker-chosen decisions after training.
- [Agent memory](https://finic.ai/glossary/agent-memory.md): Agent memory is how an AI agent keeps information across steps and sessions, such as past conversations, user preferences and task progress, beyond one prompt.
