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.
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"
python run_chatbot.py
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.