# fastknowledge
基于 xiaoapi 的RAG系统
## 安装
```
pip install -r requirements.txt
pip install -r requirements_webui.txt
```
## 配置
在 application/settings 中 修改以下配置:
```python
LLM_MODELS = ["gpt-4"]
LLM_MODELS_CONFIG = {
"openai-api": {
"model_name": "gpt-4", # 由接口传入,不会使用这个
"api_base_url": "https://api.openai.com/v1",
"api_key": "EMPTY",
},
}
# fast-search服务接口地址
SEARCH_SERVER_URL = "http://127.0.0.1:7862"
```
## 启动
### 启动fastapi服务
```
python manage.py run-server
```
### 启动webui
```
streamlit run webui.py
```
没有合适的资源?快使用搜索试试~ 我知道了~
基于FastAPI的RAG系统(python)
共40个文件
png:17个
py:15个
txt:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 136 浏览量
2024-03-29
09:30:51
上传
评论
收藏 85KB ZIP 举报
温馨提示
安装 pip install -r requirements.txt pip install -r requirements_webui.txt 配置 在 application/settings 中 修改以下配置: LLM_MODELS = ["gpt-4"] LLM_MODELS_CONFIG = { "openai-api": { "model_name": "gpt-4", # 由接口传入,不会使用这个 "api_base_url": "https://api.openai.com/v1", "api_key": "EMPTY", }, } # fast-search服务接口地址 SEARCH_SERVER_URL = "http://127.0.0.1:7862" 启动 启动fastapi服务 python manage.py run-server 启动webui streamlit run webui.py
资源推荐
资源详情
资源评论
收起资源包目录
fastknowledge-main.zip (40个子文件)
fastknowledge-main
application
__init__.py 0B
settings.py 3KB
routes.py 429B
requirements_webui.txt 87B
webui.py 2KB
webui_pages
__init__.py 0B
dialogue
__init__.py 0B
dialogue.py 7KB
api_request.py 12KB
LICENSE 1KB
modules
__init__.py 0B
fastknowledge
utils.py 2KB
__init__.py 0B
routers_knowledge_base_chat.py 4KB
history.py 1KB
routers_llm_chat.py 3KB
manage.py 625B
.streamlit
config.toml 182B
requirements.txt 101B
.gitignore 3KB
static
system
facebook_cover_photo_2.png 2KB
twitter_profile_image.png 3KB
linkedin_banner_image_2.png 3KB
youtube_profile_image.png 3KB
facebook_cover_photo_1.png 7KB
linkedin_profile_image.png 4KB
logo.png 5KB
instagram_profile_image.png 4KB
twitter_header_photo_2.png 2KB
twitter_header_photo_1.png 6KB
linkedin_banner_image_1.png 6KB
chat_icon.png 7KB
pinterest_board_photo.png 3KB
logo_transparent.png 6KB
pinterest_profile_image.png 1KB
facebook_profile_image.png 5KB
favicon.png 214B
README.md 634B
scripts
fast-knowledge-webui.service 375B
fast-knowledge.service 358B
共 40 条
- 1
资源评论
十小大
- 粉丝: 9928
- 资源: 2555
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功