[フレーム]
Docs Pricing
Login Book a meeting Try Redis

Redis for AI and search

An overview of Redis for AI and search 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.

AI Redis icon
Redis vector Python client library documentation
AI Redis icon
Use Redis Query Engine to search data
AI Redis icon
Use LangCache to store LLM responses

Overview

This page is organized into a few sections depending on what you're trying to do:

How to's

  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.

Learn how to index and query vector embeddings

Concepts

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

AI Redis icon
Vector search guide
LLM memory icon
Store memory for LLMs
AI Redis icon
Semantic caching for faster, smarter LLM apps
Semantic routing icon
Semantic routing chooses the best tool
AI Redis icon
Deploy an enhanced gateway with Redis

Quickstarts

Quickstarts or recipes are useful when you are trying to build specific functionality. For example, you might want to do RAG with LangChain or set up LLM memory for your AI agent.

Get started with these foundational guides:

RAG

Retrieval Augmented Generation (aka RAG) is a technique to enhance the ability of an LLM to respond to user queries. The retrieval part of RAG is supported by a vector database, which can return semantically relevant results to a user's query, serving as contextual information to augment the generative capabilities of an LLM.

Explore our AI notebooks collection for comprehensive RAG examples including:

Additional resources:

Agents

AI agents can act autonomously to plan and execute tasks for the user.

Tutorials

Need a deeper-dive through different use cases and topics?

RAG

Ecosystem integrations

Explore our comprehensive ecosystem integrations page to discover how Redis works with popular AI frameworks, platforms, and tools including:

Video tutorials

Watch our AI video collection featuring practical tutorials and demonstrations on:

Benchmarks

See how we stack up against the competition.

Best practices

See how leaders in the industry are building their RAG apps.

RATE THIS PAGE
Back to top ↑

On this page

AltStyle によって変換されたページ (->オリジナル) /