mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-19 13:23:16 +08:00
* 新功能:
- WEBUI 添加对话评分功能
- 增加 /chat/feedback 接口,用于接收对话评分
- /chat/chat 接口返回值由 str 改为 {"text":str, "chat_history_id": str}
- init_database.py 添加 --create-tables --clear-tables 参数
依赖:
- streamlit-chatbox==1.1.11
开发者:
- ChatHistoryModel 的 id 字段支持自动生成
- SAVE_CHAT_HISTORY 改到 basic_config.py
* 修复:点击反馈后页面未刷新
---------
Co-authored-by: liqiankun.1111 <liqiankun.1111@bytedance.com>
Co-authored-by: liunux4odoo <liunux@qq.com>
Co-authored-by: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com>
63 lines
1.1 KiB
Plaintext
63 lines
1.1 KiB
Plaintext
langchain>=0.0.324
|
|
fschat>=0.2.31
|
|
openai
|
|
# sentence_transformers
|
|
# transformers>=4.33.0
|
|
# torch>=2.0.1
|
|
# torchvision
|
|
# torchaudio
|
|
fastapi>=0.103.1
|
|
python-multipart
|
|
nltk~=3.8.1
|
|
uvicorn~=0.23.1
|
|
starlette~=0.27.0
|
|
pydantic~=1.10.11
|
|
unstructured[docx,csv]>=0.10.4 # add pdf if need
|
|
python-magic-bin; sys_platform == 'win32'
|
|
SQLAlchemy==2.0.19
|
|
faiss-cpu
|
|
# accelerate
|
|
# spacy
|
|
# PyMuPDF==1.22.5 # install if need pdf
|
|
# rapidocr_onnxruntime>=1.3.2 # install if need pdf
|
|
|
|
requests
|
|
pathlib
|
|
pytest
|
|
# scikit-learn
|
|
# numexpr
|
|
# vllm==0.1.7; sys_platform == "linux"
|
|
|
|
# online api libs
|
|
zhipuai
|
|
dashscope>=1.10.0 # qwen
|
|
# qianfan
|
|
# volcengine>=1.0.106 # fangzhou
|
|
|
|
# uncomment libs if you want to use corresponding vector store
|
|
# pymilvus==2.1.3 # requires milvus==2.1.3
|
|
# psycopg2
|
|
# pgvector
|
|
|
|
numpy~=1.24.4
|
|
pandas~=2.0.3
|
|
streamlit>=1.26.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~=0.24.1
|
|
watchdog
|
|
tqdm
|
|
websockets
|
|
# tiktoken
|
|
einops
|
|
# scipy
|
|
# transformers_stream_generator==0.0.4
|
|
|
|
# search engine libs
|
|
duckduckgo-search
|
|
metaphor-python
|
|
strsimpy
|
|
markdownify
|