You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
153 lines
5.7 KiB
153 lines
5.7 KiB
2 months ago
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
|
<modelVersion>4.0.0</modelVersion>
|
||
|
<parent>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||
|
<version>3.2.6</version>
|
||
|
<relativePath/> <!-- lookup parent from repository -->
|
||
|
</parent>
|
||
|
<groupId>cn.ai</groupId>
|
||
|
<artifactId>Spring-Ai-Gu</artifactId>
|
||
|
<version>0.0.1-SNAPSHOT</version>
|
||
|
<name>Spring-Ai-Gu</name>
|
||
|
<description>Spring-Ai-Gu</description>
|
||
|
|
||
|
|
||
|
<properties>
|
||
|
<maven.compiler.source>17</maven.compiler.source>
|
||
|
<maven.compiler.target>17</maven.compiler.target>
|
||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
|
<spring-boot.version>3.2.6</spring-boot.version>
|
||
|
<knife4j.version>4.3.0</knife4j.version>
|
||
|
<langchain4j.version>1.0.0-beta3</langchain4j.version>
|
||
|
<mybatis-plus.version>3.5.11</mybatis-plus.version>
|
||
|
</properties>
|
||
|
|
||
|
<dependencies>
|
||
|
<!-- web应用程序核心依赖 -->
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||
|
</dependency>
|
||
|
<!-- 编写和运行测试用例 -->
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-test</artifactId>
|
||
|
<scope>test</scope>
|
||
|
</dependency>
|
||
|
<!-- 前后端分离中的后端接口测试工具 -->
|
||
|
<dependency>
|
||
|
<groupId>com.github.xiaoymin</groupId>
|
||
|
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
||
|
<version>${knife4j.version}</version>
|
||
|
</dependency>
|
||
|
<!-- 基于open-ai的langchain4j接口:ChatGPT、deepseek都是open-ai标准下的大模型 -->
|
||
|
<!-- <dependency>-->
|
||
|
<!-- <groupId>dev.langchain4j</groupId>-->
|
||
|
<!-- <artifactId>langchain4j-open-ai</artifactId>-->
|
||
|
<!-- </dependency>-->
|
||
|
<!-- spring整合openai-->
|
||
|
<!-- <dependency>-->
|
||
|
<!-- <groupId>dev.langchain4j</groupId>-->
|
||
|
<!-- <artifactId>langchain4j-open-ai-spring-boot-starter</artifactId>-->
|
||
|
<!-- </dependency>-->
|
||
|
|
||
|
<!-- 接入阿里云百炼平台 -->
|
||
|
<dependency>
|
||
|
<groupId>dev.langchain4j</groupId>
|
||
|
<artifactId>langchain4j-community-dashscope-spring-boot-starter</artifactId>
|
||
|
</dependency>
|
||
|
|
||
|
<!--langchain4j高级功能-->
|
||
|
<dependency>
|
||
|
<groupId>dev.langchain4j</groupId>
|
||
|
<artifactId>langchain4j-spring-boot-starter</artifactId>
|
||
|
</dependency>
|
||
|
<!-- Spring Boot Starter Data mongodb -->
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-data-mongodb</artifactId>
|
||
|
</dependency>
|
||
|
|
||
|
<!-- Mysql Connector -->
|
||
|
<dependency>
|
||
|
<groupId>com.mysql</groupId>
|
||
|
<artifactId>mysql-connector-j</artifactId>
|
||
|
</dependency>
|
||
|
<!--mybatis-plus 持久层-->
|
||
|
<dependency>
|
||
|
<groupId>com.baomidou</groupId>
|
||
|
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
||
|
<version>${mybatis-plus.version}</version>
|
||
|
</dependency>
|
||
|
|
||
|
<!--解析pdf文档-->
|
||
|
<dependency>
|
||
|
<groupId>dev.langchain4j</groupId>
|
||
|
<artifactId>langchain4j-document-parser-apache-pdfbox</artifactId>
|
||
|
</dependency>
|
||
|
|
||
|
<!--简单的rag实现-->
|
||
|
<dependency>
|
||
|
<groupId>dev.langchain4j</groupId>
|
||
|
<artifactId>langchain4j-easy-rag</artifactId>
|
||
|
</dependency>
|
||
|
<!--向量存储 -->
|
||
|
<dependency>
|
||
|
<groupId>dev.langchain4j</groupId>
|
||
|
<artifactId>langchain4j-pinecone</artifactId>
|
||
|
</dependency>
|
||
|
|
||
|
<!--流式输出-->
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-starter-webflux</artifactId>
|
||
|
</dependency>
|
||
|
<dependency>
|
||
|
<groupId>dev.langchain4j</groupId>
|
||
|
<artifactId>langchain4j-reactor</artifactId>
|
||
|
</dependency>
|
||
|
</dependencies>
|
||
|
|
||
|
<dependencyManagement>
|
||
|
<dependencies>
|
||
|
<!--引入SpringBoot依赖管理清单-->
|
||
|
<dependency>
|
||
|
<groupId>org.springframework.boot</groupId>
|
||
|
<artifactId>spring-boot-dependencies</artifactId>
|
||
|
<version>${spring-boot.version}</version>
|
||
|
<type>pom</type>
|
||
|
<scope>import</scope>
|
||
|
</dependency>
|
||
|
<!--引入langchain4j依赖管理清单-->
|
||
|
<dependency>
|
||
|
<groupId>dev.langchain4j</groupId>
|
||
|
<artifactId>langchain4j-bom</artifactId>
|
||
|
<version>${langchain4j.version}</version>
|
||
|
<type>pom</type>
|
||
|
<scope>import</scope>
|
||
|
</dependency>
|
||
|
<!--引入百炼依赖管理清单-->
|
||
|
<dependency>
|
||
|
<groupId>dev.langchain4j</groupId>
|
||
|
<artifactId>langchain4j-community-bom</artifactId>
|
||
|
<version>${langchain4j.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>
|
||
|
|
||
|
</project>
|