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
- Set up your OpenAI API key as an environment variable:
export OPENAI_API_KEY="your_openai_api_key"
-
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.
-
Set up the
GOOGLE_CSE_ID
andGCP_API_KEY
environment variable:
export GOOGLE_CSE_ID="your_google_cse_id"
export GCP_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.