Title | alwaysopen | categories | description | linkTitle | hideListLinks | weight | ||||
---|---|---|---|---|---|---|---|---|---|---|
Redis for AI documentation |
false |
|
An overview of Redis for AI documentation |
Redis for AI |
true |
40 |
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]({{< relref "/develop/data-types/hashes" >}}) or [JSON]({{< relref "/develop/data-types/json" >}}) documents for [indexing]({{< relref "/develop/interact/search-and-query/indexing" >}}) and [querying]({{< relref "/develop/interact/search-and-query/query" >}}). Use the [vector sets]({{< relref "/develop/data-types/vector-sets" >}}) preview data type to add items to a set, and retrieve a subset of items that are the most similar to a specified vector.
This page organized into a few sections depending on what you’re trying to do:
- How to's - The comprehensive reference section for every feature, API, and setting. It’s your source for detailed, technical information to support any level of development.
- Concepts - Explanations of foundational ideas and core principles to help you understand the reason behind the product’s features and design.
- Quickstarts - Short, focused guides to get you started with key features or workflows in minutes.
- Tutorials - In-depth walkthroughs that dive deeper into specific use cases or processes. These step-by-step guides help you master essential tasks and workflows.
- Integrations - Guides and resources to help you connect and use the product with popular tools, frameworks, or platforms.
- Benchmarks - Performance comparisons and metrics to demonstrate how the product performs under various scenarios. This helps you understand its efficiency and capabilities.
- Best practices - Recommendations and guidelines for maximizing effectiveness and avoiding common pitfalls. This section equips you to use the product effectively and efficiently.
- [Create a vector index]({{< relref "develop/ai/vector-fields" >}}): Redis maintains a secondary index over your data with a defined schema (including vector fields and metadata). Redis supports [
FLAT
]({{< relref "develop/ai/vector-fields#flat-index" >}}) and [HNSW
]({{< relref "develop/ai/vector-fields#hnsw-index" >}}) vector index types.
- [redis-py (Python)]({{< relref "/develop/clients/redis-py/vecsearch" >}})
- [NRedisStack (C#/.NET)]({{< relref "/develop/clients/dotnet/vecsearch" >}})
- [node-redis (JavaScript)]({{< relref "/develop/clients/nodejs/vecsearch" >}})
- [Jedis (Java)]({{< relref "/develop/clients/jedis/vecsearch" >}})
- [go-redis (Go)]({{< relref "/develop/clients/go/vecsearch" >}})
Learn to perform vector search and use gateways and semantic caching in your AI/ML projects.
Search | LLM memory | Semantic caching | Semantic routing | AI Gateways |
---|---|---|---|---|
{{ |
{{ |
{{ |
{{ |
{{ |
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 you AI agent. Get started with the following Redis Python notebooks.
Vector search retrieves results based on the similarity of high-dimensional numerical embeddings, while hybrid search combines this with traditional keyword or metadata-based filtering for more comprehensive results.
- Implementing hybrid search with Redis
- Vector search with Redis Python client
- Vector search with Redis Vector Library
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.
- RAG from scratch with the Redis Vector Library
- RAG using Redis and LangChain
- RAG using Redis and LlamaIndex
- Advanced RAG with redisvl
- RAG using Redis and Nvidia
- Utilize RAGAS framework to evaluate RAG performance
- Vector search with Azure
- RAG with Spring AI
- RAG with Vertex AI
- Notebook for additional tips and techniques to improve RAG quality
AI agents can act autonomously to plan and execute tasks for the user.
- Notebook to get started with LangGraph and agents
- Build a collaborative movie recommendation system using Redis for data storage, CrewAI for agent-based task execution, and LangGraph for workflow management.
LLMs are stateless. To maintain context within a conversation chat sessions must be stored and resent to the LLM. Redis manages the storage and retrieval of chat sessions to maintain context and conversational relevance.
An estimated 31% of LLM queries are potentially redundant. Redis enables semantic caching to help cut down on LLM costs quickly.
- Build a semantic cache using the Doc2Cache framework and Llama3.1
- Build a semantic cache with Redis and Google Gemini
Build a facial recognition system using the Facenet embedding model and RedisVL.
Need a deeper-dive through different use cases and topics?
- Agentic RAG - A tutorial focused on agentic RAG with LlamaIndex and Amazon Bedrock
- RAG on Vertex AI - A RAG tutorial featuring Redis with Vertex AI
- RAG workbench - A development playground for exploring RAG techniques with Redis
- Recommendation systems w/ NVIDIA Merlin & Redis - Three examples, each escalating in complexity, showcasing the process of building a realtime recsys with NVIDIA and Redis
- Redis product search - Build a real-time product search engine using features like full-text search, vector similarity, and real-time data updates
- [Amazon Bedrock setup guide]({{< relref "/integrate/amazon-bedrock/set-up-redis" >}})
- LangChain Redis Package: Smarter AI apps with advanced vector storage and faster caching
- LlamaIndex integration for Redis as a vector store
- Redis Cloud available on Vercel
- [Create a Redis Cloud database with the Vercel integration]({{< relref "/operate/rc/cloud-integrations/vercel" >}})
- Building a RAG application with Redis and Spring AI
- Deploy GenAI apps faster with Redis and NVIDIA NIM
- Building LLM Applications with Kernel Memory and Redis
- DocArray integration of Redis as a vector database by Jina AI
See how we stack up against the competition.
See how leaders in the industry are building their RAG apps.