Summarize legal depositions with AI-powered analysis
- Analyzes and summarizes deposition transcripts using Gemma 3
- Extracts key testimony, contradictions, and critical statements
- Generates executive summaries and detailed analysis reports
- Keeps all data private and secure with local processing
- Language: Python 3.8+
- LLM: Gemma 3 via Ollama
- Web Framework: Streamlit (UI), FastAPI (API backend)
- Processing: Local, entirely on your machine
- Privacy: No data leaves your system
- Python 3.8+
- Ollama installed and running
\\�ash
git clone https://github.com/kennedyraju55/deposition-summarizer.git cd deposition-summarizer
pip install -r requirements.txt
ollama pull gemma3:4b
streamlit run app.py \\
The application will open at \http://localhost:8501\
\
┌─────────────────────────────────────────────┐
│ User (Your Browser) │
└────────────────┬────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ Streamlit Frontend Interface │
└────────────────┬────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ FastAPI Backend Service │
└────────────────┬────────────────────────────┘
│
▼
┌─────────────────────────────────────────────┐
│ Local Ollama Server │
│ └─ Gemma 3 Model │
└─────────────────────────────────────────────┘
│
▼
Response → User
\\
Running legal AI locally provides critical protections:
- Attorney-Client Privilege: Your documents never leave your control
- GDPR & Data Privacy: No cloud uploads, full compliance assured
- Confidential Data: Sensitive information stays on your hardware
- Zero Latency: Instant responses without network delays
- Cost Effective: No API fees or subscription charges
- Offline Capability: Works without internet connection
Configuration can be customized in the .env\ file:
\\�nv OLLAMA_BASE_URL=http://localhost:11434 MODEL_NAME=gemma3:4b \\
Ensure Ollama is running: \ollama serve\
Pull the model: \ollama pull gemma3:4b\
- Allocate more resources to Docker (if using)
- Reduce model context length in settings
- Use a faster hardware configuration
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (\git checkout -b feature/amazing-feature)
- Commit your changes (\git commit -m 'Add amazing feature')
- Push to the branch (\git push origin feature/amazing-feature)
- Open a Pull Request
This project is licensed under the MIT License — see the LICENSE file for details.
Part of 114+ privacy-first AI tools by Nrk Raju