README.md

November 24, 2025 · View on GitHub

Redis AI Java Resources

License: MIT Java Spring AI

✨ Java-based code examples, notebooks, and resources for using Redis in AI and ML applications. ✨

Notebooks | Applications | Example 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.

NotebookDescription
RAG/spring_ai_redis_rag.ipynbDemonstrates building a RAG-based beer recommendation chatbot using Spring AI and Redis as the vector store
semantic-routing/1_semantic_classification.ipynbDemonstrates how to perform text classification with vector search (RedisVL) instead of LLMs
semantic-routing/2_semantic_tool_calling.ipynbDemonstrates how to perform tool selection with vector search (RedisVL) instead of LLMs
semantic-routing/3_semantic_guardrails.ipynbDemonstrates how to implement guardrails with vector search (RedisVL)
semantic-caching/1_pre_generated_semantic_caching.ipynbDemonstrates how to perform pre generated semantic caching with RedisVL
semantic-caching/2_semantic_caching_with_langcache.ipynbDemonstrates how to perform pre generated semantic caching with LangCache

Applications

ApplicationDescription
applications/agent-long-term-memoryDemonstrates how to implement long-term memory for AI agents using Spring AI Advisor abstraction with Redis Vector Search
applications/agent-short-term-memoryDemonstrates how to implement short-term memory for AI agents using Spring AI ChatHistory abstraction
applications/vector-similarity-search/redis-om-springDemonstrates building a vector similarity search application using Spring Boot and Redis OM Spring
applications/vector-similarity-search/spring-aiDemonstrates building a vector similarity search application using Spring Boot and Spring AI