Redis for AI documentation

An overview of Redis for AI documentation

Redis stores and indexes vector embeddings that semantically represent unstructured data including text passages, images, videos, or audio. Store vectors and the associated metadata within hashes or JSON documents for indexing and querying.

Vector RAG RedisVL
AI Redis icon. Redis vector database quick start guide AI Redis icon. Retrieval-Augmented Generation quick start guide AI Redis icon. Redis vector Python client library documentation

Overview

  1. Create a vector index: Redis maintains a secondary index over your data with a defined schema (including vector fields and metadata). Redis supports FLAT and HNSW vector index types.
  2. Store and update vectors: Redis stores vectors and metadata in hashes or JSON objects.
  3. Search with vectors: Redis supports several advanced querying strategies with vector fields including k-nearest neighbor (KNN), vector range queries, and metadata filters.
  4. Configure vector queries at runtime. Select the best filter mode to optimize query execution.

Concepts

Learn to perform vector search and use gateways and semantic caching in your AI/ML projects.

Search AI Gateways Semantic Caching
AI Redis icon. Vector search guide AI Redis icon. Deploy an enhanced gateway with Redis AI Redis icon. Semantic caching for faster, smarter LLM apps

Ecosystem integrations

Examples

Get started with the following Redis Python notebooks.

RAG

LLM session management

Semantic caching

Agents

Recommendation systems

RATE THIS PAGE
Back to top ↑