|
@@ -1,137 +1,148 @@
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project>
|
|
<project>
|
|
- <modelVersion>4.0.0</modelVersion>
|
|
|
|
- <parent>
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
- <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
- <version>3.3.2</version>
|
|
|
|
- <relativePath/>
|
|
|
|
- </parent>
|
|
|
|
- <groupId>cn.jlsxwkj</groupId>
|
|
|
|
- <artifactId>ragchat</artifactId>
|
|
|
|
- <name>ragchat</name>
|
|
|
|
- <description>rag chat for Spring Boot</description>
|
|
|
|
- <properties>
|
|
|
|
- <java.version>17</java.version>
|
|
|
|
- <spring-ai.version>1.0.0-M1</spring-ai.version>
|
|
|
|
- </properties>
|
|
|
|
- <dependencies>
|
|
|
|
- <!--spring web-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
- <artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
- </dependency>
|
|
|
|
- <!--spring ai-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.springframework.ai</groupId>
|
|
|
|
- <artifactId>spring-ai-ollama-spring-boot-starter</artifactId>
|
|
|
|
- </dependency>
|
|
|
|
- <!--spring pgvector-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.springframework.ai</groupId>
|
|
|
|
- <artifactId>spring-ai-pgvector-store-spring-boot-starter</artifactId>
|
|
|
|
- </dependency>
|
|
|
|
- <!--pdf reader-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.springframework.ai</groupId>
|
|
|
|
- <artifactId>spring-ai-pdf-document-reader</artifactId>
|
|
|
|
- </dependency>
|
|
|
|
- <!--doc reader-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.springframework.ai</groupId>
|
|
|
|
- <artifactId>spring-ai-tika-document-reader</artifactId>
|
|
|
|
- </dependency>
|
|
|
|
- <!--json-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
|
|
- <artifactId>jackson-dataformat-avro</artifactId>
|
|
|
|
- </dependency>
|
|
|
|
- <!--aop-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
- <artifactId>spring-boot-starter-aop</artifactId>
|
|
|
|
- </dependency>
|
|
|
|
- <!--postgresql-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.postgresql</groupId>
|
|
|
|
- <artifactId>postgresql</artifactId>
|
|
|
|
- <scope>runtime</scope>
|
|
|
|
- </dependency>
|
|
|
|
- <!--lombok-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.projectlombok</groupId>
|
|
|
|
- <artifactId>lombok</artifactId>
|
|
|
|
- </dependency>
|
|
|
|
- <!--configuration-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
- <artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
|
- <optional>true</optional>
|
|
|
|
- </dependency>
|
|
|
|
- <!--鉴权-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>cn.dev33</groupId>
|
|
|
|
- <artifactId>sa-token-spring-boot3-starter</artifactId>
|
|
|
|
- <version>1.38.0</version>
|
|
|
|
- </dependency>
|
|
|
|
- <!--解决 javax.annotation.meta.When.MAYBE 警告 (莫名其妙的警告)-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.google.code.findbugs</groupId>
|
|
|
|
- <artifactId>annotations</artifactId>
|
|
|
|
- <version>3.0.1</version>
|
|
|
|
- </dependency>
|
|
|
|
- <!--mybatis-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
- <artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
- <version>3.0.3</version>
|
|
|
|
- </dependency>
|
|
|
|
- <!--spring doc-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>com.github.xiaoymin</groupId>
|
|
|
|
- <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
|
|
|
- <version>4.4.0</version>
|
|
|
|
- </dependency>
|
|
|
|
- <!--hutool-->
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>cn.hutool</groupId>
|
|
|
|
- <artifactId>hutool-all</artifactId>
|
|
|
|
- <version>5.8.16</version>
|
|
|
|
- </dependency>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.apache.commons</groupId>
|
|
|
|
- <artifactId>commons-compress</artifactId>
|
|
|
|
- <version>1.26.2</version>
|
|
|
|
- </dependency>
|
|
|
|
- </dependencies>
|
|
|
|
- <dependencyManagement>
|
|
|
|
- <dependencies>
|
|
|
|
- <dependency>
|
|
|
|
- <groupId>org.springframework.ai</groupId>
|
|
|
|
- <artifactId>spring-ai-bom</artifactId>
|
|
|
|
- <version>${spring-ai.version}</version>
|
|
|
|
- <type>pom</type>
|
|
|
|
- <scope>import</scope>
|
|
|
|
- </dependency>
|
|
|
|
- </dependencies>
|
|
|
|
- </dependencyManagement>
|
|
|
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
|
+ <parent>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
+ <version>3.3.2</version>
|
|
|
|
+ <relativePath/>
|
|
|
|
+ </parent>
|
|
|
|
+ <groupId>cn.jlsxwkj</groupId>
|
|
|
|
+ <artifactId>ragchat</artifactId>
|
|
|
|
+ <name>ragchat</name>
|
|
|
|
+ <description>rag chat for Spring Boot</description>
|
|
|
|
+ <properties>
|
|
|
|
+ <java.version>17</java.version>
|
|
|
|
+ <spring-ai.version>1.0.0-M1</spring-ai.version>
|
|
|
|
+ </properties>
|
|
|
|
+ <dependencies>
|
|
|
|
+ <!--spring web-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--spring ai-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.ai</groupId>
|
|
|
|
+ <artifactId>spring-ai-ollama-spring-boot-starter</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--spring pgvector-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.ai</groupId>
|
|
|
|
+ <artifactId>spring-ai-pgvector-store-spring-boot-starter</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--pdf reader-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.ai</groupId>
|
|
|
|
+ <artifactId>spring-ai-pdf-document-reader</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--doc reader-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.ai</groupId>
|
|
|
|
+ <artifactId>spring-ai-tika-document-reader</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--json-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
|
|
+ <artifactId>jackson-dataformat-avro</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--aop-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-aop</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--postgresql-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.postgresql</groupId>
|
|
|
|
+ <artifactId>postgresql</artifactId>
|
|
|
|
+ <scope>runtime</scope>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--lombok-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--configuration-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
|
+ <optional>true</optional>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--鉴权-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>cn.dev33</groupId>
|
|
|
|
+ <artifactId>sa-token-spring-boot3-starter</artifactId>
|
|
|
|
+ <version>1.38.0</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--解决 javax.annotation.meta.When.MAYBE 警告 (莫名其妙的警告)-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.google.code.findbugs</groupId>
|
|
|
|
+ <artifactId>annotations</artifactId>
|
|
|
|
+ <version>3.0.1</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--mybatis-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
+ <artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
+ <version>3.0.3</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--spring doc-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.github.xiaoymin</groupId>
|
|
|
|
+ <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
|
|
|
+ <version>4.4.0</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <!--hutool-->
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>cn.hutool</groupId>
|
|
|
|
+ <artifactId>hutool-all</artifactId>
|
|
|
|
+ <version>5.8.16</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.apache.commons</groupId>
|
|
|
|
+ <artifactId>commons-compress</artifactId>
|
|
|
|
+ <version>1.26.2</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ </dependencies>
|
|
|
|
+ <dependencyManagement>
|
|
|
|
+ <dependencies>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.springframework.ai</groupId>
|
|
|
|
+ <artifactId>spring-ai-bom</artifactId>
|
|
|
|
+ <version>${spring-ai.version}</version>
|
|
|
|
+ <type>pom</type>
|
|
|
|
+ <scope>import</scope>
|
|
|
|
+ </dependency>
|
|
|
|
+ </dependencies>
|
|
|
|
+ </dependencyManagement>
|
|
|
|
|
|
- <build>
|
|
|
|
- <plugins>
|
|
|
|
- <plugin>
|
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
- </plugin>
|
|
|
|
- </plugins>
|
|
|
|
- </build>
|
|
|
|
- <repositories>
|
|
|
|
- <repository>
|
|
|
|
- <id>spring-milestones</id>
|
|
|
|
- <name>Spring Milestones</name>
|
|
|
|
- <url>https://repo.spring.io/milestone</url>
|
|
|
|
- <snapshots>
|
|
|
|
- <enabled>false</enabled>
|
|
|
|
- </snapshots>
|
|
|
|
- </repository>
|
|
|
|
- </repositories>
|
|
|
|
|
|
+ <build>
|
|
|
|
+ <plugins>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
+ <configuration>
|
|
|
|
+ <layout>ZIP</layout>
|
|
|
|
+ <includes>
|
|
|
|
+ <include>
|
|
|
|
+ <groupId>nothing</groupId>
|
|
|
|
+ <artifactId>nothing</artifactId>
|
|
|
|
+ </include>
|
|
|
|
+ </includes>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+ </plugins>
|
|
|
|
+ <!--打包后的文件名只带项目名,不带版本号-->
|
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
|
+ </build>
|
|
|
|
+ <repositories>
|
|
|
|
+ <repository>
|
|
|
|
+ <id>spring-milestones</id>
|
|
|
|
+ <name>Spring Milestones</name>
|
|
|
|
+ <url>https://repo.spring.io/milestone</url>
|
|
|
|
+ <snapshots>
|
|
|
|
+ <enabled>false</enabled>
|
|
|
|
+ </snapshots>
|
|
|
|
+ </repository>
|
|
|
|
+ </repositories>
|
|
</project>
|
|
</project>
|