/chatbot

基于向量数据库实现搜索引擎

Primary LanguagePythonMIT LicenseMIT

环境搭建

1. 安装milvus

(1)下载yaml文件

wget https://github.com/milvus-io/milvus/releases/download/v2.2.11/milvus-standalone-docker-compose.yml -O docker-compose.yml

(2)开启milvus

sudo docker-compose up -d

2. 安装模块

pip install -r requirements.txt

运行应用

1. 下载

git clone https://github.com/gitksqc/chatbot.git

2. 准备question_answer.csv文件

3、导入数据

python insert.py

4. 运行项目

uvicorn main:app --reload

5. 查看api

http://127.0.0.1:8000/docs
http://127.0.0.1:8000/redoc