1993 Commits

Author SHA1 Message Date
imClumsyPanda
b110fcd01b fix faiss_cache bug 2024-06-09 22:51:48 +08:00
glide-the
6019af4f33 配置路径问题 2024-06-09 21:22:27 +08:00
glide-the
84bafe9723
用户工作空间操作 (#4156)
工作空间的配置预设,提供ConfigBasic建造方法产生实例。
  该类的实例对象用于存储工作空间的配置信息,如工作空间的路径等
  工作空间的配置信息存储在用户的家目录下的.config/chatchat/workspace/workspace_config.json文件中。
  注意:不存在则读取默认

提供了操作入口
指令` chatchat-config` 工作空间配置

options:
```
  -h, --help            show this help message and exit
  -v {true,false}, --verbose {true,false}
                        是否开启详细日志
  -d DATA, --data DATA  数据存放路径
  -f FORMAT, --format FORMAT
                        日志格式
  --clear               清除配置
```
2024-06-09 19:59:54 +08:00
glide-the
38ca2edb41 dotenv 配置 2024-06-09 14:10:09 +08:00
glide-the
c43bee9921 dotenv 2024-06-09 13:42:57 +08:00
srszzw
3f1244d156
支持SQLAlchemy大部分数据库、新增read-only模式,提高安全性、增加text2sql使用建议 (#4155)
* 1、修改text2sql连接配置,支持SQLAlchemy大部分数据库;
2、新增read-only模式,若有数据库写保护需求,会从大模型判断、SQLAlchemy拦截器两个层面进行写拦截,提高安全性;
3、增加text2sql使用建议;
2024-06-09 12:53:54 +08:00
srszzw
b1c5bf9c94
增加text2sql工具,支持特定表、智能判定表,支持对表名进行额外说明 (#4154)
* 1、增加text2sql工具,支持特定表、智能判定表,支持对表名进行额外说明
2024-06-08 22:52:16 +08:00
glide-the
94524f8479 一些依赖问题 2024-06-08 17:34:27 +08:00
liunux4odoo
a5b203170b
优化知识库相关功能 (#4153)
- 新功能
    - pypi 包新增 chatchat-kb 命令脚本,对应 init_database.py 功能

- 开发者
    - _model_config.py 中默认包含 xinference 配置项
    - 所有涉及向量库的操作,前置检查当前 Embed 模型是否可用
    - /knowledge_base/create_knowledge_base 接口增加 kb_info 参数
    - /knowledge_base/list_files 接口返回所有数据库字段,而非文件名称列表
    - 修正 xinference 模型管理脚本
2024-06-08 14:34:50 +08:00
glide-the
8994b25a77
Update code.md 2024-06-06 16:26:01 +08:00
glide-the
83241e1a56 更新版本"0.3.0.20240606 2024-06-06 11:24:08 +08:00
glide-the
64ca17061a make formater 2024-06-06 11:02:37 +08:00
glide-the
d485edad6d 修改安装说明描述问题 2024-06-06 10:51:28 +08:00
imClumsyPanda
0f01878db7 update README and imgs 2024-06-03 22:57:00 +08:00
imClumsyPanda
cf2f24e2ba update README and imgs 2024-06-03 22:47:25 +08:00
imClumsyPanda
038255673a update README and imgs 2024-06-03 22:43:00 +08:00
imClumsyPanda
79f93719d3 update README and imgs 2024-06-03 22:41:15 +08:00
srszzw
a84221cecc
知识库工具的下拉列表改为动态获取,不必重启服务。 (#4126)
* 1、知识库工具的下拉列表改为动态获取,不必重启服务。
2024-06-03 16:46:59 +08:00
yuehua-s
e941310775
fix: 补充 xinference 配置信息 (#4123)
* feat:README

* feat:补充 xinference 平台 llm 和 embedding 模型配置.

---------

Co-authored-by: yuehuazhang <yuehuazhang@tencent.com>
2024-06-03 06:56:14 +08:00
srszzw
7acbbeb2be
动态更新Prompt中的知识库描述信息,使大模型更容易判断使用哪个知识库。 (#4121)
* 1、修改知识库列表接口,返回全量属性字段,同时修改受影响的相关代码。
2、run_in_process_pool改为run_in_thread_pool,解决兼容性问题。
3、poetry配置文件修复。

* 1、动态更新Prompt中的知识库描述信息,使大模型更容易判断使用哪个知识库。
2024-06-02 18:37:39 +08:00
glide-the
bc6832bc7f
Merge pull request #4122 from chatchat-space/dev_init_database_providers
Dev init database providers关闭守护进程
2024-06-02 17:17:42 +08:00
srszzw
10c5dcfdde
1、修改知识库列表接口,返回全量属性字段,同时修改受影响的相关代码。 (#4119)
2、run_in_process_pool改为run_in_thread_pool,解决兼容性问题。
3、poetry配置文件修复。
2024-06-01 18:44:06 +08:00
glide-the
487044a13f 关闭守护进程 2024-06-01 12:16:56 +08:00
glide-the
3a4c5994a5 初始化数据库集成model_providers 2024-06-01 12:01:56 +08:00
yuehua-s
67ed340c3b
feat:README (#4118)
Co-authored-by: yuehuazhang <yuehuazhang@tencent.com>
2024-06-01 11:30:32 +08:00
imClumsyPanda
70f4444458 fix chatchat-server/pyproject.toml typos 2024-05-30 09:29:08 +08:00
imClumsyPanda
f5e2141519 fix code.md typos 2024-05-30 09:17:59 +08:00
yuehua-s
3cbf0a9bc1
feat:Added some documentation. (#4085)
* feat:Added some documentation.

* feat:Added some documentation.

* feat:Added some documentation.

---------

Co-authored-by: yuehuazhang <yuehuazhang@tencent.com>
2024-05-29 22:42:37 +08:00
glide-the
11626b9b2c 增加可选依赖extras 2024-05-27 10:12:21 +08:00
glide-the
8026697417 调整日志zdf 2024-05-22 18:14:49 +08:00
glide-the
1de4f30b98 调整日志 2024-05-22 14:27:59 +08:00
glide-the
c46c225ee5 repositories 2024-05-22 14:18:14 +08:00
liunux4odoo
5c650a8dc3
优化目录结构 (#4058)
* 优化目录结构

* 修改一些测试问题

---------

Co-authored-by: glide-the <2533736852@qq.com>
2024-05-22 13:11:45 +08:00
glide-the
842a23006a 向量处理问题 2024-05-21 15:46:53 +08:00
glide-the
7b6cc81ff5 统一模型类型编码 2024-05-21 15:39:15 +08:00
glide-the
1f378256e4 get_img_base64 2024-05-21 14:48:30 +08:00
glide-the
127ef142a8 get_img_base64 2024-05-21 14:25:41 +08:00
glide-the
ae318c7811 get_img_base64 2024-05-21 14:24:21 +08:00
glide-the
79be52fa18 get_img_base64 2024-05-21 14:22:12 +08:00
glide-the
afba07e42d get_img_base64 2024-05-21 14:20:11 +08:00
glide-the
ac37048525 更新版本 2024-05-21 13:11:49 +08:00
glide-the
f55306b551 test 2024-05-20 12:00:31 +08:00
glide-the
4e9b1d6edf make format 2024-05-20 11:58:30 +08:00
glide-the
6dd00b5d94 一些兼容 pydantic<3,>=1.9.0 model_config 的代码, 2024-05-20 11:57:06 +08:00
glide-the
d0267bf66b 一些兼容 pydantic<3,>=1.9.0 的代码, 2024-05-20 11:35:14 +08:00
glide-the
2bb24d8b6d ollama兼容 2024-05-20 10:46:27 +08:00
glide-the
0470b8ae41 ollama兼容 2024-05-20 10:05:37 +08:00
glide-the
5a0cb4d238 python3.8兼容 2024-05-20 09:44:47 +08:00
glide-the
d8352eb8e0 python3.8兼容 2024-05-20 09:42:42 +08:00
glide-the
a6e78f219f
contributing (#4043)
* 添加了贡献说明 docs/contributing,包含了一些代码仓库说明和开发规范,以及在model_providers下面编写了一些单元测试的示例

* 关于providers的配置说明
2024-05-19 21:39:47 +08:00