langboot
v1.6.2
用langchain的思想,構建SpringBoot AI應用。
本項目未涉及AI模型的微調、訓練過程,僅使用相關大語言模型作為技術底座實現相關功能,模型的使用請參看相關官方文檔。
| 組件 | 版本 |
|---|---|
| java | 17+ |
| SpringBoot | 3.1.0 |
| swagger-ui | knife4j-openapi3-jakarta-spring-boot-starter |
| 工具包 | hutool-all |
| 快取 | redis |
| json | fastjson2 |
| mysql | mysql-connector-j |
| orm框架 | mybatis-plus |
| openai庫 | openai-java |
| 前端 | freemarker、bootstrap、jquery、recorder.js |
| stream-chat | SSE |
| LLMs | openai、chatglm2、文心一言、智譜AI、Kimi |
| embeddings | openai、text2vec-transformers、文心一言 |
| vector store | weaviate、milvus、pgvector |

| 模型/能力 | 文本生成 | 流式輸出 | 語音 | 函數調用 | 圖片生成 | 多模態(VISION) | 嵌入EMBEDDING |
|---|---|---|---|---|---|---|---|
| openai | 支持 | 支持 | 支持 | 支持 | 支持 | 支持 | 支持 |
| 百度(文心) | 支持 | 支持 | - | 支持 | 支持 | - | 支持 |
| 智譜(GLM-4) | 支持 | 支持 | - | 支持 | 支持 | 支持 | 支持 |
| kimi | 支持 | 支持 | - | - | - | - | - |
| chatglm2 | 支持 | 支持 | - | - | - | - | - |
| ... ... | - | - | - | - | - | - | - |
已完成本地知識庫上傳、及完成openai、chatglm2、百度、智譜GLM-4、kimi五個LLMs模型流式聊天功能。未來計劃會接入更多大語言模型,以滿足更多需求場景。
init - script / db . sql-- 安装启动本地向量数据库
docker-compose up -d // 配置openai api token
openai . token = sk - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # 或者启动本地chatglm2-6B模型
python .o penai_api . py Wiki
如何構建高質量知識庫文檔
![]() | ![]() | ![]() | ![]() |
|---|---|---|---|
![]() | ![]() | ![]() | ![]() |
![]() | ![]() |




