legal-ai-assistant/frontend/chainlit.md

29 lines
1.2 KiB
Markdown

# Legal AI Assistant 🏛️⚖️
An AI-powered assistant for querying public data from the **Slovak Ministry of Justice API** (obcan.justice.sk). Ask about courts, judges, decisions, contracts, and legal proceedings — all in Slovak.
---
## What it does
- Searches courts, judges, decisions, contracts, civil and administrative proceedings
- Calls the Justice API via MCP tools and presents results clearly
- Maintains conversation history across sessions
- Streams responses token by token in real time
---
## Frontend (Chainlit)
Built with **Chainlit 2.11**, the interface provides:
- **Chat profiles** — switch between AI models (GPT, Gemini, DeepSeek, Qwen, LLaMA) directly from the UI
- **Starter prompts** — quick-access example questions on the welcome screen
- **Step tracking** — tool calls and reasoning steps are shown as collapsible steps inside each response
- **Auth** — password-protected login
- **Persistent history** — conversations are stored in PostgreSQL and resumable across sessions
- **Custom theme** — dark mode with a custom CSS and branded logo
---
> ⚠️ This assistant retrieves and presents public data only. It does not provide legal advice.