The AGIent chatbot is an intelligent assistant built using Flask and OpenAI's GPT-4 and Langchain that aims to answer questions on various topics. The chatbot is equipped with multiple tools, including web search, Wolfram Alpha, Python REPL, Bash, and Wikipedia.
- Python 3.6+
- Flask
- OpenAI API key
- Google CSE ID
- Google API key
- SERPAPI API key
- Wolfram Alpha App ID
-
Clone the repository: git clone https://github.com/adityabrahmankar/langagent-chatbot.git
-
Navigate to the project directory: cd
-
Install the required python packages: pip install -r requirements.txt
-
Setup required environment variables : export OPENAI_API_KEY="your_openai_api_key" export GOOGLE_CSE_ID="your_google_cse_id" export GOOGLE_API_KEY="your_google_api_key" export SERPAPI_API_KEY="your_serpapi_api_key" export WOLFRAM_ALPHA_APPID="your_wolfram_alpha_appid"
-
Start the Flask application: python main.py
-
Open your web browser and navigate to
http://0.0.0.0:8080/to access the chatbot.
- Fork the project.
- Create a new branch for your feature (
git checkout -b feature/your-feature-name). - Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin feature/your-feature-name). - Create a new pull request.
This project is licensed under the MIT License.