Sahayak: Open-Source AI Legal Assistant Built to Admit Its Own Limits
A developer built Sahayak, a RAG-based AI legal assistant, as part of the Hack2Skill PromptWars hackathon to make legal information more accessible in plain language. The tool lets users ask questions about tenancy, consumer rights, or contracts, upload legal PDFs for summarization, or speak queries via voice transcription powered by Groq Whisper. Unlike typical LLM chatbots, Sahayak explicitly states when it lacks sufficient context rather than generating confident but potentially incorrect answers. The system uses ChromaDB for vector retrieval, sentence-transformers for embeddings, and a FastAPI backend, with security measures including prompt-injection resistance, file validation, rate limiting, and automated CI workflows. The project is MIT-licensed and publicly available on GitHub, with planned improvements including multi-language support and persisted chat sessions.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in