CaseCite 开源法律 RAG 平台,支持私有化部署与 BYOK
开发者推出 CaseCite,一款对标 Harvey AI 的源可用(source-available)法律研究平台。该工具支持完全自托管,通过混合检索(语义+BM25)实现文档问答与案例研究,并采用 BYOK 模式确保数据隐私,无遥测数据上传。
报道正文
本文目录3 个章节
CaseCite — Private Legal RAG
CaseCite is a source-available, self-hosted legal research platform. Upload your firm's documents, ask questions, and research cases & judges — on infrastructure you control. Documents, the search index and chat history are stored on your own servers. AI features send your questions and the relevant document text to the AI providers you configure, under your own API keys (BYOK); nothing is sent to the CaseCite maintainers, and there is no telemetry. See What leaves your infrastructure.
What it does
Eight tools behind one login, all reading from the same document corpus.
Research (/research) | Chat over your firm's documents — semantic retrieval with keyword (BM25) rescoring of the candidates, and inline citations back to the source. |
Documents (/documents) | Upload, index, and organize your corpus. Import from Google Drive, OneDrive, Box, Dropbox, iManage, NetDocuments, Filevine, or Clio — OAuth sync, or a file picker where OAuth verification isn't needed. |
Contracts (/contracts) | Full contract review pipeline: analyze an indexed contract or pasted text, chat with a single contract, compare 2–4 contracts clause-by-clause against a baseline, and export a redline, a draft, or the analysis itself. |
Drafting (/drafting) | Draft a document grounded in up to four documents you pick from the Knowledge Base, with server-side text extraction and PDF conversion. Set a target length for long documents (30-page agreements): you review a section plan first, then every section is drafted in its own context window against the full references and the whole is reconciled. Revisions to long drafts are scoped to the sections they touch. |
Case view (/case/:id) | Open a CourtListener opinion and chat with it directly. |
Authority map (/case-citations) | Map the authorities cited across documents you select. |
Judge intel (/judge-intel) | Judge analytics from CourtListener. |
Legal tools (/tools) | Case lookup, citation check (a scan of citing opinions for negative-treatment language — not a Shepard's/KeyCite substitute), precedents, dockets, oral arguments, and case-law trends. |
Practice profile. Nothing about any practice area is baked into the product. You state what you practice, CaseCite drafts a profile of what matters in that practice, and you edit and own it (saved via Settings). It then rides along with every review, redline, and draft as standing context.
Every AI-generated answer, analysis and draft carries a notice to verify it against the source documents and current law before relying on it. CaseCite is a research aid, not a substitute for a lawyer's judgment or for a citator.
What leaves your infrastructure
Documents, the vector index, chat history and analyses are stored only on your deployment. Using the AI features transmits content to third parties you choose:
- Uploading a document sends its text to the embeddings provider (OpenAI by default; Voyage or Cohere if configured).
- Asking a question, analysing or drafting sends the question and the relevant document text to the LLM provider (OpenAI, Anthropic or Gemini).
- Case-law tools send search queries and citations to CourtListener.
To keep document text entirely on your network, run both models yourself: set
OPENAI_BASE_URL (chat) and EMBEDDING_BASE_URL (embeddings) to
OpenAI-compatible servers you host. Setting only the first still sends
document text to OpenAI for embedding. The full list of outbound data flows,
and how to restrict them, is in docs/subprocessors.md.
License & use
CaseCite is licensed under the Elastic License 2.0 (LICENSE). In plain terms:
- ✅ Free to self-host for your firm's internal use.
- ✅ Free to modify for your own deployment.
- ❌ Not permitted to offer CaseCite to third parties as a hosted/managed service.
- ❌ Not permitted to alter or remove licensing or copyright notices.
For paid private installs, support contracts, or hosted-SaaS licensing, contact the maintainer, @thomasunise, through GitHub. See SUPPORT.md.
"Source-available," not OSI "open source." See LICENSE for the full terms.
(注:更多技术实现细节与完整 API 文档请查阅原项目 README)