About legal-kb
A knowledge base for legal teams, designed for agents.
legal-kb is a thin, opinionated workspace on top of LlamaIndex's Index v2, the knowledge base purpose-built for the agentic retrieval era. It's also available directly on the LlamaParse Platform. The goal: make it trivial for legal teams to organize a corpus and point an agent at it.
Core concepts
Projects ↔ Indexes
Each project you create in legal-kb is mirrored 1:1 by an Index v2 in your LlamaCloud account. Delete a project here, the index goes away there. Add files here, they're parsed and ingested there.
Files
Upload contracts, briefs, court filings, memos, exhibits, case law. LlamaParse handles the document understanding so the index ends up with high-fidelity, structured chunks.
The Agent
Once your project has files, you can chat with an agent that has real tools: read a specific document, grep for exact strings, find files by name or metadata, and run index-wide hybrid search (semantic + keyword) across everything in the project.
Bring your own keys
legal-kb runs against your own LlamaCloud project and your own OpenAI or Anthropic key. Authentication is handled via WorkOS AuthKit — your credentials only ever leave the browser to reach the providers you choose.
What you'll need
- A LlamaCloud account at cloud.llamaindex.ai, with an API key and a project ID.
- An OpenAI or Anthropic API key for the chat agent.
- Your legal documents — that part is up to you.