This is a Python-based AI chat system built with LangChain, supporting LLMs like OpenAI and Anthropic. It fetches information from tools like Wikipedia and DuckDuckGo and can be configured via .env
.
- Query LLMs using LangChain (OpenAI/Anthropic)
- Use tools like DuckDuckGo and Wikipedia
- Modular tool integration
- Environment config via
.env
AI-chat-box/ βββ main.py # Main entry point for the app βββ tool.py # Tool functions for external search or processing βββ requirments.txt # Python dependency list βββ sample.env # Template for environment config βββ documentation.txt # Full description of the system βββ README.md # Project overview (this file) βββ venv/ # Python virtual environment
-
Clone the repo
git clone <your-repo-url> cd AI-chat-box
-
Create & activate a virtual environment
python3 -m venv venv source venv/bin/activate # macOS/Linux venv\Scripts\activate # Windows
-
Install dependencies
pip install -r requirments.txt or pip3 install -r requirments.txt
4.Set up environment
Copy sample.env to .env
Add your API keys (OpenAI, Anthropic, etc.)
5.Run the application
python main.py
Dependencies:
As listed in requriments.txt:
langchain, langchain-community, langchain-openai, langchain-anthropic
wikipedia, duckduckgo-search
python-dotenv, pydantic
π¨βπ» Author Akshat Gupta