update env
This commit is contained in:
parent
96ef0fc852
commit
18940a2028
|
@ -1 +1,3 @@
|
||||||
.idea
|
.idea
|
||||||
|
moka-ai/*
|
||||||
|
logs
|
|
@ -0,0 +1,37 @@
|
||||||
|
# 上传的参数params
|
||||||
|
```text
|
||||||
|
knowledge_base_name: ceshi
|
||||||
|
score_threshold: 0.6
|
||||||
|
top_k:2
|
||||||
|
appid:d597331d
|
||||||
|
api_secret:ZDUwNDAxNWI2OWQwZjA2OTQ3ZTJhNGE1
|
||||||
|
api_key:7f91f70f4384805483d948b9aa1317e6
|
||||||
|
```
|
||||||
|
|
||||||
|
# 发送消息格式
|
||||||
|
与讯飞星火完全一致。https://www.xfyun.cn/doc/spark/Web.html
|
||||||
|
```text
|
||||||
|
{
|
||||||
|
"header": {
|
||||||
|
"app_id": "d597331d",
|
||||||
|
"uid": "1234"
|
||||||
|
},
|
||||||
|
"parameter": {
|
||||||
|
"chat": {
|
||||||
|
"domain": "general",
|
||||||
|
"temperature": 0.5,
|
||||||
|
"max_tokens": 2048
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payload": {
|
||||||
|
"message": {
|
||||||
|
"text": [
|
||||||
|
{
|
||||||
|
"role": "user",
|
||||||
|
"content": "你是谁"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
Binary file not shown.
|
@ -24,15 +24,15 @@ spacy
|
||||||
PyMuPDF
|
PyMuPDF
|
||||||
rapidocr_onnxruntime
|
rapidocr_onnxruntime
|
||||||
|
|
||||||
requests~=2.31.0
|
requests
|
||||||
pathlib~=1.0.1
|
pathlib
|
||||||
pytest~=7.4.3
|
pytest
|
||||||
numexpr~=2.8.7
|
numexpr
|
||||||
strsimpy~=0.2.1
|
strsimpy
|
||||||
markdownify~=0.11.6
|
markdownify
|
||||||
tiktoken
|
tiktoken
|
||||||
tqdm~=4.66.1
|
tqdm
|
||||||
websockets~=11.0.3
|
websockets
|
||||||
numpy~=1.24.4
|
numpy~=1.24.4
|
||||||
pandas~=2.0.3
|
pandas~=2.0.3
|
||||||
einops
|
einops
|
||||||
|
@ -41,32 +41,12 @@ transformers_stream_generator==0.0.4
|
||||||
vllm>=0.2.0; sys_platform == "linux"
|
vllm>=0.2.0; sys_platform == "linux"
|
||||||
|
|
||||||
# online api libs
|
# online api libs
|
||||||
# zhipuai
|
zhipuai
|
||||||
# dashscope>=1.10.0 # qwen
|
dashscope>=1.10.0 # qwen
|
||||||
# qianfan
|
qianfan
|
||||||
# volcengine>=1.0.106 # fangzhou
|
# volcengine>=1.0.106 # fangzhou
|
||||||
|
|
||||||
# uncomment libs if you want to use corresponding vector store
|
# uncomment libs if you want to use corresponding vector store
|
||||||
# pymilvus==2.1.3 # requires milvus==2.1.3
|
# pymilvus==2.1.3 # requires milvus==2.1.3
|
||||||
# psycopg2
|
# psycopg2
|
||||||
# pgvector
|
# pgvector
|
||||||
|
|
||||||
# WebUI requirements
|
|
||||||
|
|
||||||
streamlit~=1.27.0
|
|
||||||
streamlit-option-menu>=0.3.6
|
|
||||||
streamlit-antd-components>=0.1.11
|
|
||||||
streamlit-chatbox>=1.1.11
|
|
||||||
streamlit-aggrid>=0.3.4.post3
|
|
||||||
httpx[brotli,http2,socks]>=0.25.0
|
|
||||||
watchdog
|
|
||||||
|
|
||||||
sentencepiece~=0.1.99
|
|
||||||
cachetools~=5.3.2
|
|
||||||
chardet~=5.2.0
|
|
||||||
python-dateutil~=2.8.2
|
|
||||||
safetensors~=0.4.0
|
|
||||||
readline~=8.2
|
|
||||||
colorama~=0.4.6
|
|
||||||
loguru~=0.7.2
|
|
||||||
pyyaml~=6.0.1
|
|
Loading…
Reference in New Issue