Botato is an intelligent AI assistant built using LangGraph and LangChain, designed to provide accurate and helpful responses by leveraging web search and Wikipedia knowledge. The agent maintains a conversational flow while ensuring information accuracy and proper source attribution.
- Web Search Integration: Powered by Tavily Search API for real-time web information
- Wikipedia Knowledge: Direct access to Wikipedia articles for factual information
- Conversational Memory: Maintains context throughout the conversation
- Error Handling: Robust error management and logging system
- Modular Architecture: Built with LangGraph for flexible and maintainable code structure
- Python 3.8+
- OpenAI API key
- Tavily API key
- Clone the repository:
git clone https://github.com/ramiyappan/Botato.git
cd Botato- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
Create a
.envfile in the root directory with:
OPENAI_API_KEY=your_openai_api_key
TAVILY_API_KEY=your_tavily_api_key
from agent import agent_graph
# Initialize the agent
graph = agent_graph()
# Ask a question
question = "What is the capital of France?"
messages = [HumanMessage(content=question)]
response = graph.invoke({"messages": messages})
# Get the response
print(response['messages'][-1].content).
├── app.py # Streamlit Frontend app
├── agent.py # Main agent implementation
├── system_prompt.txt # System instructions for the agent
├── notebooks/ # Jupyter notebooks for development
├── utils/ # Utility functions
├── logger.py # Setup logging
├── logs/ # Log files
└── venv/ # Virtual environment
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.