Aura Smart Assistant is an AI-powered conversational assistant designed to engage in meaningful, context-aware interactions with users. Built using LangChain, VaderSentiment, and GroQ, Aura can respond to text-based queries and provide insightful answers in real-time.
Whether you're seeking quick information, exploring ideas, or having a casual chat, Aura understands and generates context-aware responses tailored to your needs. It uses sentiment analysis for emotionally intelligent replies and leverages GroQ's powerful backend for fast, reliable, and rich responses.
Aura, your friendly assistant, is here to chat and answer your questions! 👇🏻
I developed Aura to merge my passion for conversational AI with my desire to create highly responsive applications. Here’s a snapshot of my journey:
-
Inspiration:
Inspired by the need for smarter, faster AI assistants, I wanted to create an assistant that not only responds accurately but also adapts its tone based on your sentiment. -
Why I Made It:
Aura was built to provide instant answers with a personalized touch. By integrating Groq Chat with LangChain and using sentiment analysis, I aimed to deliver fast responses that feel both human and efficient. -
Challenges Faced:
- API & Environment Management: Handling API keys securely with Streamlit’s secrets management and dotenv.
- Conversational Memory: Implementing session-based conversation history for continuous dialogue.
- Dynamic UI: Creating an engaging UI with animations and custom CSS for a smooth chat experience.
-
What I Learned:
- Mastery of Streamlit for interactive web apps.
- Leveraging LangChain and Groq Chat for building conversational agents.
- Integrating sentiment analysis using VADER to tailor responses.
- Best practices for session management and responsive design.
Every step of this project has enriched my understanding of AI-powered conversations and reinforced my commitment to creating user-friendly solutions.
- Features
- How It Works
- Installation
- Usage
- Technologies Used
- Results
- Directory Structure
- Future Enhancements
- Contributing
- License
- Contact
-
Context-Aware Conversations: Responds to a wide range of questions with personalized, instant answers.
-
Sentiment Analysis: Analyzes the sentiment of user inputs using VaderSentiment to provide tone-appropriate responses.
-
Real-time Responses: Powered by GroQ API, ensuring a fast response time.
-
Streamlit Interface: Interactive and user-friendly interface for seamless interaction with Aura.
-
Temporary Memory: Remembers user inputs (such as name or preferences) temporarily during a session, so Aura can provide more personalized responses. Once the tab is refreshed, all memory is cleared to protect privacy.
-
User Input: The user types a message or question into the chat interface.
-
Sentiment Analysis: The text is processed by VaderSentiment to detect the sentiment and adjust the tone of Aura's response accordingly.
-
GroQ API: The input is sent to the GroQ API, which handles intelligent query answering and provides a context-aware response.
-
Response: Aura generates an instant response, displayed to the user through the Streamlit interface.
-
Clone the repository:
git clone https://github.com/hk-kumawat/Aura-Smart-Assistant.git cd Aura-Smart-Assistant
-
Create & Activate a Virtual Environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Required Packages:
pip install -r requirements.txt
-
Set Up Your API Key:
- Create a
.env
file or use Streamlit's secrets management. - For Streamlit, create a
.streamlit/secrets.toml
file and add:[GROQ] GROQ_API_KEY = "your_groq_api_key_here"
- Alternatively, set the environment variable as needed.
- Create a
Start the smart assistant with:
Streamlight run app.py
Features include:
- Conversational Interface: Chat with Aura by typing your questions.
- Sentiment-Based Responses: Aura adjusts its replies based on your emotional tone.
- Dynamic Conversation Memory: Enjoy continuous and coherent interactions.
-
Programming Language:
Python
-
Web Framework:
Streamlit
-
Conversational AI:
LangChain
ChatGroq
(for LLM-based chat)
-
Sentiment Analysis:
VADER SentimentIntensityAnalyzer
-
Environment Management:
python-dotenv
-
Other:
- Standard libraries like
os
,time
- Standard libraries like
The Aura Smart Assistant is able to provide meaningful, real-time answers to various types of questions. It successfully understands and responds in a contextually relevant manner based on sentiment analysis and intelligent querying through the GroQ API.
In the example above, Aura correctly analyzes the input, adjusts its tone based on sentiment, and generates an appropriate response.
hk-kumawat-aura-smart-assistant/
├── README.md # Project documentation
├── LICENSE # License information
├── app.py # Streamlit application for Aura Smart Assistant
└── requirements.txt # List of dependencies
-
Multi-turn Conversation: Enhance the assistant to remember the context over multiple interactions for deeper conversations.
-
Emotionally Intelligent Responses: Expand sentiment analysis to detect a broader range of emotions (e.g., joy, anger, surprise).
-
Real-world Integration: Integrate with external services (e.g., calendars, reminders, news, etc.) to make Aura more functional.
-
Voice Integration: Enable Aura to understand and respond via voice, making it more interactive.
Contributions make the open source community such an amazing place to learn, inspire, and create. 🙌 Any contributions you make are greatly appreciated! 😊
Have an idea to improve this project? Go ahead and fork the repo to create a pull request, or open an issue with the tag "enhancement". Don't forget to give the project a star! ⭐ Thanks again! 🙏
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/YourFeatureName
-
Commit your changes with a descriptive message.
-
Push to your branch:
git push origin feature/YourFeatureName
-
Open a Pull Request detailing your enhancements or bug fixes.
This project is licensed under the MIT License — see the LICENSE file for details.
Feel free to reach out for collaborations or questions:
💻 — Explore my projects and contributions.
🌐 — Let's connect professionally.
📧 — Send me an email for discussions and queries.
"Smart conversations start with a single question." – Anonymous