Skip to content
reaatechREAATECH

Files · Deposition Prep Summarizer for Plaintiff Litigation Paralegal

77 (1 binary, 640.9 kB total)attempt 2

README.md·2035 B·markdown
markdown
# Deposition Prep Summarizer for Plaintiff Litigation Paralegal
 
> Turn hours of deposition transcripts into concise summaries in minutes, saving paralegal time.
 
## Features
 
- PDF ingestion via unpdf
- Semantic deposition memory
- Contradiction detection
- Key fact extraction
- Cost tracking
- Session replay
 
## Architecture
 
PDF → unpdf extraction → hybrid-rag chunking → agent-memory storage → context-window-planner packing → Vercel AI SDK LLM call → llm-cost-telemetry tracking → output
 
## Tech Stack
 
- Next.js 16
- Vercel AI SDK (`ai`, `@ai-sdk/openai`, `@ai-sdk/anthropic`)
- `@reaatech/unpdf`, `@reaatech/hybrid-rag`, `@reaatech/agent-memory`, `@reaatech/context-window-planner`, `@reaatech/llm-cost-telemetry`, `@reaatech/session-replay`
- unpdf
- zod
 
## Getting Started
 
```bash
pnpm install
cp .env.example .env.local   # then fill in your keys
pnpm dev
pnpm test
pnpm typecheck
```
 
## Environment Variables
 
| Variable | Description | Default |
|---|---|---|
| `OPENAI_API_KEY` | OpenAI API key | — |
| `ANTHROPIC_API_KEY` | Anthropic API key | — |
| `LLM_PROVIDER` | Provider to use (`openai` or `anthropic`) | `openai` |
| `LLM_MODEL` | Model name for the selected provider | `gpt-5.2` |
| `COST_BUDGET_DAILY` | Daily cost budget in USD | `10.00` |
| `TELEMETRY_ENABLED` | Enable telemetry | `false` |
 
## API Routes
 
| Method | Path | Description |
|---|---|---|
| `POST` | `/api/summarize` | Upload a deposition PDF and receive a summary |
| `GET` | `/api/summarize/[id]` | Retrieve a previously generated summary |
| `GET` | `/api/health` | Health check endpoint |
 
## Provider Configuration
 
Set `LLM_PROVIDER=openai` with `LLM_MODEL=gpt-5.2` to use OpenAI, or `LLM_PROVIDER=anthropic` with `LLM_MODEL=claude-sonnet-5-20260501` to use Anthropic. The Vercel AI SDK abstracts over both providers — only one API key needs to be valid at a time.
 
## CLI
 
```bash
pnpm summarize path/to/deposition.pdf
pnpm replay <session-id>
pnpm list-traces
```
 
## License
 
MIT — see [LICENSE](./LICENSE).