Welcome to the LiveQuery GPT-4 project! 🎉 This is a simple chatbot powered by OpenAI's GPT-4, LangChain framework, Gradio, and Google Custom Search API. It utlizes LangChain's ReAct Agent to enable GTP-4 based chat to have access to live Google search results.
- GPT-4 powered chatbot with LangChain framework 🤖
- Conversation history tracking with memory 📜
- Client Supplied API Key 🔑
- Google Custom Search API integration for real-time and topic-specific information 🔍
- Easy-to-use Gradio interface for user interaction 👩💻
- Customizable agent chain with integrated search tools 🛠️
- Add more tools to the agent chain
- Implement user authentication for API key management
- Integrate with popular messaging platforms
- Clone this repository:
git clone https://github.com/yourusername/gpt-4-langchain-conversational-assistant.git
- Install the required packages:
pip install -r requirements.txt
-
Create a Google Programmable Search engine and copy the ID.
-
Enable the Custom Search API in your GCP console, and create a GCP API key here.
-
Create a
.env
file with all environment variables needed:
OPENAI_API_KEY="your_openai_api_key"
GOOGLE_CSE_ID="your_google_programable_search_id"
GOOGLE_API_KEY="your_gcp_api_key"
- Run the server:
python run_chatbot.py
- Open the Gradio interface in your web browser at http://127.0.0.1:7860
We would love for you to contribute to this project! 🤗 If you have any ideas, suggestions, or improvements, please feel free to submit a pull request or open an issue.