An AI-powered personal copilot designed to bring conversational AI, intelligent agents, web search, document understanding and multiple AI workflows into a single web application.
- ๐ฌ AI Chat Assistant โ Ask questions and receive AI-generated responses.
- ๐ Web Search โ Search the web for relevant information using DuckDuckGo.
- ๐ Current Time Tool โ Provides the current date and time through an AI tool.
- ๐ PDF Upload & Summarization โ Upload PDF documents and work with their content.
- ๐ง PDF Reader / RAG Mode โ Retrieve relevant information from uploaded documents.
- ๐ค Autonomous Agent Mode โ Allows the AI agent to select appropriate tools for a task.
- ๐ฅ CrewAI Research Crew โ Uses multiple AI agents for research-oriented workflows.
- โ๏ธ Cloud LLM Support โ Supports cloud-based LLM access through OpenRouter.
- ๐ป Local LLM Support โ Supports local language models through Ollama.
- ๐๏ธ Multiple Brain Modes โ Different AI modes for different types of tasks.
AI-Copilot-Assistant/
โ
โโโ backend/
โ โโโ __init__.py
โ โโโ agent.py
โ โโโ crew.py
โ โโโ engine.py
โ โโโ llm_config.py
โ โโโ main.py
โ
โโโ frontend/
โ โโโ src/
โ โ โโโ App.jsx
โ โ โโโ firebase.js
โ โ โโโ index.css
โ โ โโโ main.jsx
โ โโโ index.html
โ โโโ package.json
โ โโโ package-lock.json
โ โโโ postcss.config.js
โ โโโ tailwind.config.js
โ โโโ vite.config.js
โ
โโโ Docs/
โ โโโ crewAIDocs.txt
โ
โโโ .env.example
โโโ .gitignore
โโโ GUIDE.md
โโโ README.md
โโโ agent-demo.png
โโโ package-lock.json
โโโ requirements.txt
โโโ setup.sh
โโโ visualize_db.py
- Python
- FastAPI
- LangChain
- LangChain Community
- CrewAI
- Ollama
- Gemma
- OpenRouter
- LangChain Agents
- DuckDuckGo Search
- PDF Processing
- Retrieval-Augmented Generation (RAG)
- Chroma Vector Database
- React.js
- JavaScript
- HTML
- CSS
- Vite
- Node.js
- Firebase
The application can process uploaded PDF documents and retrieve relevant information to answer questions based on their content.
Upload PDF
โ
Process Document
โ
Create Embeddings
โ
Store in Vector Database
โ
Retrieve Relevant Content
โ
Generate AI Response
The Autonomous Agent can select and use available tools based on the user's query.
User Query
โ
AI Agent
โ
Select Appropriate Tool
โโโ Web Search
โโโ Current Time
โ
Generate Response
The Research Crew uses multiple AI agents to perform research-oriented tasks and combine their outputs into a final response.
The application supports both local and cloud-based language models.
Ollama can be used to run supported models locally.
Application
โ
LangChain
โ
Ollama
โ
Local Gemma Model
OpenRouter provides access to cloud-based models through an OpenAI-compatible API.
Application
โ
LangChain / OpenAI-compatible API
โ
OpenRouter
โ
Selected LLM
git clone https://github.com/anmolshr56/AI-Copilot-Assistant.git
cd AI-Copilot-Assistant
Windows:
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
cd frontend
npm install
cd ..
Create a .env file in the project root.
Example:
OPENROUTER_API_KEY=your_openrouter_api_key
Never upload your real API key or other secrets to GitHub.
The .env file should remain ignored by Git.
For local LLM support, install Ollama and download the required model.
Example:
ollama pull gemma2:2b
Make sure Ollama is running before using local model functionality.
From the project root:
python -m backend.main
Open another terminal:
cd frontend
npm run dev
Open the local URL shown by the frontend development server.
โโโโโโโโโโโโโโโโโโโโโ
โ User โ
โโโโโโโโโโโฌโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโ
โ AI Copilot UI โ
โโโโโโโโโโโฌโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโ
โ Backend API โ
โโโโโโโโโโโฌโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโโโโโโโ
โ Ollama โ โOpenRouterโ โ Agents โ
โโโโโโโโโโโ โโโโโโโโโโโโ โโโโโโฌโโโโโโ
โ
โโโโโโโโโโโโโดโโโโโโโโโโโโ
โ โ
โผ โผ
Web Search PDF / RAG
This project demonstrates practical implementation of:
- LLM-powered application development
- LangChain workflows
- AI agent architecture
- Tool calling
- Web search integration
- Retrieval-Augmented Generation (RAG)
- PDF document processing
- Local LLM deployment with Ollama
- Cloud LLM integration using OpenRouter
- Multi-agent workflows using CrewAI
- Backend and frontend integration
- ๐ User authentication
- ๐พ Persistent chat history
- ๐๏ธ Voice input and output
- ๐ Support for additional document formats
- โก Streaming AI responses
- ๐งฉ More specialized AI agents
- ๐ Production deployment
- ๐ Usage analytics
Anmol Sharma
B.Tech CSE Student
GitHub: https://github.com/anmolshr56
The AI Copilot can operate in autonomous agent mode and perform web searches to retrieve up-to-date information.
