This project is a Python-powered virtual assistant that combines Natural Language Processing (NLP) and Large Language Models (LLMs) to provide intelligent, context-aware conversational support and task execution.
Built as a college/final-year capstone, the assistant can understand spoken or typed input, generate responses using LLMs, and perform actions like web search, reminders, weather lookup, and more.
- Natural Language Conversation: Supports voice/text input using speech recognition and text-to-speech.
- LLM Integration: Utilizes models like GPT‑4, LLaMA, or OpenAI API for response generation.
| Component | Details |
|---|---|
| Programming Language | Python 3.x |
| Speech-to-Text | SpeechRecognition |
| Text-to-Speech | pyttsx3 or gTTS |
| NLP & Intent Logic | NLTK, spaCy or custom classifier |
| LLM Backend | Hugging Face model |
| Others | datetime, webbrowser, os, etc. |
-
Clone the repository bash git clone https://github.com/VASU-GATTE/Virtual_Assistant_using_Python-NLP_and_LLMs.git cd Virtual_Assistant_using_Python-NLP_and_LLMs
-
(Optional) Set up Python virtual environment
python3 -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Configure API keys
-
Create a
.envfile or updateconfig.pywith keys such as:OPENAI_API_KEYWEATHER_API_KEY- Optional: other service keys
-
To launch the assistant:
python mod.pyor
python mod.pyThen:
- Use voice input (speak when prompted) or type text commands
- The assistant will process your query via NLP/LLM and respond or act
- Sure! Here's the updated section with example commands tailored to your college context:
- "What is the name of my college?"
- "Where is DVR & Dr. HS MIC College of Technology located?"
- "Who is the principal of my college?"
- "Tell me about the CSE department in my college"
- "When does the next semester start?"
- "What are the upcoming college events?"
- "Show me the academic calendar"
- "Open the college website"
Virtual_Assistant_py/
├── assistant.py # Main entry point
├── modules/ # Auxiliary modules (weather, reminders, web search, etc.)
├── nlp/ # NLP & intent classification code
├── data/
│ └── history.jsonl # Chat logs
├── requirements.txt
└── README.md
This is an individual academic project. You're welcome to suggest enhancements via GitHub issues or submit pull requests for improvements.
Please specify your license (e.g. MIT, GPL) or note "All Rights Reserved".
Questions or feedback?
- GitHub: VASU‑GATTE
- Email / LinkedIn: vasugatte9@gmail.com
Inspired by many open-source Python virtual assistants that blend speech-processing and web APIs such as the work by AkshatShokeen, ashutoshkrris, and others working in Python + NLP assistants (github.com, toptal.com, github.com, github.com, github.com).