langchain4j-aideepin

基于AI的工作效率提升工具(聊天、绘画、知识库、工作流、 MCP服务市场) | Ai-based productivity tools (Chat,Draw,RAG,Workflow,MCP marketplace etc)

835
200

Getting Started

LangChain4j-AIDeepin(得应AI) 是基于AI的工作效率提升工具。

可用于辅助企业/团队进行技术研发、产品设计、人事/财务/IT信息咨询、系统/商品咨询、客服话术支撑等工作

🌟该项目如对您有帮助,欢迎点赞🌟

系统组成及文档

中文文档 | English

AIDEEPIN

      |__ 服务端(langchain4j-aideepin)

      |__ 用户端WEB(langchain4j-aideepin-web)

      |__ 管理端WEB(langchain4j-aideepin-admin)

👉详细文档

后端服务代码地址:githubgitee

前端项目:

体验网址

http://www.aideepin.com

功能点

  • 多会话(多角色)
  • 图片生成(文生图、修图、图生图)
  • 基于大模型的知识库(RAG)
  • 向量搜索
  • 图搜索
  • 基于大模型的网络搜索(RAG)
  • AI工作流
  • MCP服务市场

接入的平台/模型:

  • DeepSeek
  • OpenAI
  • ChatGPT 3.5
  • DALL-E 2
  • DALL-E 3
  • 灵积
  • 通义千问
  • 通义万相
  • 硅基流动
  • 文心一言
  • ollama

接入的搜索引擎

Google

Bing (TODO)

百度 (TODO)

技术栈

该仓库为后端服务

技术栈:

ps: neo4j 与 pgvector + apache age 二选一即可

前端技术栈:

  • vue3
  • vite
  • typescript
  • pnpm
  • pinia
  • naiveui

如何部署

初始化

a. 初始化数据库

  • 创建数据库aideepin
  • 执行docs/create.sql
  • 配置模型(至少设置一个) 或者 使用管理端在界面上配置

使用SQL直接更新表数据

  • 配置AI平台
-- DeepSeek的secretKey
update adi_sys_config set value = '{"base_url":"https://api.deepseek.com","secret_key":"my_deepseek_secret_key"}' where name = 'deepseek_setting';

-- openai的secretKey
update adi_sys_config set value = '{"secret_key":"my_openai_secret_key"}' where name = 'openai_setting';

-- 灵积大模型平台的apiKey
update adi_sys_config set value = '{"api_key":"my_dashcope_api_key"}' where name = 'dashscope_setting';

-- 硅基流动的配置
update adi_sys_config set value = '{"base_url":"https://api.siliconflow.cn","secret_key":"my_siliconflow_api_key"}' where name = 'siliconflow_setting';

-- 千帆大模型平台的配置
update adi_sys_config set value = '{"api_key":"my_qianfan_api_key","secret_key":"my_qianfan_secret_key"}' where name = 'qianfan_setting';

-- ollama的配置
update adi_sys_config set value = '{"base_url":"my_ollama_base_url"}' where name = 'ollama_setting';
  • 启用AI平台下的模型或新增模型
-- Enable model
update adi_ai_model set is_enable = true where name = 'deepseek-chat';
update adi_ai_model set is_enable = true where name = 'gpt-3.5-turbo';
update adi_ai_model set is_enable = true where name = 'dall-e-2';
update adi_ai_model set is_enable = true where name = 'qwen-turbo';
update adi_ai_model set is_enable = true where name = 'THUDM/GLM-Z1-9B-0414';
update adi_ai_model set is_enable = true where name = 'ernie_speed';
update adi_ai_model set is_enable = true where name = 'tinydolphin';

-- Add new model
INSERT INTO adi_ai_model (name, type, platform, is_enable) VALUES ('vicuna', 'text', 'ollama', true);
  • 填充搜索引擎的配置
  • Google的配置
update adi_sys_config set value = '{"url":"https://www.googleapis.com/customsearch/v1","key":"my key from cloud.google.com","cx":"my cx from programmablesearchengine.google.com"}' where name = 'google_setting';

b. 修改配置文件

  • postgresql: application-[dev|prod].xml中的spring.datasource
  • redis: application-[dev|prod].xml中的spring.data.redis
  • 邮箱: application.xml中的spring.mail
  • 向量数据库,默认为 pgvector
  • application-[dev|prod].xml 中的 adi.vector-database=[pgvector|neo4j]
  • 图数据库,默认为 Apache age
  • application-[dev|prod].xml 中的 adi.graph-database=[apache-age|neo4j]

编译及运行

  • 进入项目
cd langchain4j-aideepin
  • 打包:
mvn clean package -Dmaven.test.skip=true
  • 运行
  • jar包启动:
cd adi-bootstrap/target
nohup java -jar -Xms768m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError adi-bootstrap-0.0.1-SNAPSHOT.jar --spring.profiles.active=[dev|prod] dev/null 2>&1 &
  • docker启动
cd adi-bootstrap
docker build . -t aideepin:0.0.1
docker run -d \
--name=aideepin \
-e APP_PROFILE=[dev|prod] \
-v="/data/aideepin/logs:/data/logs" \
aideepin:0.0.1

待办:

  • 高级RAG
  • 查询压缩 √
  • 查询路由
  • Re-rank:支持本地rerank模型
  • AI聊天
  • 多角色 √
  • 预设通用角色(管理后台创建) √
  • 图片模型:
  • DALL-E 2 & DALL-E 3 √
  • 通义万相 √
  • 聊天视图 √
  • 画廊视图 √
  • 开放/收藏图片 √
  • 图片评论 √
  • 知识库:
  • 向量 √
  • 知识图谱 √
  • 文档召回数量可设置
  • 自动调整(根据LLM的上下文窗口大小) √
  • 手动调整 √
  • 文档召回最低分数可设置 √
  • 切块时内容重叠数量可设置 √
  • 请求模型时temperature可设置 √
  • 严格模式与非严格模式 √
  • 答案来源 √
  • 支持拉取在线文档
  • FAQ
  • 评论
  • 多模态支持
  • 图片 √
  • 音频
  • 视频
  • 自定义AI Agent(工作流) √
  • 工具
  • FAQ提取
  • 文档对话
  • 翻译
  • 图片处理
  • 修图
  • 抠图
  • 扩图
  • 合成
  • 背景生成 √
  • 搜索引擎
  • Google √
  • Bing
  • 百度
  • 额度统计及控制
  • 免费额度统计及限制 √
  • 计费额度统计及限制 √
  • 总额度统计 √
  • 开放接口
  • 其他
  • 阿里云OSS √

截图

AI聊天:
1691583184761

AI画图:

draw_001

知识库:
kbindex

向量化:

kb03

知识图谱:

kb_graph_01

工作流:

workflow_01

技术交流

  • 先点赞🌟再加群,谢谢
  • 有问题尽量在issue提,容易描述及跟踪处理
  • 业余时间维护本项目,时间有限,所以群里提问不保证即时回复,请见谅

qq

Repository

MO
moyangzhan

moyangzhan/langchain4j-aideepin

Created

August 8, 2023

Updated

July 7, 2025

Language

Java

Category

AI