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許可證獲得許可的 - 有關詳細信息,請參見許可證文件。