An LLM based ChatBot that allows users to ask questions and get real-time answers by searching the web using OpenAI, LangChain, and SERPAPI.
This project aims to provide a simple and intuitive interface for users to interact with a ChatBot capable of searching the web in real-time. The ChatBot leverages the power of Large Language Model (LLM), LangChain for natural language understanding and SERPAPI for fetching search results.
- Real-time web search capabilities powered by OpenAI, LangChain and SERPAPI.
- User-friendly interface built with Streamlit.
- Easy setup and configuration using environment variables for API keys.
To run the Web Surfing ChatBot locally, follow these steps:
- Clone this repository:
git clone https://github.com/yourusername/web-surfing-chatbot.git
cd web-surfing-chatbot
- Install dependencies:
pip install -r requirements.txt
- Set up API keys:
- Get an OpenAI API key
- Get an SERP API key
- Set the
OPENAI_API_KEY
andSERPAPI_API_KEY
environment variables or provide it as Input.
- Run the ChatBot:
streamlit run src/main.py
- Open the ChatBot interface in your web browser by navigating the local URL provided by Streamlit.
- Enter the keys if not setup as Env variables.
- Enter your query in the text input field.
- Press Enter to submit your query.
- View the ChatBot's response in real-time.
Contributions to the Web Surfing ChatBot project are welcome! If you have any ideas for improvements or new features, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.