This project builds a cognitive AI agent capable of:
- Conversational interaction with memory,
- Using external tools (e.g., Wikipedia search, Time retrieval),
- Reasoning over knowledge and chaining multiple steps,
- Retrieving external knowledge using RAG techniques.
The design is modular and extensible for various intelligent agent applications.
- Conversational AI with context memory
- Tool integration and execution
- Structured prompt templates for controlled behavior
- Chain-of-Thought and multi-step reasoning
- Retrieval-Augmented Generation (RAG) modules
- Model-agnostic (OpenAI, custom LLMs, etc.)
- Modular and extensible folder structure
-
Clone the repository:
git clone <repository_url> cd <repository_name>
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # Linux/macOS venv\Scripts\activate # Windows
-
Install the dependencies:
pip install -r requirements.txt
-
Set environment variables:
Create a.envfile and add your API keys:OPENAI_API_KEY=your-openai-api-key -
Run the application:
python main.py
- Python 3.9+
- LangChain
- OpenAI API
- Wikipedia API
- Custom Tools
- Retrieval-Augmented Generation (RAG)
- Large Language models (LLM)
- LangChain Documentation
- OpenAI API Documentation
- Wikipedia Python Library
- AI with Brandon - Cognitive Agents Tutorial (YouTube)