Skip to content

Commit 79671d4

Browse files
committed
Move rag classes out of spring-ai-core and into new module spring-ai-rag
1 parent 81fecef commit 79671d4

File tree

43 files changed

+124
-32
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+124
-32
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<module>spring-ai-model</module>
3838
<module>spring-ai-test</module>
3939
<module>spring-ai-vector-store</module>
40+
<module>spring-ai-rag</module>
4041
<module>advisors/spring-ai-advisors</module>
4142

4243
<module>auto-configurations/common/spring-ai-autoconfigure-retry</module>

spring-ai-core/src/main/java/org/springframework/ai/rag/retrieval/package-info.java

Lines changed: 0 additions & 28 deletions
This file was deleted.

spring-ai-integration-tests/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@
5454
<scope>test</scope>
5555
</dependency>
5656

57+
<dependency>
58+
<groupId>org.springframework.ai</groupId>
59+
<artifactId>spring-ai-rag</artifactId>
60+
<version>${project.parent.version}</version>
61+
<scope>test</scope>
62+
</dependency>
63+
5764
<dependency>
5865
<groupId>org.springframework.ai</groupId>
5966
<artifactId>spring-ai-starter-model-openai</artifactId>

spring-ai-rag/pom.xml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2023-2024 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
18+
<project xmlns="http://maven.apache.org/POM/4.0.0"
19+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20+
<modelVersion>4.0.0</modelVersion>
21+
<parent>
22+
<groupId>org.springframework.ai</groupId>
23+
<artifactId>spring-ai</artifactId>
24+
<version>1.0.0-SNAPSHOT</version>
25+
</parent>
26+
<artifactId>spring-ai-rag</artifactId>
27+
<packaging>jar</packaging>
28+
<name>Spring AI RAG</name>
29+
<description>Retrieval Augmented Generation (RAG) support for Spring AI</description>
30+
<url>https://github.com/spring-projects/spring-ai</url>
31+
32+
<scm>
33+
<url>https://github.com/spring-projects/spring-ai</url>
34+
<connection>git://github.com/spring-projects/spring-ai.git</connection>
35+
<developerConnection>git@github.com:spring-projects/spring-ai.git</developerConnection>
36+
</scm>
37+
38+
<properties>
39+
<maven.compiler.target>17</maven.compiler.target>
40+
<maven.compiler.source>17</maven.compiler.source>
41+
</properties>
42+
43+
<dependencies>
44+
<dependency>
45+
<groupId>org.springframework.ai</groupId>
46+
<artifactId>spring-ai-core</artifactId>
47+
<version>${project.parent.version}</version>
48+
</dependency>
49+
50+
51+
<dependency>
52+
<groupId>org.springframework.ai</groupId>
53+
<artifactId>spring-ai-vector-store</artifactId>
54+
<version>${project.parent.version}</version>
55+
</dependency>
56+
57+
<!-- Spring Framework -->
58+
<dependency>
59+
<groupId>org.springframework</groupId>
60+
<artifactId>spring-context</artifactId>
61+
</dependency>
62+
63+
<dependency>
64+
<groupId>com.fasterxml.jackson.core</groupId>
65+
<artifactId>jackson-databind</artifactId>
66+
</dependency>
67+
68+
<dependency>
69+
<groupId>io.projectreactor</groupId>
70+
<artifactId>reactor-core</artifactId>
71+
</dependency>
72+
73+
<dependency>
74+
<groupId>org.jetbrains.kotlin</groupId>
75+
<artifactId>kotlin-stdlib</artifactId>
76+
<optional>true</optional>
77+
</dependency>
78+
79+
<dependency>
80+
<groupId>org.jetbrains.kotlin</groupId>
81+
<artifactId>kotlin-reflect</artifactId>
82+
<optional>true</optional>
83+
</dependency>
84+
85+
<!-- test dependencies -->
86+
<dependency>
87+
<groupId>org.springframework.boot</groupId>
88+
<artifactId>spring-boot-starter-test</artifactId>
89+
<scope>test</scope>
90+
</dependency>
91+
92+
<dependency>
93+
<groupId>com.fasterxml.jackson.module</groupId>
94+
<artifactId>jackson-module-kotlin</artifactId>
95+
<scope>test</scope>
96+
</dependency>
97+
</dependencies>
98+
99+
</project>

0 commit comments

Comments
 (0)