- Nyaya Mitra Citizen Protection Framework:
app/core/anti_exploitation/scam_detector.pyfor scanning documents/contracts for predatory practices, red flags, and fee sanity checks.- Emergency legal aid hotlines (NALSA/DLSA) with automated prompt-based urgency detection.
- Interactive citizen rights and protections guidance.
- Modern React + Tauri Desktop UI:
- Complete Vite-based frontend in
fe/featuring React, TypeScript, and TailwindCSS v4. - Cross-platform desktop integration with Tauri (
src-tauri). - Implemented interactive screens for Chat, Document Library, Guided Flows, Panic Mode (emergency alerts), Anti-Exploitation analysis, and Settings.
- Complete Vite-based frontend in
- Multilingual Support & Localization (l10n):
- Localized system components and voice interfaces to support regional languages.
- Voice Engine (STT/TTS):
- Fully local Speech-to-Text (STT) and Text-to-Speech (TTS) integration.
- Second Opinion Evaluator:
- Independent assessment engine for RAG outputs to check grounding and correctness.
- Templates & Case Tracking:
- Document templates generator and legal case progress tracker.
- Shifted architecture to a decoupled Frontend-Backend model (FastAPI API server + Tauri React application).
- Configured default settings optimized for low-resource environments (e.g. TinyLlama, lightweight embedding models).
- Resolved hardware device allocation options (
auto-> CPU/CUDA fallback).
- Complete repository audit and cleanup (Phase 0)
- CLEANUP_REPORT.md documenting every file's disposition
- .gitignore with Python/Windows/IDE patterns
- pyproject.toml (Poetry) replacing requirements.txt
- Clean architecture layout under
app/:app/api/— FastAPI local-only serviceapp/core/ingestion/— Document loader (PDF, DOCX, HTML, EPUB, images, text)app/core/preprocessing/— TextCleaner + LegalChunkerapp/core/embeddings/— SentenceTransformer embedding modelapp/core/retrieval/— VectorStore (Chroma/FAISS) + HybridSearchapp/core/llm/— llama-cpp-python local LLM runnerapp/core/rag/— RAG orchestrator with prompt engineeringapp/domain/— Legal entities (Act, Section, Judgment, Clause)app/infra/— Configuration, logging, storage, cryptoapp/di/— Dependency injection containerapp/ui/— PyQt6 desktop UI (main window with chat/sources)app/main.py— CLI entry point (GUI or API mode)
app/core/training/— Fine-tuning stub for LoRA/QLoRA- Initial test suite: test_cleaner, test_chunker, test_loader, test_embeddings
scripts/anddata/skeleton directories
- Refactored from flat Streamlit/Ollama monolith to modular clean architecture
- Config moved from plain Python to pydantic-settings
- cli.py, simple_cli.py, ultra_simple.py (redundant CLIs)
- ENHANCED_FEATURES.md, FASTAPI_DOCS.md, SETUP_GUIDE.md (absorbed into docs/)
- requirements.txt (replaced by pyproject.toml)
- pycache/ (compiled bytecode)
- Tracked Arabic PDF (should not have been committed)