Vector database
A vector database is a data-management system that stores and indexes numerical vector representations and supports retrieval through similarity or distance searches.
Grokking AI Applications
A vector store is a specialized database that stores text chunks or other items together with vector representations for similarity-based retrieval.
- How it is used
- Supports retrieval of external knowledge for document-grounded answers and agent tools.
- How deep it goes
- Works through ingestion and retrieval, a two-dimensional distance example, and a Langflow implementation.
- Examples
- Uses a restaurant PDF assistant and a cookbook-searching chef agent.
- What you can do after
- Apply it via Langflow to ingest documents, retrieve relevant chunks, and provide context for answers.
Read how Grokking AI Applications explains vector database →
Generative AI in Action
A vector database is a data-management system that stores and provides access to data together with numerical vector representations and supports vector-based retrieval.
- How it is used
- Supports enterprise semantic retrieval and supplies proprietary or newer context to RAG applications.
- How deep it goes
- Explains ingestion, indexing choices, and a working retrieval flow, while identifying additional engineering needed for production.
- Examples
- Demonstrates chat over blog posts using Redis and semantic retrieval over PDF documents using Chroma.
- What you can do after
- Apply it via Redis to store embeddings and retrieve relevant chunks for a RAG-powered chat application.
AI Agents and Applications
A vector store is a database specialized for storing embeddings and associated documents and retrieving them by semantic similarity.
- How it is used
- Uses vector stores to ground Q&A and chatbot responses in retrieved knowledge rather than relying solely on pretrained model knowledge.
- How deep it goes
- Explains ingestion and similarity retrieval, contrasts vector libraries with databases, and demonstrates document storage and querying without detailing index algorithms.
- Examples
- Uses Paestum documents from Wikipedia, Word, PDF, and text sources to demonstrate storage and cross-source similarity search.
- What you can do after
- Apply it via LangChain and Chroma to ingest document chunks and inspect similarity-search results.
Read how AI Agents and Applications explains vector database →
Spring AI in Action
A vector store is a data store that indexes numerical vector representations and supports similarity-based retrieval of associated items such as documents.
- How it is used
- Supports RAG applications by retrieving relevant document chunks for inclusion in prompts.
- How deep it goes
- Explains chunk loading, embeddings, similarity search, metadata filtering, deployment, and verification, while deferring embedding mathematics.
- Examples
- Uses board-game rulebooks, a Spring Cloud Function pipeline, Qdrant collections, and filtered game-rules queries.
- What you can do after
- Build it from scratch with Spring AI, Docker Compose, Qdrant, document readers, splitters, and VectorStore searches.
Build Python Web Apps with Streamlit
A vector database is a data-storage system optimized for storing, indexing, and searching numerical vector representations by similarity.
- How it is used
- Supplies relevant private knowledge to a customer support chatbot through retrieval-augmented generation.
- How deep it goes
- Explains embeddings with a simple analogy and walks through index setup, ingestion and retrieval without requiring database internals.
- Examples
- Uses a movie-rating vector analogy and a customer support knowledge base containing product and fountain-pen care articles.
- What you can do after
- Applies a vector store through Pinecone and LangChain to ingest articles and retrieve context for a chatbot.
Read how Build Python Web Apps with Streamlit explains vector database →
Effective Conversational AI
A vector store is a storage system that indexes numerical vector representations for similarity search.
- How it is used
- Retrieves relevant document passages by meaning to supply context for a RAG chatbot’s answer.
- How deep it goes
- Explains chunk indexing and query-time similarity retrieval, then gives selection and evaluation criteria without detailing index internals.
- Examples
- Uses a medication question, a Chroma document-ingestion example, and a customer-support retrieval scenario.
- What you can do after
- Evaluate/understand a vector store’s fit using retrieval relevance, recall, latency, indexing demands, scale, and cost.
Read how Effective Conversational AI explains vector database →
Data Pipelines with Apache Airflow, Second Edition
A vector database is a database that stores vector representations and supports operations such as similarity search and vector-based retrieval.
- How it is used
- Supports recipe retrieval for RAG answers while Airflow maintains the underlying collection.
- How deep it goes
- Explains embedding-based retrieval and works through collection configuration, record updates, and task ordering; leaves embedding-model training aside.
- Examples
- Uses family recipes, a lasagna question, a flavor-space analogy, a Weaviate ingestion DAG, and a recipe chat assistant.
- What you can do after
- Build it from scratch using Airflow tasks to populate Weaviate, maintain recipe records, and retrieve context for generated answers.
Read how Data Pipelines with Apache Airflow, Second Edition explains vector database →
LLMs in Production
A vector database is a database optimized for storing and retrieving numerical vector representations using similarity-based search.
- How it is used
- Supports similarity retrieval of embeddings for LLM infrastructure and retrieval-augmented coding assistance.
- How deep it goes
- Explains similarity search and an IVF_FLAT index, then demonstrates collection creation, ingestion, and querying with Milvus.
- Examples
- Uses reverse image search and an Alpaca Python coding-challenge dataset to illustrate similarity retrieval.
- What you can do after
- Apply it via Milvus to ingest embedded coding examples and query for similar instructions.
Natural Language Processing in Action, Second Edition
A vector store is a software component that stores and retrieves numerical vectors, typically with similarity-search indexes.
- How it is used
- Powers scalable semantic search and retrieval-augmented generation over document collections.
- How deep it goes
- Explains embeddings, similarity ranking, ANN indexing, storage, updates, and deployment choices without detailing every indexing algorithm.
- Examples
- Names Milvus, Weaviate, Qdrant, pgvector, OpenSearch, Pinecone, Haystack, and Knowt as implementation or pipeline examples.
- What you can do after
- Build semantic-search and RAG pipelines by selecting embeddings, ANN indexes, vector stores, and retrieval frameworks.
Read how Natural Language Processing in Action, Second Edition explains vector database →
Build an Advanced RAG Application (From Scratch)
A vector database stores, indexes, and retrieves numerical vector representations for similarity-based search.
- How it is used
- Supports scalable embedding retrieval and metadata-filtered context for multi-city hotel search and RAG.
- How deep it goes
- Walks through collection creation, point upload, filtered querying, and answer-context assembly, without detailing database internals.
- Examples
- Uses hotel-review embeddings, an Istanbul locality filter, and a generated response to “Amazing hotel close to everything.”
- What you can do after
- Apply it via Qdrant to store review embeddings, filter by locality, retrieve payloads, and supply RAG context.
Read how Build an Advanced RAG Application (From Scratch) explains vector database →
MongoDB 8.0 in Action, Third Edition
A vector database is a database system that stores, retrieves, and searches numerical vectors by their similarity in a multidimensional space.
- How it is used
- Supports similarity-based retrieval for semantic search, recommendations, and retrieval-augmented generation.
- How deep it goes
- Explains embedding-to-query workflow and Atlas search parameters, but defers a working embedding-generation query example.
- Examples
- Uses a “village life” movie-plot search and a chatbot retrieving prevalidated MongoDB documentation from a PDF.
- What you can do after
- Apply it via Atlas Vector Search to retrieve similar documents and via LangChain to supply context to a RAG chatbot.
Read how MongoDB 8.0 in Action, Third Edition explains vector database →
Machine Learning Platform Engineering
A vector database is a database system that stores numerical vector representations and supports similarity-based retrieval.
- How it is used
- Supplies meaning-based document retrieval for RAG, providing relevant context before LLM generation.
- How deep it goes
- Walks through embedding, indexing, and query retrieval with FAISS; stops short of vector-index algorithm internals.
- Examples
- Uses API-credential questions, a FAISS document store, and manual versus LangChain retrieval code.
- What you can do after
- Apply it via FAISS and LangChain to retrieve document context for a RAG application.
Read how Machine Learning Platform Engineering explains vector database →
Build AI-Enhanced Web Apps
A vector store is a database or storage abstraction that indexes high-dimensional vectors for efficient similarity-based retrieval.
- How it is used
- Supports semantic document retrieval and supplies relevant context to RAG web applications.
- How deep it goes
- Walks through embedding, storage, similarity search, and filesystem-backed indexing without detailing vector index internals.
- Examples
- Demonstrates an in-memory text search and a PDF indexing routine using a filesystem-backed store.
- What you can do after
- Apply it via LangChain.js to create a vector store, search documents, and prepare a persistent index for retrieval.
Read how Build AI-Enhanced Web Apps explains vector database →
Designing AI Systems
A vector database is a database system optimized for storing, indexing, and retrieving vector representations.
- How it is used
- Provides searchable organizational knowledge by storing document embeddings and retrieving relevant chunks for workflows.
- How deep it goes
- Defines write and search interfaces, compares backends, and explains orchestration; defers a full multimodal retrieval implementation.
- Examples
- Uses customer-facing and internal reset guides to illustrate metadata filtering, and compares pgvector with purpose-built alternatives.
- What you can do after
- Apply it via pgvector behind a storage interface, with scoped writes, similarity search, filters, and deletion controls.
Building Reliable AI Systems
A vector database is a database designed to store and retrieve vector representations, often by similarity.
- How it is used
- Supports similarity-based retrieval of document chunks for grounded generation.
- How deep it goes
- Explains indexes, metadata filters, and production features, then walks through a managed database workflow.
- Examples
- Uses health-care policy chunks, medical-domain embeddings, and filtered searches for current policies.
- What you can do after
- Apply it via Pinecone to index policy chunks and query them with metadata filters.
Read how Building Reliable AI Systems explains vector database →
Domain-Specific Small Language Models
A database designed to store vectors and support similarity search, typically using approximate nearest neighbor methods for retrieval.
- How it is used
- Supports retrieval of similar document chunks as external context for RAG generation.
- How deep it goes
- Works through a local table schema, cosine IVF_FLAT index, and search; stops short of ANN algorithm internals.
- Examples
- Demonstrates a PDF-derived embedding table and a “blocked KV-cache” query returning three matching records.
- What you can do after
- Apply it via LanceDB to store chunk embeddings, create a cosine index, and retrieve passages for a RAG prompt.
Read how Domain-Specific Small Language Models explains vector database →
Enterprise RAG
A vector database is a data store optimized for storing, indexing, and searching numerical vectors by similarity.
- How it is used
- Supports RAG retrieval by finding document content conceptually similar to a user question before LLM generation.
- How deep it goes
- Defines similarity-based storage and search, then situates it in ingestion and retrieval workflows without detailing database indexes or algorithms.
- Examples
- Uses electronics product manuals and battery-life or warranty questions to demonstrate searchable document retrieval.
- What you can do after
- Evaluate/understand how prepared document chunks are embedded, searched, and passed to an LLM for answers.
AI Agents in Action, Second Edition
A vector database server is a service that exposes storage and similarity retrieval over vector representations.
- How it is used
- Supports retrieval of document and memory context for RAG agents.
- How deep it goes
- Explains ingestion and similarity retrieval, then demonstrates TF-IDF cosine search and a persistent Chroma DB collection.
- Examples
- Uses an interactive document-search exercise and a movie-script question-answering agent.
- What you can do after
- Builds a simple in-memory vector store and applies Chroma DB to retrieve embedded document chunks.
Read how AI Agents in Action, Second Edition explains vector database →
Retrieval Augmented Generation, The Foundational Ideas
A vector database is a database system designed to store and retrieve vector representations using similarity search.
- How it is used
- Provides the storage and similarity-retrieval layer for retrieval-augmented generation and other AI applications.
- How deep it goes
- Explains vector storage, similarity search, query transformation, and retrieval safeguards without detailing database indexing internals.
- Examples
- Names Weaviate, Pinecone, Qdrant, Chroma, and FAISS, then demonstrates HyDE-generated vectors in a LangChain retrieval flow.
- What you can do after
- Apply it via FAISS or a managed vector database, then inspect, rerank, route, or reject retrieved results in a RAG pipeline.
Read how Retrieval Augmented Generation, The Foundational Ideas explains vector database →
Investing for Programmers
A vector database is a database designed to store and retrieve vector representations of data, typically for similarity-based search.
- How it is used
- Supports retrieval-augmented generation by storing embedded document chunks for prompt-specific context retrieval.
- How deep it goes
- Explains chunking, embedding, insertion, and similarity search, but defers production database management.
- Examples
- Uses text files, overlapping document chunks, OpenAI embeddings, an in-memory store, and autonomous-driving company questions.
- What you can do after
- Apply it via LangChain by embedding documents, storing them, retrieving similar context, and passing results to an LLM.
Read how Investing for Programmers explains vector database →
Introduction to Generative AI, Second Edition
A vector database is a data-management system optimized for storing and searching high-dimensional vector representations by similarity.
- How it is used
- Supports retrieval-augmented generation by finding relevant external information before a language model generates a response.
- How deep it goes
- Explains embeddings, semantic similarity, nearest-neighbor retrieval, and context insertion, but does not detail database implementation.
- Examples
- Uses travel-policy retrieval and vegan-restaurant recommendations involving user memory, Yelp, and web search.
- What you can do after
- Apply it via retrieval-augmented generation to ground responses in related documents and make supporting sources inspectable.
Read how Introduction to Generative AI, Second Edition explains vector database →
Data Storytelling with Altair and AI
A vector database is a database optimized for storing and retrieving numerical vector representations by similarity or other vector operations.
- How it is used
- Extends an LLM with domain-specific context for RAG answers, commentaries, and annotations.
- How deep it goes
- Walks through loading HTML, chunking text, generating embeddings, persisting Chroma data, and querying it through RetrievalQA.
- Examples
- Uses a New SmartX 2023 HTML product page, a Chroma collection, and a 30-word product-description query.
- What you can do after
- Apply it via Chroma and LangChain to build a retriever-backed LLM question-answering application.
Read how Data Storytelling with Altair and AI explains vector database →
Grokking Software Architecture
A vector database is a database system optimized for storing, indexing, and querying numerical vector representations.
- How it is used
- Frames vector databases as a data-storage choice for AI features that need semantic meaning rather than exact keyword matches.
- How deep it goes
- Explains embeddings as numerical coordinates, illustrates nearest-neighbor retrieval, and names database options.
- Examples
- Uses product-label search, dog-and-puppy similarity, and tennis-racket recommendations as examples.
- What you can do after
- Evaluate database fit by matching semantic-similarity workloads to vector databases rather than keyword search.
Read how Grokking Software Architecture explains vector database →
The Art of AI Product Development
A vector database is a database optimized for storing numeric vector representations and retrieving items by vector similarity.
- How it is used
- Supports semantic search by storing document embeddings and retrieving items according to vector similarity.
- How deep it goes
- Explains distributional similarity and the storage-and-retrieval workflow, without detailing database internals.
- Examples
- Uses apple, banana, and car to illustrate distances between semantically similar and dissimilar embeddings.
- What you can do after
- Apply it via semantic search to retrieve documents whose meanings resemble a query.
Read how The Art of AI Product Development explains vector database →
Just Use Postgres!
A vector database is a database designed to store vector representations and support efficient similarity searches over them.
- How it is used
- Supports recommendation services, private-data retrieval, RAG applications, and autonomous AI agents.
- How deep it goes
- Explains storage, similarity search, embeddings, and specialized indexes, while deferring detailed index operation and deployment guidance.
- Examples
- Uses a movie recommendation service, private datasets, Docker commands, and pgvector extension setup as concrete examples.
- What you can do after
- Operate/configure Postgres with pgvector and use stored embeddings for similarity search and RAG context retrieval.
Build a Multi-Agent System (from Scratch)
A vector database stores and indexes vector embeddings to support similarity-based retrieval.
- How it is used
- Support episodic-memory recall by retrieving records through semantic similarity rather than recency.
- How deep it goes
- Trace embedding, indexing, persistence, and similarity retrieval through a QdrantMemoryStore implementation.
- Examples
- Use a Hailstone-sequence query to retrieve a stored episode about computing the sequence for 6.
- What you can do after
- Apply it via QdrantMemoryStore to embed and persist episodes, then retrieve similar episodes for a query.
Read how Build a Multi-Agent System (from Scratch) explains vector database →
Transformers in Action
A vector database is a database optimized for storing, indexing, and searching vector representations by their similarity.
- How it is used
- Deploys as the retrieval store in RAG systems that supply language models with relevant external context.
- How deep it goes
- Explains storage, embeddings, similarity retrieval, approximate nearest-neighbor search, and tuning concerns, but stops short of database internals.
- Examples
- Uses chunked documents, query embeddings, top-matching passages, and Flashrank or JinaRerank refinement as concrete pipeline examples.
- What you can do after
- Operate/configure RAG retrieval by selecting a vector store, embedding model, retrieval strategy, chunk size, and top-k value.
AI-Powered Search
A vector database is a database optimized for storing, indexing, and retrieving vector representations by similarity.
- How it is used
- Supports retrieval-augmented generation by supplying language models with accurate, up-to-date information as context.
- How deep it goes
- Explains the search and grounding role, but stops short of indexing, similarity metrics, storage, or operational procedures.
- Examples
- Uses retrieval-augmented generation and a convergence diagram spanning textual, audio, video, metadata, sensory, and temporal modalities.
- What you can do after
- Apply it via retrieval-augmented generation as a knowledge source for grounding language-model responses.
AI Agents in Action
A vector database is a database optimized for storing numerical vector representations and retrieving records by vector-based similarity or distance.
- How it is used
- Stores document or conversation vectors for similarity retrieval in RAG and agent-memory workflows.
- How deep it goes
- Demonstrates in-memory TF–IDF search and Chroma embedding retrieval, while leaving more robust database options for later.
- Examples
- Uses document chunks, conversation snippets, a Python TF–IDF search, and a Chroma document-query example.
- What you can do after
- Apply it via a Python search exercise or Chroma to retrieve documents similar to a query.
Software Testing with Generative AI
A vector database is a database specialized for storing and retrieving numerical vector representations using similarity-based search.
- How it is used
- Supports retrieval-augmented generation by selecting contextual data for prompts.
- How deep it goes
- Defines similarity-based storage and retrieval, but defers database internals and algorithm details.
- Examples
- Uses querying a database to pull multiple relevant files into a prompt.
- What you can do after
- Operate vector databases in RAG frameworks to retrieve contextual files for prompts.
Read how Software Testing with Generative AI explains vector database →
LLM Customization and Fine-Tuning
An operational database layer that provides vector search plus persistence, filtering, replication, multi-tenancy, and observability.
- How it is used
- Provides an operational layer for vector search when persistence, filtering, replication, multi-tenancy, and observability matter.
- How deep it goes
- Distinguishes database capabilities and scale choices, then flags embedding drift, index-update latency, and filtering performance.
- Examples
- Names Pinecone, Weaviate, Qdrant, Postgres with pgvector, FAISS, and a NumPy array as scale-specific options.
- What you can do after
- Evaluate database options against corpus scale, tenancy, audit logging, update frequency, and filtering needs.
Read how LLM Customization and Fine-Tuning explains vector database →
Building LLM Applications with DSPy
A vector store is a data system that indexes and retrieves numerical vector representations, typically by similarity.
- How it is used
- Uses vector similarity to retrieve relevant documents for a RAG system.
- How deep it goes
- Explains embedding, storage, top-k retrieval, and a corpus-size-based backend choice without detailing database internals.
- Examples
- Uses a discount-pricing question to retrieve matching article titles, then applies the approach to a knowledge base.
- What you can do after
- Apply it via DSPy’s Embeddings retriever to return the top-k similar items from a corpus.
Read how Building LLM Applications with DSPy explains vector database →
Vibe Engineering
A vector database is a database specialized for storing vector embeddings and retrieving them by similarity.
- How it is used
- Supports context-aware AI coding assistance by retrieving repository fragments relevant to a developer’s request.
- How deep it goes
- Traces chunking, embedding, similarity search, and prompt augmentation, then flags relevance as an unresolved engineering question.
- Examples
- Uses repository chunks and a JWT login-service refactoring request to illustrate indexed retrieval.
- What you can do after
- Evaluate indexed retrieval against agentic search while checking whether retrieved context is actually needed.
Build Applications with Local AI Models on a Mac
A vector database stores vector representations and supports searching for vectors that are similar or close to a query vector.
- How it is used
- Supports RAG by providing access to a user's documents through vector search.
- How deep it goes
- Defines vector storage and similarity search, but does not explain implementation or internals.
- Examples
- Names ChromaDB as an example of a vector database used for RAG.
- What you can do after
- Understand vector databases as a component of RAG architectures.
Read how Build Applications with Local AI Models on a Mac explains vector database →
Also covered in
- Decision EngineeringIn early access (MEAP)
- AI GovernanceIn early access (MEAP)
- Digital Twins in Action
- Deep Learning with R, Third Edition
- Deep Learning with Python, Third Edition
- Build an AI Agent (From Scratch)
- Knowledge Graphs and LLMs in Action
- Architecting an Apache Iceberg Lakehouse
- Financial AI in Practice
What to know first
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
- embeddingAn embedding is a numerical vector representation of an item in a feature space, encoding selected properties or relationships for computational tasks such as comparison or retrieval.
- similarity searchSimilarity search is a retrieval technique that finds or ranks items by their similarity to a query, often by comparing feature or vector representations under a similarity or distance measure.
- retrieval-augmented generationRetrieval-augmented generation is a technique that retrieves relevant information from external sources and supplies it as context to a generative model when producing an output.
Related concepts
- ChromaDBincludes · Chroma is an open-source vector database for storing and querying embedding vectors and associated data, such as documents and metadata.
- Pineconeincludes · Pinecone is a managed cloud vector database service for storing, indexing, and querying vector embeddings, including through similarity search.
- VectorStoreChatMemoryAdvisorused by · VectorStoreChatMemoryAdvisor is a Spring AI advisor that stores chat messages as embeddings in a vector store and retrieves relevant messages as conversational context.
- retrieval-augmented generationused by · Retrieval-augmented generation is a technique that retrieves relevant information from external sources and supplies it as context to a generative model when producing an output.
Questions about vector database
What is vector database?
A vector database is a data-management system that stores and indexes numerical vector representations and supports retrieval through similarity or distance searches.
Which Manning books explain vector database?
Grokking AI Applications, Generative AI in Action, AI Agents and Applications, Spring AI in Action, Build Python Web Apps with Streamlit, Effective Conversational AI, Data Pipelines with Apache Airflow, Second Edition, LLMs in Production and 26 more.
What should I know before learning vector database?
Manning books that teach vector database usually introduce language model, embedding, similarity search and retrieval-augmented generation first.
What kinds of vector database are there?
Kinds of vector database include ChromaDB, Pinecone and Spring AI Qdrant.
What is vector database also called?
Vector database is also called vector store, Vector DB, VectorStore or embedding database.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

































