Skip to content

LiveQuery GPT-4: chatbot with GPT-4-powered convos & Google-powered real-time search

Notifications You must be signed in to change notification settings

potus2030/langchain_gradio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 LiveQuery GPT-4: chatbot with GPT-4-powered convos & Google-powered real-time search

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.

Conversation Example

UI

Screenshot

LangChain reasoning for the same conversation

Screenshot

Features & Roadmap 💡

  • 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

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/gpt-4-langchain-conversational-assistant.git
  1. Install the required packages:
pip install -r requirements.txt
  1. Set up your OpenAI API key as an environment variable:
export OPENAI_API_KEY="your_openai_api_key"
  1. Create a Google Programmable Search engine and copy the ID.

  2. Enable the Custom Search API in your GCP console, and create a GCP API key here.

  3. Set up the GOOGLE_CSE_ID and GCP_API_KEY environment variable:

export GOOGLE_CSE_ID="your_google_cse_id"
export GCP_API_KEY="your_gcp_api_key"

Usage

  1. Run the server:
python run_chatbot.py
  1. Open the Gradio interface in your web browser at http://127.0.0.1:7860

Contributing

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.

About

LiveQuery GPT-4: chatbot with GPT-4-powered convos & Google-powered real-time search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%