Skip to content

Commit

Permalink
update to 0.3.5
Browse files Browse the repository at this point in the history
support ai chat
  • Loading branch information
pengjinning committed Aug 6, 2024
1 parent 727ced0 commit 0e07cae
Show file tree
Hide file tree
Showing 1,025 changed files with 31,527 additions and 8,588 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ hs_err_pid*
/starter/logs
h2db/
application-prod.properties
application-dev-mysql.properties
application-dev-pg.properties
application-prod-pg.properties
application-prod-mysql.properties
application-dev-pg-private.properties
application-dev-oracle.properties
projects/*
liangshibao/*
tiku/*
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: jackning [email protected]
* @Date: 2024-06-05 09:43:27
* @LastEditors: jackning [email protected]
* @LastEditTime: 2024-07-26 12:24:07
* @LastEditTime: 2024-08-06 07:52:10
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
Expand Down Expand Up @@ -82,7 +82,7 @@ git clone https://github.com/Bytedesk/bytedesk.git
cd bytedesk
mvn install -Dmaven.test.skip=true
#
cd bytedesk/starter
cd starter
mvn spring-boot:run
#
# local preview:
Expand Down
4 changes: 2 additions & 2 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: jackning [email protected]
* @Date: 2024-06-05 09:44:23
* @LastEditors: jackning [email protected]
* @LastEditTime: 2024-07-28 13:19:25
* @LastEditTime: 2024-08-06 07:52:22
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
Expand Down Expand Up @@ -87,7 +87,7 @@ git clone https://github.com/Bytedesk/bytedesk.git
cd bytedesk
mvn install -Dmaven.test.skip=true
#
cd bytedesk/starter
cd starter
mvn spring-boot:run
#
# 本地预览
Expand Down
Binary file modified modules/.DS_Store
Binary file not shown.
Binary file modified modules/ai/.DS_Store
Binary file not shown.
Binary file added modules/ai/HAI_AI-Index-Report-2024.pdf
Binary file not shown.
70 changes: 36 additions & 34 deletions modules/ai/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,58 +6,44 @@

<parent>
<groupId>com.bytedesk</groupId>
<artifactId>modules</artifactId>
<version>${revision}</version>
<artifactId>modules</artifactId>
<version>${revision}</version>
</parent>

<groupId>com.bytedesk</groupId>
<artifactId>bytedesk-module-ai</artifactId>

<version>${revision}</version>

<name>bytedesk-module-ai</name>
<description>Demo project for Spring Boot</description>
<description>ai module for https://www.weiyuai.cn</description>

<properties>
<!-- https://docs.spring.io/spring-ai/reference/getting-started.html -->
<!-- <spring-ai.version>1.0.0-M1</spring-ai.version> -->
<spring-ai.version>1.0.0-SNAPSHOT</spring-ai.version>
<spring-ai.version>1.0.0-SNAPSHOT</spring-ai.version>
</properties>

<dependencies>

<!-- <dependency>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-chroma-store-spring-boot-starter</artifactId>
</dependency> -->
<artifactId>spring-ai-spring-boot-autoconfigure</artifactId>
<scope>provided</scope>
</dependency>

<!-- https://docs.spring.io/spring-ai/reference/api/embeddings/ollama-embeddings.html -->
<!--
https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-ollama-spring-boot-starter -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-ollama-spring-boot-starter</artifactId>
<scope>provided</scope>
</dependency>

<!-- <dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-openai-spring-boot-starter</artifactId>
</dependency> -->

<!-- <dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-pgvector-store-spring-boot-starter</artifactId>
</dependency> -->

<!-- <dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-postgresml-spring-boot-starter</artifactId>
</dependency> -->

<!-- <dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-redis-store-spring-boot-starter</artifactId>
</dependency> -->

<!-- https://docs.spring.io/spring-ai/reference/api/embeddings/zhipuai-embeddings.html -->
<!-- Spring AI ZhiPuAI Auto Configuration -->
<!--
https://mvnrepository.com/artifact/org.springframework.ai/spring-ai-zhipuai-spring-boot-starter -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-zhipuai-spring-boot-starter</artifactId>
<scope>provided</scope>
</dependency>

<!-- ///////////////////////////////////////////////////////////////////////////// -->
Expand All @@ -69,14 +55,29 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.bytedesk</groupId>
<artifactId>bytedesk-module-kbase</artifactId>
<version>${revision}</version>
<scope>provided</scope>
</dependency>

<!-- ///////////////////////////////////////////////////////////////////////////// -->

<!-- https://open.bigmodel.cn/dev/api#sdk_install -->
<!-- https://github.com/MetaGLM/zhipuai-sdk-java-v4 -->
<dependency>
<groupId>cn.bigmodel.openapi</groupId>
<artifactId>oapi-java-sdk</artifactId>
<version>release-V4-2.1.0</version>
<version>release-V4-2.2.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java -->
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.25.2</version>
<scope>provided</scope>
</dependency>

<!-- ///////////////////////////////////////////////////////////////////////////// -->
Expand All @@ -87,6 +88,7 @@
</dependency>

</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
Expand All @@ -98,7 +100,7 @@
</dependency>
</dependencies>
</dependencyManagement>

<build>
<plugins>
<!-- <plugin>
Expand Down
8 changes: 5 additions & 3 deletions modules/ai/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: jackning [email protected]
* @Date: 2024-02-02 09:32:36
* @LastEditors: jackning [email protected]
* @LastEditTime: 2024-05-31 09:58:27
* @LastEditTime: 2024-07-23 11:35:15
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
Expand All @@ -12,11 +12,13 @@
* 联系:[email protected]
* Copyright (c) 2024 by bytedesk.com, All Rights Reserved.
-->
# ai
# ai module

## docs

- [spring-ai](https://docs.spring.io/spring-ai/reference/)
- [spring-ai](https://spring.io/projects/spring-ai)
- [spring-ai-docs](https://docs.spring.io/spring-ai/reference/index.html)
- [spring-ai-getting-started](https://docs.spring.io/spring-ai/reference/getting-started.html)
- [spring-ai-github](https://github.com/spring-projects/spring-ai)

```bash
Expand Down
26 changes: 26 additions & 0 deletions modules/ai/readme.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!--
* @Author: jackning [email protected]
* @Date: 2024-02-02 09:32:36
* @LastEditors: jackning [email protected]
* @LastEditTime: 2024-07-20 08:24:46
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
* 仅支持企业内部员工自用,严禁私自用于销售、二次销售或者部署SaaS方式销售
* Business Source License 1.1: https://github.com/Bytedesk/bytedesk/blob/main/LICENSE
* contact: [email protected]
* 联系:[email protected]
* Copyright (c) 2024 by bytedesk.com, All Rights Reserved.
-->
# AI 模块

## docs

- [spring-ai](https://spring.io/projects/spring-ai)
- [spring-ai-docs](https://docs.spring.io/spring-ai/reference/index.html)
- [spring-ai-getting-started](https://docs.spring.io/spring-ai/reference/getting-started.html)
- [spring-ai-github](https://github.com/spring-projects/spring-ai)

```bash
ollama --help
```
77 changes: 0 additions & 77 deletions modules/ai/src/main/java/com/bytedesk/ai/doc/KbDoc.java

This file was deleted.

34 changes: 0 additions & 34 deletions modules/ai/src/main/java/com/bytedesk/ai/doc/KbDocRepository.java

This file was deleted.

Loading

0 comments on commit 0e07cae

Please sign in to comment.