Calvin describes Harvey’s legal assistant and three data scales: uploads of roughly 1 to 50 documents, larger project vaults, and country-level corpora of laws and case law. Retrieval must handle long, dense documents, specialized legal language, complex queries, and sensitive client data.
Scaling Enterprise-Grade RAG: Lessons from Legal Frontier
Speakers
Chang She, CEO and co-founder of LanceDB, and Calvin Qi, who leads a team at Harvey AI, discuss retrieval challenges and infrastructure for large-scale legal RAG, drawing on their work together.
Calvin uses a question about covered bonds under an EU directive and the CRR as an example of a query combining date constraints, legal identifiers, domain jargon, and multiple regulations. He says Harvey invests heavily in evaluation, from costly expert reviews and labeled criteria to faster metrics such as retrieval precision, recall, and checks for the right folder or section.
Harvey works with large legal corpora that can contain tens of millions of often lengthy documents, organized with help from domain experts and automation. Calvin highlights the need for reliable, low-latency retrieval and efficient ingestion and experimentation, alongside customer-specific segregation, retention controls, telemetry, and flexible search and filtering.
Chang presents LanceDB as an AI-native multimodal lakehouse built on object storage, intended to support retrieval as well as analytics, training, and preprocessing. Its API supports combinations of vector columns, full-text search, and reranking; Chang also cites GPU indexing and a record of indexing roughly three to four billion vectors in under two or three hours.
Calvin recommends studying the data and query patterns with domain experts, then building for flexibility and fast iteration. He argues that strong evaluation makes iteration more informative, while new infrastructure needs to handle multimodal data, heavier embedding workloads, diverse workloads, and growing data volumes.
Takeaways
- Map explicit and implicit query patterns with domain experts before choosing retrieval methods.
- Use evaluation at several levels: expert review for fidelity and automated metrics for faster iteration.
- Plan for both low-latency queries and the offline costs of ingestion, reingestion, and experiments.
- Treat privacy, customer segregation, and retention rules as infrastructure requirements.
- Choose data infrastructure that can support retrieval alongside analytics, training, and preprocessing.
Mentioned in this talk
Search inside this talk
What was claimed 8
- builtco-author
“starting as one of the co-authors of the pandas library”
0:14inThe Hierarchy of Needs for Training Dataset DevelopmentYouTube Verified3 sources· Talk, Web· archived
- works atEngineering Manager, leads Retrieval and Data team
“I lead one of the teams at Harvey AI.”
YouTube Verified2 sources· Talk, Web· archived
- featureHarvey: Legal AI assistant for law firms
“We're a legal AI assistant. We sell our AI product to law firms.”
YouTube Unverified1 source· Talk
- uses
“that's our motivation for designing the Lance format, around which we've built LanceDB”
8:51inThe Hierarchy of Needs for Training Dataset DevelopmentYouTube Unverified2 sources· Talk
- feature
LanceDB: Combines vector and full-text search and supports reranking“combine multiple vector columns, vector and full-text search, and then rerank on top of that”
YouTube Unverified1 source· Talk
- metric
LanceDB: Around 3–4 billion vectors in one table indexed in under 2–3 hours“our record has been around three or four billion vectors in a single table, indexed in under two or three hours”
YouTube Unverified1 source· Talk
- feature
LanceDB: Supports GPU indexing for large tables“For large tables, we support GPU indexing.”
YouTube Unverified1 source· Talk
- feature
LanceDB: Stores images, video, audio, embeddings, text, tabular, and time-series data in a single table“You can put all of that in a single table.”
YouTube Unverified1 source· Talk














