Smart Civics is an AI-powered platform designed to make constitutional law and civic education more accessible, engaging, and practical. By leveraging Retrieval-Augmented Generation (RAG), Conversational AI, and summarization tools, the system simplifies complex legal concepts into easy-to-understand modules, empowering students, professionals, and citizens.
-
Conversational AI Chatbot
- Built using LangChain, Llama 3, and GROQ API
- Provides accurate, context-aware answers to constitutional queries
-
Retrieval-Augmented Generation (RAG)
- Efficient legal document retrieval with FAISS vector database
- Context-sensitive responses with document grounding
-
Summarization Tools
- Summarizes legal documents, YouTube videos, and websites into concise insights
- Handles complex legal language with customized NLP pipelines
-
Scalable & Accessible
- Runs via Streamlit app for web-based interaction
- Cross-platform support for education and research
- Languages: Python
- Frameworks/Tools: LangChain, Streamlit, Ollama, GROQ API
- Databases: FAISS (vector storage)
- Libraries: Hugging Face Transformers, Llama 3
- Deployment: Streamlit Cloud
# Clone the repository
git clone https://github.com/yourusername/smartcivics.git
cd smartcivics
# Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Run the Streamlit app
streamlit run app.py- Enhance civic literacy through AI-powered tools
- Simplify legal texts into understandable formats
- Provide real-time query resolution using RAG
- Democratize access to constitutional education
- Foster gamified, adaptive learning experiences
- Democratizes legal knowledge – accessible for students, professionals, and citizens
- Real-time answers & summaries of documents, videos, and web pages
- Scalable & customizable for multiple domains of law
- Cost-effective legal learning alternative
- Interactive & engaging with gamification features
- Expand to other legal domains (IP, corporate, international law)
- Integration with legal databases (LexisNexis, Westlaw)
- Voice-based interaction for accessibility
- Blockchain integration for legal document verification
Personalized AI legal assistant for customized learning
Author ❤️ Khushi Pal