Commit Graph

2096 Commits

Author SHA1 Message Date
FangYin Cheng
a2108e51a7
feat: add postgresql support (#626)
- add postgresql support
- dashboard chat prompt update
2023-09-28 14:27:45 +08:00
Aries-ckt
cdd0fabd6a
Merge branch 'main' into main 2023-09-28 13:42:16 +08:00
Aries-ckt
dfec2704fa
feat(ChatKnowledge): Add custom text separators and refactor log configuration (#636)
### ChatKnowledge
- New custom text separators
- Modfy relations output format
- Read `KNOWLEDGE_CHAT_SHOW_RELATIONS` from environment
`KNOWLEDGE_CHAT_SHOW_RELATIONS`

### More knowledge command line capabilities
- Delete your knowledge space or document in space
- List knowledge space

### Refactor log configuration
- Get loggger with `logging.getLogger(__name__)`
- Setup logging with `setup_logging`
- Read logger directory from environment `DBGPT_LOG_DIR`

Close #636
2023-09-28 13:39:20 +08:00
FangYin Cheng
202a0cec0a chore: pylint 2023-09-28 12:52:25 +08:00
FangYin Cheng
5b9a0fa7c0 doc(ChatKnowledge): Add documents for knowledge command line 2023-09-28 12:50:37 +08:00
FangYin Cheng
5dfe611478 feat(ChatKnowledge): Add custom text separators and refactor log configuration 2023-09-28 11:54:58 +08:00
FangYin Cheng
20bdddec51
fix(ChatData):pyspark lazy load (#633)
1.fix: pyspark lazy load
2.fix: chromadb version
2023-09-27 14:10:18 +08:00
aries_ckt
92c25fe395 fix:pyspark lazy load 2023-09-27 12:40:30 +08:00
aries_ckt
1d3ea2acd5 fix:chromadb version 2023-09-27 12:03:05 +08:00
FangYin Cheng
6843fc7376
feat(ChatData):update spark datasource (#631)
1.feat:update spark_conn,py
2.doc: deploy and llm use faq
2023-09-26 18:02:57 +08:00
aries_ckt
7d51a2e349 feat:spark conn 2023-09-26 18:00:44 +08:00
aries_ckt
b39ba51bb7 feat:update spark connection 2023-09-26 17:53:13 +08:00
aries_ckt
8c4accb09e Merge remote-tracking branch 'origin/main' into feat_llm_manage 2023-09-26 11:16:32 +08:00
lozzow
14dc5dac04 style: fix code style with black 2023-09-25 14:29:16 +00:00
aries_ckt
90f1607338 doc:llm faq 2023-09-25 21:09:40 +08:00
aries_ckt
486b30a8c5 doc:llm faq 2023-09-25 21:09:17 +08:00
lozzow
6a03c24ee7 fix: add error message log out 2023-09-25 13:05:04 +00:00
lozzow
eee2072acf build: mv psycopg2 from framework to datasource 2023-09-25 12:19:47 +00:00
lozzow
92a914732b fix: translate chinese to english 2023-09-25 12:19:47 +00:00
Aries-ckt
0e9662a13f
fix(core): Use thread pool to replace native threading.Thread (#628)
Close #627
2023-09-25 17:45:39 +08:00
FangYin Cheng
6183fa08d2 chore: modify colorama==0.4.10 2023-09-25 17:38:21 +08:00
FangYin Cheng
3d5e0f4028 fix(core): Use thread pool to replace native threading.Thread 2023-09-25 17:35:15 +08:00
lozzo
d6a623ac59
Merge branch 'eosphoros-ai:main' into main 2023-09-25 17:03:32 +08:00
magic.chen
d49e0eec8b
chore:wechat expire (#624) 2023-09-25 11:15:54 +08:00
aries_ckt
efc89348da chore:wechat expire 2023-09-25 11:12:45 +08:00
magic.chen
77c9e62f3b
fix:doc build error (#623) 2023-09-25 10:30:20 +08:00
aries_ckt
07e93bc279 chore:update bug-report scene 2023-09-25 10:28:12 +08:00
aries_ckt
5875c8b526 fix:doc build error 2023-09-25 10:25:44 +08:00
FangYin Cheng
56a3b51fab
fix: proxyllm do not need controller_addr (#616)
reason:

for openai user in China, most of us use `http_proxy` or `https_proxy`
for openai things,
but for the controller_addr load reason when have this proxy in env, the
pilot can not start, so we can check if use llmproxy to ignore it
2023-09-25 10:03:27 +08:00
lozzow
8b7197d83a feat: add postgresql support 2023-09-24 23:56:18 +00:00
yihong0618
76fdf52b0a fix: another way 2023-09-23 14:46:26 +08:00
yihong0618
24e6d16a09 fix: proxyllm do not need controller_addr 2023-09-22 16:47:34 +08:00
FangYin Cheng
9979b6aa80
feat(model):add model web management (#613) 2023-09-22 10:30:13 +08:00
aries_ckt
d512ddeae9 feat:llm manage 2023-09-22 00:30:34 +08:00
aries_ckt
ce3b2e6213 style:fmt 2023-09-22 00:21:54 +08:00
aries_ckt
25ba20925f feat:llm manage web page 2023-09-22 00:18:32 +08:00
aries_ckt
55d037ac4f feat:llm manage 2023-09-22 00:09:57 +08:00
aries_ckt
598619080d fix:doc build 2023-09-22 00:07:43 +08:00
aries_ckt
96b7fb38b1 feat:llm manage 2023-09-21 22:35:05 +08:00
Aries-ckt
3590d7bab4
feat(web): Add incremental response to streaming response for /v1/chat/completion request (#611)
Close #610
2023-09-21 18:50:55 +08:00
FangYin Cheng
28c24516a2 chore: Add _clear_model_cache function to clear model cache 2023-09-21 18:19:19 +08:00
FangYin Cheng
461179ee6f feat(web): Add incremental response to streaming response for /v1/chat/completion request 2023-09-21 16:32:33 +08:00
aries_ckt
ef2884d1ad feat(web):model manage web files 2023-09-21 15:29:09 +08:00
FangYin Cheng
896af4e16f chore: fix shutdown error when not install torch 2023-09-21 12:20:24 +08:00
FangYin Cheng
c830598c9e
feat(ChatKnowledge): return topk document source (KBQA) (#609)
1. Support score feedback
2. Add method to return topk document source (KBQA)
2023-09-21 12:07:16 +08:00
cm-liushaodong
a4832be869 feat:
1. Support score feedback
2. Add method to return topk document source (KBQA)
2023-09-20 23:21:19 +08:00
aries_ckt
f3caba7d72 feat:update params 2023-09-20 20:22:14 +08:00
aries_ckt
7c879e64ea Merge remote-tracking branch 'origin/main' into feat_llm_manage 2023-09-20 20:12:55 +08:00
Aries-ckt
132814e26e
feat(core): Multi-module dependency splitting (#606)
Close #601 

**Note**: This is a breaking upgrade. We have updated chromadb from
version 0.3.22 to the latest version. In this new version, the database
storage engine has been switched from "duckdb" to "SQLite". For more
details, you can check [here](https://docs.trychroma.com/migration). If
you were using chromadb previously, you'll need to delete the content
imported into the knowledge base and re-import it.

Other:
- Support InternLM 20B
2023-09-20 18:58:42 +08:00
FangYin Cheng
50f8bbf81b doc(core): modify zh documents 2023-09-20 17:36:03 +08:00