01
Vector search and semantic retrieval
Storing and querying vector embeddings with associated metadata for semantic search over unstructured data, via Redis Search and the RedisVL client library.
“Redis Data Integration keeps Redis in sync with the primary database in near real time.” redis.io
Mapped capabilities
4 capabilities
Vector indexing over hashes and JSON documents
Choosing hash vs. JSON storage for embeddings and defining an index over vector plus metadata fields.
KNN and range queries
Formulating nearest-neighbor and range vector queries and interpreting returned scores/results.
Metadata filtering on vector queries
Combining structured metadata predicates with vector similarity in a single query.
RedisVL client usage
Using the dedicated Python vector library to define schemas, load vectors, and run searches.
Illustrative example
- Input
- Our embeddings live in JSON documents alongside a category field. How do we run a nearest-neighbor search that only returns documents where category is "support"?
- Expected behavior
- Explains that a vector index can be defined over JSON documents with both the vector field and the category metadata field, then a KNN query is issued with a filter on category so similarity ranking is restricted to matching documents.




