Skip to content

Commit ffe7c7e

Browse files
committedJun 10, 2024
feature: Spring AI embedding models integration
1 parent e84be11 commit ffe7c7e

21 files changed

+1364
-110
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ tmp/
2020

2121
### IDEA ###
2222
.idea
23+
.run/*
2324

2425
### Mac ###
2526
**/.DS_Store

‎redis-om-spring/pom.xml

+64-5
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
<djl.starter.version>0.26</djl.starter.version>
8181
<djl.version>0.27.0</djl.version>
8282
<junit-bom.version>5.10.2</junit-bom.version>
83+
<spring-ai.version>1.0.0-M1</spring-ai.version>
8384
</properties>
8485

8586
<dependencyManagement>
@@ -98,6 +99,13 @@
9899
<type>pom</type>
99100
<scope>import</scope>
100101
</dependency>
102+
<dependency>
103+
<groupId>org.springframework.ai</groupId>
104+
<artifactId>spring-ai-bom</artifactId>
105+
<version>${spring-ai.version}</version>
106+
<type>pom</type>
107+
<scope>import</scope>
108+
</dependency>
101109
</dependencies>
102110
</dependencyManagement>
103111

@@ -150,17 +158,69 @@
150158
<version>${sdr.version}</version>
151159
</dependency>
152160
<dependency>
153-
<groupId>org.springframework.boot</groupId>
154-
<artifactId>spring-boot-starter-aop</artifactId>
161+
<groupId>org.springframework</groupId>
162+
<artifactId>spring-aop</artifactId>
163+
</dependency>
164+
<dependency>
165+
<groupId>org.aspectj</groupId>
166+
<artifactId>aspectjweaver</artifactId>
155167
</dependency>
156168
<dependency>
157169
<groupId>org.springframework</groupId>
158170
<artifactId>spring-context-support</artifactId>
159171
</dependency>
160172
<dependency>
161-
<groupId>org.springframework.boot</groupId>
162-
<artifactId>spring-boot-starter-validation</artifactId>
173+
<groupId>org.hibernate.validator</groupId>
174+
<artifactId>hibernate-validator</artifactId>
175+
</dependency>
176+
<!-- Spring AI begin -->
177+
<dependency>
178+
<groupId>org.springframework.ai</groupId>
179+
<artifactId>spring-ai-openai</artifactId>
180+
</dependency>
181+
<dependency>
182+
<groupId>jakarta.websocket</groupId>
183+
<artifactId>jakarta.websocket-api</artifactId>
184+
<version>2.1.1</version>
185+
</dependency>
186+
<dependency>
187+
<groupId>jakarta.websocket</groupId>
188+
<artifactId>jakarta.websocket-client-api</artifactId>
189+
<version>2.1.1</version>
190+
</dependency>
191+
<dependency>
192+
<groupId>org.springframework.ai</groupId>
193+
<artifactId>spring-ai-ollama</artifactId>
194+
</dependency>
195+
<dependency>
196+
<groupId>org.springframework.ai</groupId>
197+
<artifactId>spring-ai-azure-openai</artifactId>
198+
</dependency>
199+
<dependency>
200+
<groupId>org.springframework.ai</groupId>
201+
<artifactId>spring-ai-vertex-ai-palm2</artifactId>
202+
</dependency>
203+
<dependency>
204+
<groupId>org.springframework.ai</groupId>
205+
<artifactId>spring-ai-bedrock</artifactId>
206+
</dependency>
207+
<dependency>
208+
<groupId>org.springframework.ai</groupId>
209+
<artifactId>spring-ai-transformers</artifactId>
210+
</dependency>
211+
<dependency>
212+
<groupId>org.springframework.ai</groupId>
213+
<artifactId>spring-ai-mistral-ai</artifactId>
214+
</dependency>
215+
<dependency>
216+
<groupId>org.springframework.ai</groupId>
217+
<artifactId>spring-ai-minimax</artifactId>
218+
</dependency>
219+
<dependency>
220+
<groupId>org.springframework.ai</groupId>
221+
<artifactId>spring-ai-zhipuai</artifactId>
163222
</dependency>
223+
<!-- Spring AI end -->
164224
<dependency>
165225
<groupId>redis.clients</groupId>
166226
<artifactId>jedis</artifactId>
@@ -269,7 +329,6 @@
269329
<dependency>
270330
<groupId>com.fasterxml.jackson.core</groupId>
271331
<artifactId>jackson-databind</artifactId>
272-
<scope>test</scope>
273332
</dependency>
274333
</dependencies>
275334

0 commit comments

Comments
 (0)