Skip to content

khushipy/SmartCivics

Repository files navigation

Smart Civics: AI-Powered Learning of Constitutional Law

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.


Preview

Home Page :

image

User login :

image

PDF document Query resolver :

image

Youtube & website Summarizer :

image

Chatbot Working :

image

Features

  • 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

Tech Stack

  • Languages: Python
  • Frameworks/Tools: LangChain, Streamlit, Ollama, GROQ API
  • Databases: FAISS (vector storage)
  • Libraries: Hugging Face Transformers, Llama 3
  • Deployment: Streamlit Cloud

Project Structure


⚙️ Installation & Usage

# 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

Objectives

  • 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

Advantages

  • 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

Future Scope

  • 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

About

AI Powered learning of Constitutional Laws, includes ChatBot for legal assisstance and deals with Queries regarding your legal documents.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors