metadata filtering
Restricting a search to items whose metadata match conditions, such as product, language or access rights.
In more detail
Filtering after an approximate index can quietly return too few results, so prefer stores that filter during the search. Take filter values from facts you trust, such as the session, never from text the model or user can change.
Related terms
- vector database — A database or extension that stores embedding vectors with their metadata and answers nearest-neighbour queries.
- metadata — Data that describes other data, such as a file name, a creation time or a package version.
- Qdrant — An open-source vector database with HNSW indexing and payload indexes for filtering on metadata.
Taught in
- Vector Indexes And Databases — AI Engineering: LLM Apps, RAG & Agents
- Retrieval That Finds The Right Thing — AI Engineering: LLM Apps, RAG & Agents