RAG Powered GPT 4 Chatbot
1.0.0
用使用检索功能的一代(RAG)和OpenAI的GPT-4构建的聊天机器人彻底改变了数据互动。上传文档,创建自定义知识库,并为研究,业务运营和客户支持获得精确的上下文答案。
抹布供电的聊天机器人结合了检索和生成性AI,以帮助用户从自定义数据源访问特定信息。通过上传文档,聊天机器人可以从文件中获取最相关的数据,从而确保高准确性和最新答案。
上传文档:
创建知识库:
查询知识库:
持久数据库:
克隆存储库:
git clone https://github.com/your-username/rag-powered-gpt4-chatbot.git
cd rag-powered-gpt4-chatbot设置虚拟环境:
python -m venv ragvenv
source ragvenv/bin/activate安装依赖项:
pip install -r requirements.txt配置Azure OpenAI凭据:
config.env文件并添加以下Azure OpenAI凭据: AZURE_OPENAI_ENDPOINT= " your-azure-openai-endpoint "
AZURE_OPENAI_API_KEY= " your-azure-openai-api-key "
API_VERSION= " 2024-02-15-preview "运行应用程序:
python app.py访问应用程序:
http://localhost:8000 。上传文件:
创建知识库:
查询聊天机器人:
访问以前的数据库:
rag-powered-gpt4-chatbot/
├── app.py # Main application script
├── config.env # Configuration file for API keys
├── database/ # Folder for storing database files
├── rag_app.log # Log file for tracking application events
├── requirements.txt # Python dependencies
├── static/ # Static files like CSS
│ └── styles.css # CSS file for basic styling
├── templates/ # HTML templates for the app interface
│ └── index.html # Main page of the app
├── upload_file/ # Directory for storing uploaded files
├── utils.py # Utility functions
欢迎捐款!如果您想添加新功能或修复错误,请打开问题或提交拉请请求。
该项目是根据MIT许可证获得许可的 - 有关详细信息,请参见许可证文件。