Skip to content

Agent Binod (v.1.0.0) is a powerful, feature-rich AI assistant built with LangChain that demonstrates modern AI agent capabilities. Named after the legendary "Binod" meme, this agent brings intelligence, versatility, and a touch of humor to your AI learning journey.

Notifications You must be signed in to change notification settings

farhapartex/agent-binod-008

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– Agent Binod v1.0.0

A Comprehensive LangChain AI Agent for Learning and Practical Applications

Agent Binod is a powerful, feature-rich AI assistant built with LangChain that demonstrates modern AI agent capabilities. Named after the legendary "Binod" meme, this agent brings intelligence, versatility, and a touch of humor to your AI learning journey.

โœจ What is Agent Binod?

Agent Binod is a comprehensive LangChain-powered AI agent that showcases the full spectrum of modern AI capabilities:

  • ๐ŸŒค๏ธ Real-time Weather Information - Get current weather for any city worldwide
  • ๐Ÿงฎ Smart Calculator - Perform complex mathematical calculations
  • ๐Ÿ” Web Search - Search the internet for current information
  • ๐Ÿ“š Wikipedia Integration - Access detailed encyclopedia information
  • ๐Ÿง  Knowledge Base Search - Semantic search through LangChain documentation
  • ๐ŸŽฏ Expert Analysis - Get specialized responses from science, history, and technology experts
  • ๐Ÿ“– Learning Plans - Generate comprehensive study plans for any topic
  • ๐Ÿ’ก Topic Analysis - Get summaries and thought-provoking questions simultaneously
  • ๐Ÿ“Š CSV Data Analysis - Load, analyze, and get insights from CSV files

๐Ÿ› ๏ธ Setup Instructions

Prerequisites

  • Python 3.8 or higher
  • OpenAI API key
  • OpenWeatherMap API key (optional for weather features)

1. Clone or Download

git clone https://github.com/farhapartex/agent-binod-008
cd agent-binod

2. Install Dependencies (without docker)

pip install -r requirements.txt
source venv/bin/activate

3. Set Up Environment Variables

Create a .env file in the project root:

OPENAI_API_KEY=your_openai_api_key_here
WEATHER_API_KEY=your_openweathermap_api_key_here

Getting API Keys:

OpenAI API Key:

  1. Visit OpenAI Platform

OpenWeatherMap API Key (Optional):

  1. Visit OpenWeatherMap
  2. Note: Without this key, weather tool will use mock data

4. Project Structure

agent-binod/
โ”œโ”€โ”€ agent
โ”‚   โ”œโ”€โ”€ __init__.py
|   โ”œโ”€โ”€ core.py           # Main file which have agent details
โ”œโ”€โ”€ agent_libs/
โ”‚   โ”œโ”€โ”€ tools.py          # Calculator and custom output parser
โ”‚   โ””โ”€โ”€ weather.py        # Weather tool implementation
โ”œโ”€โ”€ .dockerignore         # docker ignore items file
โ”œโ”€โ”€ .env                  # Environment variables
โ”œโ”€โ”€ .gitignore            # git ignore items file
โ”œโ”€โ”€ Dockerfile            # Main dockerfile file
โ”œโ”€โ”€ requirements.txt      # Dependencies
โ”œโ”€โ”€ main.py
โ””โ”€โ”€ README.md            # This file

๐ŸŽฎ How to Use Agent Binod

Quick Start (without docker)

python main.py

Quick Start (with docker)

docker build -t agent-binod:latest . # one time build
docker run -it --rm --env-file .env agent-binod:latest

Interactive Commands

Once running, you can use these special commands:

  • quit - Exit the agent
  • demo - Run comprehensive feature demonstration
  • memory - View conversation history

Example Conversations

Vector search

If you want to feed agent with your own data, you can mention any pdf file in .env file. The pdf file will be takes automatically during first loading. That's it. Next time you will ask anything, Agent Binod will first look at vector db, if not find any resource then will go for other tools. 

๐Ÿ“Š CSV Data Analysis

You: Load the CSV file at /home/user/data/sales.csv

Agent: โœ… CSV Loaded Successfully!
๐Ÿ“ File: sales.csv
๐Ÿ“Š Shape: 1,000 rows ร— 8 columns
๐Ÿ“‹ Columns: date, product, sales, region, price...
๐Ÿ”ง Delimiter: ',' | Encoding: utf-8

You: Do a general analysis of the data

Agent: ๐Ÿ“ˆ General Data Analysis
- Total Records: 1,000
- Numeric Columns: 3
- Categorical Columns: 4
- Missing Data: 25 cells
- Complete Rows: 975 (97.5%)
...

You: Show correlation analysis

Agent: ๐Ÿ”— Correlation Analysis
Strong Correlations (|r| > 0.7):
- sales โ†” price: 0.823 (positive)
- region โ†” sales: -0.745 (negative)
...

๐ŸŒค๏ธ Weather Queries

You: What's the weather in London?
Agent: ๐ŸŒค๏ธ Weather for London
Current: 15.3ยฐC (feels like 14.1ยฐC)
Condition: Light Rain
Humidity: 78% | Wind: 4.2 m/s
...

๐Ÿงฎ Calculations

You: Calculate the area of a circle with radius 7.5
Agent: โœ… Result: 3.14159 * 7.5 * 7.5 = 176.71

๐ŸŽฏ Expert Analysis

You: Explain photosynthesis scientifically
Agent: *Uses science expert chain*
As a science expert, photosynthesis is the complex biochemical process...

๐Ÿ“– Learning Plans

You: I want to learn machine learning completely
Agent: ๐Ÿ“š Learning Plan for Machine Learning

๐Ÿ“ Summary:
Machine learning is a subset of artificial intelligence...

โ“ Key Questions to Explore:
1. What are the different types of ML algorithms?
2. How do neural networks learn from data?
3. What are common real-world applications?

๐ŸŽฏ Next Steps:
1. Start with Python and key libraries (NumPy, Pandas, Scikit-learn)
2. Take an online course covering supervised/unsupervised learning
3. Practice with real datasets on Kaggle

Advanced Features

Chain Demonstrations

# Run individual chain demos
agent.run_simple_chain("artificial intelligence")
agent.run_parallel_chain("quantum computing")
agent.run_sequential_chain("blockchain")
agent.run_router_chain("How does DNA work?")

Vector Search

# Search internal knowledge base
agent.vector_search_demo("What are LangChain agents?")

๐Ÿ”ง Technical Features

Modern LangChain Implementation

  • LCEL (LangChain Expression Language) with pipe operators
  • Tool-calling agents with automatic tool selection
  • Vector stores with semantic search capabilities
  • Memory management for conversation context
  • Multiple chain types for different use cases

Chain Types Demonstrated

  1. Simple Chain - Basic prompt โ†’ LLM โ†’ response
  2. Structured Chain - Parsed output with metadata
  3. Parallel Chain - Simultaneous processing of multiple tasks
  4. Sequential Chain - Multi-step workflows
  5. Routing Chain - Intelligent expert selection

Tools Available

Tool Description Example Usage
Weather Real-time weather data "Weather in Tokyo?"
Calculator Mathematical calculations "Calculate 15 * 23 + 100"
Search Internet search "Recent news about AI"
Wikipedia Encyclopedia lookup "Tell me about Python language"
Knowledge Search LangChain documentation "What are agents in LangChain?"
Expert Analysis Specialized expert responses "Explain quantum physics scientifically"
Learning Plan Complete study plans "I want to learn blockchain"
Topic Analysis Summary + questions "Analyze machine learning"

๐ŸŽฏ Use Cases

Educational

  • Learn LangChain concepts through hands-on experience
  • Understand modern AI agent architecture
  • Study prompt engineering and chain composition

Development

  • Template for building production AI agents
  • Reference implementation for LangChain best practices
  • Starting point for custom AI applications

Daily Assistant

  • Get weather updates for travel planning
  • Perform quick calculations and research
  • Generate learning plans for new topics
  • Get expert-level explanations on various subjects

๐Ÿ“ License

This project is open source and available under the MIT License.

๐Ÿ™ Acknowledgments

  • Built with LangChain
  • Weather data from OpenWeatherMap
  • Search capabilities powered by DuckDuckGo
  • Encyclopedia data from Wikipedia

Happy Learning with Agent Binod! ๐Ÿค–โœจ

"Just like the legendary Binod comment that took the internet by storm, Agent Binod is here to make AI learning simple, powerful, and memorable!"

About

Agent Binod (v.1.0.0) is a powerful, feature-rich AI assistant built with LangChain that demonstrates modern AI agent capabilities. Named after the legendary "Binod" meme, this agent brings intelligence, versatility, and a touch of humor to your AI learning journey.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published