Also known as: Vector Database, Vector Store, Embedding index
A vector database (vector store) is a specialised database for high-dimensional vectors — typically embeddings derived from text, images or audio. Its core task is nearest-neighbour search: given a query vector, find the K most similar vectors in the index. For classic table-based databases this would be extremely slow because of the high dimensionality (often 768–3,072) — vector databases use dedicated indexing methods such as HNSW, IVF or Annoy to deliver sub-millisecond searches across millions or billions of vectors.
In a typical RAG architecture: (1) sources are cut into chunks (for example, one per H2 section). (2) An embedding is generated for each chunk and written to the vector database, together with metadata (URL, date, author). (3) When a user asks a question, the question itself is converted into a vector and the K nearest chunks are retrieved from the vector database. (4) These chunks are passed to the LLM, which composes an answer from them and references the original URLs as citations.
Rankmio uses pgvector in a separate PostgreSQL database for the chat agent's RAG pipeline: glossary entries, manual sections, FAQ answers and user project data are fed in as chunks, so that the chat agent can retrieve the most thematically relevant pieces of knowledge for every request — without having to send the full content along with every LLM prompt. The effect: faster, more precise and cheaper answers than without RAG.
Example: A company website with 1,200 knowledge articles builds a RAG-based site search. Without a vector database, the search index would have to rely on classic full text — the user has to know the exact terms. With pgvector and embeddings, the search finds the right article even when the user phrases things quite differently: ”Why is my page loading slowly?” automatically surfaces the PageSpeed article and the Core Web Vitals documentation — even if none of those terms appear in the search text.
Chat agent with RAG pipeline in Rankmio
Free SEO & GEO Check
SEO score, AI visibility and citability of your website in 30 seconds — no registration required.
Register for free, get 10 credits and start right away.
Register now