Files
weiyu/modules/ai/pom.xml

356 lines
12 KiB
XML
Raw Normal View History

2024-03-29 16:26:33 +08:00
<?xml version="1.0" encoding="UTF-8"?>
2024-04-07 10:54:47 +08:00
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2024-03-29 16:26:33 +08:00
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>com.bytedesk</groupId>
2024-08-06 08:18:01 +08:00
<artifactId>modules</artifactId>
<version>${revision}</version>
2024-03-29 16:26:33 +08:00
</parent>
2024-07-09 11:10:23 +08:00
2024-08-06 08:18:01 +08:00
<groupId>com.bytedesk</groupId>
2024-05-21 09:02:02 +08:00
<artifactId>bytedesk-module-ai</artifactId>
2024-08-06 08:18:01 +08:00
<version>${revision}</version>
2024-07-05 17:07:22 +08:00
<name>bytedesk-module-ai</name>
2025-03-03 22:35:18 +08:00
<description>https://www.bytedesk.com</description>
2024-03-29 16:26:33 +08:00
<properties>
2025-04-18 14:21:45 +08:00
<ollama4j.version>1.0.100</ollama4j.version>
2025-04-21 18:26:49 +08:00
<!-- <spring-ai-alibaba.version>1.0.0-M6.1</spring-ai-alibaba.version> -->
<!-- <spring-ai.version>1.0.0-SNAPSHOT</spring-ai.version> -->
<jsonp.version>1.18.3</jsonp.version>
2025-04-19 13:22:20 +08:00
<!-- <selenium.version>4.30.0</selenium.version> -->
2025-04-23 14:19:50 +08:00
<ai.djl.version>0.32.0</ai.djl.version>
2024-03-29 16:26:33 +08:00
</properties>
<dependencies>
2025-04-18 11:50:14 +08:00
<!-- https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-retry -->
2025-04-18 11:04:51 +08:00
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-retry</artifactId>
<version>${spring-ai.version}</version>
2025-05-08 11:51:39 +08:00
<!-- 排除 io.swagger.core.v3:swagger-annotations 依赖 -->
<exclusions>
<exclusion>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
</exclusion>
</exclusions>
2025-04-18 11:04:51 +08:00
</dependency>
2025-04-23 14:19:50 +08:00
2025-04-21 15:21:16 +08:00
<!-- rag -->
<!-- https://docs.spring.io/spring-ai/reference/api/retrieval-augmented-generation.html -->
2025-04-19 00:28:19 +08:00
<!--
2025-04-21 15:21:16 +08:00
https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-advisors-vector-store -->
2024-08-06 08:18:01 +08:00
<dependency>
2024-03-29 16:26:33 +08:00
<groupId>org.springframework.ai</groupId>
2025-04-21 15:21:16 +08:00
<artifactId>spring-ai-advisors-vector-store</artifactId>
<version>${spring-ai.version}</version>
2025-05-23 21:52:26 +08:00
<!-- 排除 io.swagger.core.v3:swagger-annotations 依赖 -->
<exclusions>
<exclusion>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
</exclusion>
</exclusions>
2025-04-21 15:21:16 +08:00
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-rag -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-rag</artifactId>
2025-04-17 14:01:02 +08:00
<version>${spring-ai.version}</version>
2025-02-13 13:48:40 +08:00
</dependency>
2025-04-17 09:43:44 +08:00
<!-- llm -->
2025-02-13 13:48:40 +08:00
<!-- https://docs.spring.io/spring-ai/reference/api/chat/deepseek-chat.html -->
2025-04-23 14:19:50 +08:00
<!--
https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-starter-model-openai -->
2025-02-13 13:48:40 +08:00
<dependency>
<groupId>org.springframework.ai</groupId>
2025-04-21 18:26:49 +08:00
<artifactId>spring-ai-starter-model-openai</artifactId>
<version>${spring-ai.version}</version>
2024-08-06 08:18:01 +08:00
</dependency>
2025-04-23 14:19:50 +08:00
<!--
https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-starter-model-ollama -->
2024-06-12 16:32:58 +08:00
<dependency>
<groupId>org.springframework.ai</groupId>
2025-04-21 18:26:49 +08:00
<artifactId>spring-ai-starter-model-ollama</artifactId>
<version>${spring-ai.version}</version>
2025-04-23 14:19:50 +08:00
</dependency>
<!--
https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-starter-model-zhipuai -->
2024-08-28 09:32:44 +08:00
<dependency>
<groupId>org.springframework.ai</groupId>
2025-04-21 18:26:49 +08:00
<artifactId>spring-ai-starter-model-zhipuai</artifactId>
<version>${spring-ai.version}</version>
2024-08-28 09:32:44 +08:00
</dependency>
2025-05-14 14:04:02 +08:00
<!-- vector store -->
<!-- https://docs.spring.io/spring-ai/reference/api/vectordbs/elasticsearch.html -->
<!--
https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-starter-vector-store-elasticsearch -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-vector-store-elasticsearch</artifactId>
<version>${spring-ai.version}</version>
</dependency>
2025-02-21 11:06:06 +08:00
<!-- mcp -->
2025-06-10 10:36:49 +08:00
<!-- https://modelcontextprotocol.io/sdk/java/mcp-overview -->
<!-- https://docs.spring.io/spring-ai/reference/api/mcp/mcp-client-boot-starter-docs.html -->
<!-- https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-starter-mcp-client -->
2025-05-23 09:06:25 +08:00
<dependency>
2025-02-21 11:06:06 +08:00
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-mcp-client</artifactId>
2025-05-23 09:06:25 +08:00
<version>${spring-ai.version}</version>
</dependency>
2025-06-10 10:36:49 +08:00
<!-- 生产环境spring ai 官方推荐使用 webflux 版本 client
2025-06-20 10:01:01 +08:00
For production deployment, we recommend using the WebFlux-based SSE connection with the
spring-ai-starter-mcp-client-webflux-->
<!--
https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-starter-mcp-client-webflux -->
2025-06-10 10:36:49 +08:00
<!-- <dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-mcp-client-webflux</artifactId>
<version>${spring-ai.version}</version>
</dependency> -->
<!-- https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-starter-mcp-server -->
2025-05-23 09:06:25 +08:00
<dependency>
2025-02-21 11:06:06 +08:00
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-mcp-server</artifactId>
2025-05-23 09:06:25 +08:00
<version>${spring-ai.version}</version>
</dependency>
2025-02-21 11:06:06 +08:00
2025-06-20 10:01:01 +08:00
<!-- https://github.com/alibaba/spring-ai-alibaba -->
<!-- https://mvnrepository.com/artifact/com.alibaba.cloud.ai/spring-ai-alibaba-starter-dashscope -->
<!-- <dependency>
<groupId>com.alibaba.cloud.ai</groupId>
<artifactId>spring-ai-alibaba-starter-dashscope</artifactId>
<version>${spring-ai-alibaba.version}</version>
</dependency> -->
2024-03-29 16:26:33 +08:00
<!-- ///////////////////////////////////////////////////////////////////////////// -->
2024-04-07 10:54:47 +08:00
2024-03-29 16:26:33 +08:00
<dependency>
<groupId>com.bytedesk</groupId>
2024-05-21 09:02:02 +08:00
<artifactId>bytedesk-module-core</artifactId>
2024-07-09 12:38:12 +08:00
<version>${revision}</version>
2024-03-29 16:26:33 +08:00
<scope>provided</scope>
</dependency>
2024-08-06 08:18:01 +08:00
<dependency>
<groupId>com.bytedesk</groupId>
<artifactId>bytedesk-module-kbase</artifactId>
<version>${revision}</version>
<scope>provided</scope>
</dependency>
2024-06-12 16:32:58 +08:00
<!-- ///////////////////////////////////////////////////////////////////////////// -->
2025-04-23 14:19:50 +08:00
<!-- 开始:运行 Embedding 模型依赖 -->
<!-- https://github.com/deepjavalibrary/djl-demo -->
<!-- https://docs.djl.ai/master/docs/quick_start.html -->
2025-04-23 14:25:31 +08:00
<!-- <dependency>
2025-04-23 14:19:50 +08:00
<groupId>ai.djl</groupId>
<artifactId>api</artifactId>
<version>${ai.djl.version}</version>
</dependency>
<dependency>
<groupId>ai.djl.huggingface</groupId>
<artifactId>tokenizers</artifactId>
<version>${ai.djl.version}</version>
</dependency>
<dependency>
<groupId>ai.djl</groupId>
<artifactId>model-zoo</artifactId>
<version>${ai.djl.version}</version>
</dependency>
<dependency>
<groupId>ai.djl.pytorch</groupId>
<artifactId>pytorch-engine</artifactId>
<version>${ai.djl.version}</version>
</dependency>
<dependency>
<groupId>ai.djl.onnxruntime</groupId>
<artifactId>onnxruntime-engine</artifactId>
<version>${ai.djl.version}</version>
2025-04-23 14:25:31 +08:00
</dependency> -->
2025-04-23 14:19:50 +08:00
<!-- 结束:运行 Embedding 模型依赖 -->
2025-02-10 20:07:16 +08:00
<!-- https://java2ai.com/docs/1.0.0-M5.1/overview/?spm=5176.29160081.0.0.2856aa5cNBNg4X -->
2025-02-10 14:17:28 +08:00
<!-- https://github.com/alibaba/spring-ai-alibaba/blob/main/README-zh.md -->
<!-- https://mvnrepository.com/artifact/com.alibaba.cloud.ai/spring-ai-alibaba-starter -->
2025-04-21 18:26:49 +08:00
<!-- <dependency>
2025-02-10 14:17:28 +08:00
<groupId>com.alibaba.cloud.ai</groupId>
<artifactId>spring-ai-alibaba-starter</artifactId>
<version>${spring-ai-alibaba.version}</version>
2025-04-17 14:01:02 +08:00
<exclusions>
<exclusion>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
</exclusion>
</exclusions>
2025-04-21 18:26:49 +08:00
</dependency> -->
2025-02-10 14:17:28 +08:00
2024-06-12 16:32:58 +08:00
<!-- https://open.bigmodel.cn/dev/api#sdk_install -->
<!-- https://github.com/MetaGLM/zhipuai-sdk-java-v4 -->
2025-04-17 09:43:44 +08:00
<!--
https://central.sonatype.com/artifact/cn.bigmodel.openapi/oapi-java-sdk/release-V4-2.3.1 -->
2025-04-04 11:07:30 +08:00
<!-- <dependency>
2024-06-12 16:32:58 +08:00
<groupId>cn.bigmodel.openapi</groupId>
<artifactId>oapi-java-sdk</artifactId>
2025-02-19 10:13:30 +08:00
<version>${zhipuai.version}</version>
2025-04-04 11:07:30 +08:00
</dependency> -->
2024-08-06 08:18:01 +08:00
2024-10-07 07:29:38 +08:00
<!-- https://ollama4j.github.io/ollama4j/intro -->
<!-- https://central.sonatype.com/artifact/io.github.ollama4j/ollama4j/overview -->
2024-11-18 13:17:15 +08:00
<dependency>
2024-10-07 07:29:38 +08:00
<groupId>io.github.ollama4j</groupId>
<artifactId>ollama4j</artifactId>
2024-11-18 13:17:15 +08:00
<version>${ollama4j.version}</version>
</dependency>
2024-10-07 07:29:38 +08:00
2025-04-21 18:26:49 +08:00
<!-- 抓取网页时使用 -->
<!-- https://jsoup.org/download -->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>${jsonp.version}</version>
</dependency>
2025-03-25 09:43:17 +08:00
<!-- Open Manus -->
2025-03-25 09:10:20 +08:00
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
2025-04-17 09:43:44 +08:00
<!--
https://github.com/SeleniumHQ/seleniumhq.github.io/blob/trunk/examples/java/src/test/java/dev/selenium/actions_api/ActionsTest.java -->
2025-04-19 13:22:20 +08:00
<!-- <dependency>
2025-03-25 10:16:06 +08:00
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-chrome-driver</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-api</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-remote-driver</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-manager</artifactId>
<version>${selenium.version}</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-http</artifactId>
<version>${selenium.version}</version>
2025-04-19 13:22:20 +08:00
</dependency> -->
2025-03-25 09:10:20 +08:00
<!-- 添加Chrome 134版本对应的DevTools支持 -->
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-devtools-v134 -->
2025-04-19 13:22:20 +08:00
<!-- <dependency>
2025-03-25 10:16:06 +08:00
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-devtools-v134</artifactId>
<version>${selenium.version}</version>
2025-04-19 13:22:20 +08:00
</dependency> -->
2025-03-25 09:10:20 +08:00
2025-04-23 14:19:50 +08:00
2024-06-12 16:32:58 +08:00
<!-- ///////////////////////////////////////////////////////////////////////////// -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- 添加Spring AI Chat Observation依赖 -->
2025-04-23 11:10:14 +08:00
<!-- <dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-autoconfigure-model-chat-observation</artifactId>
<version>${spring-ai.version}</version>
2025-04-23 11:10:14 +08:00
</dependency> -->
<!-- 添加Micrometer依赖 -->
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-observation</artifactId>
</dependency>
2024-03-29 16:26:33 +08:00
</dependencies>
2024-08-06 08:18:01 +08:00
2025-04-17 14:01:02 +08:00
<!-- https://docs.spring.io/spring-ai/reference/getting-started.html -->
2024-06-12 16:32:58 +08:00
<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>
2025-06-20 10:01:01 +08:00
<!-- https://github.com/alibaba/spring-ai-alibaba -->
<dependency>
<groupId>com.alibaba.cloud.ai</groupId>
<artifactId>spring-ai-alibaba-bom</artifactId>
<version>${spring-ai-alibaba.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
2024-06-12 16:32:58 +08:00
</dependencies>
</dependencyManagement>
2024-10-07 07:29:38 +08:00
2024-03-29 16:26:33 +08:00
<build>
<plugins>
<!-- <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin> -->
</plugins>
</build>
<repositories>
2025-04-17 14:01:02 +08:00
<!-- https://java2ai.com/docs/dev/get-started/ -->
2025-04-18 11:04:51 +08:00
<!-- <repository>
2024-03-29 16:26:33 +08:00
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
2025-04-18 11:04:51 +08:00
</repository> -->
2025-04-17 14:01:02 +08:00
<!-- https://docs.spring.io/spring-ai/reference/getting-started.html -->
2025-04-19 00:28:19 +08:00
<!-- https://repo.spring.io/ui/native/snapshot/org/springframework/ai/ -->
2024-03-29 16:26:33 +08:00
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
2025-04-17 14:01:02 +08:00
<repository>
<name>Central Portal Snapshots</name>
<id>central-portal-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
2024-03-29 16:26:33 +08:00
</repositories>
2024-04-07 10:54:47 +08:00
</project>