修改readme

This commit is contained in:
moyangzhan 2024-02-15 15:31:49 +08:00
parent 029d6b9d50
commit e509cf3a46
6 changed files with 47 additions and 8 deletions

View File

@ -2,19 +2,53 @@
> 声明:此项目只发布于 Github基于 MIT 协议,免费且作为开源学习使用。并且不会有任何形式的卖号等行为,谨防受骗。 > 声明:此项目只发布于 Github基于 MIT 协议,免费且作为开源学习使用。并且不会有任何形式的卖号等行为,谨防受骗。
**LangChain4j-AiDeepin**
基于 ChatGPT 等大语言模型与 Langchain4j 等应用框架实现,开源、可离线部署的检索增强生成(RAG)大模型知识库项目。
功能:
* AI聊天
* AI生图
* 大模型知识库RAG
![1691585301627](image/README/1691585301627.png) ![1691585301627](image/README/1691585301627.png)
**AI聊天**
![1691583184761](image/README/1691583184761.png) ![1691583184761](image/README/1691583184761.png)
![1691583124744](image/README/1691583124744.png) ![1691583124744](image/README/1691583124744.png)
![1691583329105](image/README/1691583329105.png) ![1691583329105](image/README/1691583329105.png)
**知识库:**
![kbindex](image/README/kbidx.png)
![kb01](image/README/kb01.png)
![kb02](image/README/kb02.png)
![kb03](image/README/kb03.png)
体验网址:[http://www.aideepin.com](http://www.aideepin.com/) 体验网址:[http://www.aideepin.com](http://www.aideepin.com/)
接入的模型ChatGPT 3.5DALL-E 2 接入的模型ChatGPT 3.5DALL-E 2
该仓库为后端服务,前端项目见[aideepin-web](https://github.com/moyangzhan/aideepin-web) 该仓库为后端服务,前端项目见[langchain4j-aideepin-web](https://github.com/moyangzhan/langchain4j-aideepin-web)
### 技术
后端:
jdk17
springboot3.0.5
[langchain4j](https://github.com/langchain4j/langchain4j)
**Postgresql(需要安装[pgvector](https://github.com/pgvector/pgvector)扩展)**
前端:
vue3+typescript+pnpm
### 如何部署 ### 如何部署
@ -22,9 +56,9 @@
初始化数据库 初始化数据库
* 创建数据库aideepin * 创建数据库aideepin
* 执行docs/create.sql * 执行docs/create.sql
* 填充openai的secret\_key * 填充openai的secret\_key
```plaintext ```plaintext
update adi_sys_config set value = 'my_chatgpt_secret_key' where name = 'secret_key' update adi_sys_config set value = 'my_chatgpt_secret_key' where name = 'secret_key'
@ -41,7 +75,7 @@ update adi_sys_config set value = 'my_chatgpt_secret_key' where name = 'secret_k
* 进入项目 * 进入项目
```plaintext ```plaintext
cd aideepin cd langchain4j-aideepin
``` ```
* 打包: * 打包:
@ -50,7 +84,7 @@ cd aideepin
mvn clean package -Dmaven.test.skip=true mvn clean package -Dmaven.test.skip=true
``` ```
* 运行 * 运行
a. jar包启动 a. jar包启动
@ -70,3 +104,8 @@ docker run -d \
-v="/data/aideepin/logs:/data/logs" \ -v="/data/aideepin/logs:/data/logs" \
aideepin:0.0.1 aideepin:0.0.1
``` ```
### 待办:
接入基于ChatGLM的各种模型

View File

@ -1,7 +1,7 @@
spring: spring:
datasource: datasource:
driver-class-name: org.postgresql.Driver driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://172.17.18.164:5432/aideepin2?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&tinyInt1isBit=false&allowMultiQueries=true url: jdbc:postgresql://127.0.0.1:5432/aideepin2?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&tinyInt1isBit=false&allowMultiQueries=true
username: postgres username: postgres
password: 123456 password: 123456
data: data:

BIN
image/README/kb01.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

BIN
image/README/kb02.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

BIN
image/README/kb03.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 KiB

BIN
image/README/kbidx.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB