You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Open your browser and navigate to [http://localhost:8888](http://localhost:8888)
61
-
- The token is usually shown in the docker-compose logs. You can view them with:
62
-
63
-
```bash
64
-
docker-compose logs jupyter
65
-
```
66
-
67
-
4. Access RedisInsight:
68
-
- Open your browser and navigate to [http://localhost:8001](http://localhost:8001)
69
-
- Connect to Redis using the following details:
70
-
- Host: redis-java
71
-
- Port: 6379
72
-
- No password (unless configured)
73
-
74
-
5. When finished, stop the containers:
75
-
76
-
```bash
77
-
docker-compose down
78
-
```
79
-
80
23
## Notebooks
81
24
82
-
| Notebook | Description |
83
-
| --- | --- |
84
-
| [RAG/spring_ai_redis_rag.ipynb](./RAG/spring_ai_redis_rag.ipynb) | Demonstrates building a RAG-based beer recommendation chatbot using Spring AI and Redis as the vector store |
│ └── pom.xml # Maven project file with dependencies
99
-
└── resources/ # Data files for notebooks
100
-
└── beers.json.gz # Compressed beer dataset
101
-
```
102
-
103
-
## Implementation Details
104
-
105
-
### Java Jupyter Kernel
106
-
107
-
The project uses [JJava](https://github.com/dflib/jjava), a Jupyter kernel forJava based on JShell. This allows for interactive Java developmentin Jupyter notebooks.
|[notebooks/RAG/spring_ai_redis_rag.ipynb](./notebooks/RAG/spring_ai_redis_rag.ipynb)| Demonstrates building a RAG-ba sed beer recommendation chatbot using Spring AI and Redis as the vector store |
|[applications/vector-similarity-search/spring_boot](./applications/vector-similarity-search/spring_boot_redis_om_spring.md)| Demonstrates building a vector similarity search application using Spring Boot and Redis OM Spring |
116
34
117
-
The Spring AI notebooks showcase how to use Spring's AI capabilities with Redis:
118
35
119
-
- **Spring AI**: Framework for building AI-powered applications
120
-
- **Redis Vector Store**: Used for storing and querying vector embeddings
121
-
- **Transformer Models**: For generating embeddings locally
122
-
- **RAG Pattern**: Demonstrates the Retrieval Augmented Generation pattern
123
-
124
-
### Docker Configuration
125
-
126
-
The Docker setup includes:
127
-
128
-
1. **Jupyter Container**:
129
-
- Based on minimal Jupyter notebook image
130
-
- Adds Java 21, Maven, and the JJava kernel
131
-
- Includes Python environment with PyTorch and other ML libraries
132
-
133
-
2. **Redis Container**:
134
-
- Uses Redis Stack image with Vector Search capabilities
135
-
- Persists data using Docker volumes
136
-
- Exposes Redis on port 6379 and RedisInsight on port 8001
137
-
138
-
## Example Applications
36
+
## Example Notebooks & Applications
139
37
140
38
### Beer Recommendation Chatbot
141
39
@@ -146,3 +44,11 @@ The `spring-ai-rag.ipynb` notebook demonstrates:
146
44
- Connecting to OpenAI for LLM capabilities
147
45
- Building a RAG pipeline to answer beer-related queries
148
46
- Semantic search over beer properties and descriptions
47
+
48
+
### Vector Similarity Search with Redis OM Spring and Spring Boot
49
+
50
+
The `spring_boot_redis_om_spring` directory contains a Spring Boot application that demonstrates how to use Redis OM Spring for vector similarity search. The application allows you to:
51
+
- Add movies to the Redis database
52
+
- Search for movies based on semantic similarity on the synopsis of the movie
53
+
- Perform hybrid search by adding filters to genre, cast, and year
0 commit comments