README.md
November 24, 2025 · View on GitHub
Redis AI Java Resources
✨ Java-based code examples, notebooks, and resources for using Redis in AI and ML applications. ✨
There are two types of Java Recipes: Notebooks and Applications. Notebooks are interactive, self-contained examples in Jupyter format that let you explore AI concepts step by step that mix code, explanations, and output in one place. Applications, on the other hand, are full Spring Boot projects meant for building real-world systems. They show how to structure, run, and scale actual AI-powered apps using Redis, embedding models, and Spring AI in a production-like setup.
Notebooks
Notebooks require a Jupyter Notebook environment to run. Check out the Setup Instructions & Implementation Details for more details on how to set up your environment.
| Notebook | Description |
|---|---|
| RAG/spring_ai_redis_rag.ipynb | Demonstrates building a RAG-based beer recommendation chatbot using Spring AI and Redis as the vector store |
| semantic-routing/1_semantic_classification.ipynb | Demonstrates how to perform text classification with vector search (RedisVL) instead of LLMs |
| semantic-routing/2_semantic_tool_calling.ipynb | Demonstrates how to perform tool selection with vector search (RedisVL) instead of LLMs |
| semantic-routing/3_semantic_guardrails.ipynb | Demonstrates how to implement guardrails with vector search (RedisVL) |
| semantic-caching/1_pre_generated_semantic_caching.ipynb | Demonstrates how to perform pre generated semantic caching with RedisVL |
| semantic-caching/2_semantic_caching_with_langcache.ipynb | Demonstrates how to perform pre generated semantic caching with LangCache |
Applications
| Application | Description |
|---|---|
| applications/agent-long-term-memory | Demonstrates how to implement long-term memory for AI agents using Spring AI Advisor abstraction with Redis Vector Search |
| applications/agent-short-term-memory | Demonstrates how to implement short-term memory for AI agents using Spring AI ChatHistory abstraction |
| applications/vector-similarity-search/redis-om-spring | Demonstrates building a vector similarity search application using Spring Boot and Redis OM Spring |
| applications/vector-similarity-search/spring-ai | Demonstrates building a vector similarity search application using Spring Boot and Spring AI |