Skip to content

Commit

Permalink
refactor:项目名称重新命名为LangBoot,将控制器中的部分视图与rest api分包。
Browse files Browse the repository at this point in the history
  • Loading branch information
hkh1012 committed Jun 9, 2024
1 parent 784bafe commit 9ca4b33
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# langchain-springboot
# LangBoot
用langchain的思想构建SpringBoot AI应用

🚩 本项目未涉及AI模型的微调训练过程仅使用相关大语言模型作为技术底座实现相关功能模型的使用请参看相关官方文档
Expand All @@ -21,7 +21,7 @@
| embeddings | openaitext2vec-transformers文心一言 |
| vector store | weaviatemilvus |

## langchain 原理
## langchain rag原理
<img src="src/main/resources/assets/langchain+chatglm.png" alt="原理图"/>

## 模型能力矩阵
Expand Down Expand Up @@ -86,9 +86,9 @@ python .\openai_api.py

## 更多配置请查看

[Wiki](https://github.com/hkh1012/langchain-springboot/wiki)
[Wiki](https://github.com/hkh1012/langboot/wiki)

[如何构建高质量知识库文档](https://github.com/hkh1012/langchain-springboot/wiki/How-to-build-a-high%E2%80%90quality-knowledge-base)
[如何构建高质量知识库文档](https://github.com/hkh1012/langboot/wiki/How-to-build-a-high%E2%80%90quality-knowledge-base)

## 功能展示
| <img src="src/main/resources/assets/login_app.png" alt="登录" with="200"/> |<img src="src/main/resources/assets/functions_1.png" alt="首页"/>|<img src="src/main/resources/assets/functions_2.png" alt="功能2"/>|<img src="src/main/resources/assets/functions_3.png" alt="功能3"/>|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hkh.ai.controller;
package com.hkh.ai.controller.view;

import cn.hutool.core.net.URLDecoder;
import cn.hutool.core.net.URLEncodeUtil;
Expand All @@ -22,7 +22,7 @@
*/
@Controller
@AllArgsConstructor
public class AuthController {
public class AuthViewController {

private final SysUserService sysUserService;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
package com.hkh.ai.controller.view;

import com.github.pagehelper.PageInfo;
import com.hkh.ai.common.annotation.AdminRequired;
import com.hkh.ai.common.constant.SysConstants;
import com.hkh.ai.domain.*;
import com.hkh.ai.request.KnowledgeAttachPageRequest;
import com.hkh.ai.request.KnowledgeFragmentPageRequest;
import com.hkh.ai.request.KnowledgePageRequest;
import com.hkh.ai.request.SpecialNounPageRequest;
import com.hkh.ai.service.KnowledgeAttachService;
import com.hkh.ai.service.KnowledgeFragmentService;
import com.hkh.ai.service.KnowledgeService;
import com.hkh.ai.service.SpecialNounService;
import jakarta.servlet.http.HttpServletRequest;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Controller;
Expand All @@ -23,7 +13,7 @@
*/
@Controller
@AllArgsConstructor
public class IndexController {
public class IndexViewController {


@GetMapping(value = {"/"})
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# project base
spring.profiles.active=prod
server.port=18089
spring.application.name=spring-ai
spring.application.name=LangBoot

logging.level.web=info
logging.level.root=info
logging.level.org.springframework=info
logging.file.path=/usr/logs/langchain
logging.file.path=/usr/logs/LangBoot

mybatis.mapper-locations=classpath:mapping/*Mapper.xml
mybatis.type-aliases-package=com.hkh.ai.domain
Expand Down

0 comments on commit 9ca4b33

Please sign in to comment.