What is self-query retrieval and how does it work?
RAG & Vector DB Interview: Advanced RAG, HyDE, Multi-Query, Self-Query, GraphRAG
Audio flashcard · 0:27Nortren·
What is self-query retrieval and how does it work?
0:27
Self-query retrieval uses a language model to parse the user's natural-language query into a structured query that includes both a semantic search component and explicit metadata filters. For example, a query like "action movies from the 1990s" becomes a vector search on "action movies" with a filter on year between 1990 and 1999. This handles queries that mix semantic intent with structured constraints, which naive vector search cannot express. It requires a schema description of filterable metadata fields.
python.langchain.com