This project is a simple implementation of an Agentic AI system built using LangChain and Google Gemini API. The idea behind this project is to create an AI agent that does not just answer questions directly, but can think step-by-step and use different tools depending on the user query.
The agent can:
- Search information from a knowledge base (RAG)
- Perform calculations
- Get current time
- Search the web for latest information
This project was done as part of our Artificial Intelligence Lab.
Unlike normal AI programs which just return answers, this system:
- Decides which tool to use
- Uses multiple tools in one query if needed
- Follows a reasoning process (like thinking → acting → observing)
-
College Knowledge Base (RAG)
- Stores information about KJSSE
- Uses FAISS for retrieval
-
Web Search
- Uses DuckDuckGo for free search
-
Calculator
- Solves basic math expressions
-
Time Tool
- Gives current date and time
- Python
- LangChain
- Google Gemini API
- FAISS
- DuckDuckGo Search
- User enters a query
- Agent understands the question
- Agent decides which tool to use
- Tool is executed
- Final answer is generated
Sometimes multiple tools are used in one query.
pip install -U langchain langchain-community langchain-google-genai faiss-cpu pandas ddgs
import os os.environ["GOOGLE_API_KEY"] = "your_api_key_here"
python Code.py