Problem
Harvey sells a legal AI assistant built on retrieval-augmented generation (RAG). Its retrieval works at three scales: 1–50 uploaded files, project "vaults" (such as a deal data room), and national corpuses of legislation, case law and regulation, up to tens of millions of long documents. The data is confidential, some of it with limited retention.
Example from the article: "What is the applicable regime to covered bonds issued before 9 July 2022 under the directive EU 2019/2062 and article 129 of the Capital Requirements Regulation (CRR)?" The query needs semantic matching, an implicit date filter, exact matches on regulation IDs, a two-part structure and jargon.
Solution in brief
Harvey says such queries must be split, with each part sent to a fitting technique (vector search, full-text match, metadata filter). Quality is steered by a three-tier evaluation: expert review, expert-labeled criteria, automated retrieval metrics. LanceDB (Lance format) keeps vectors, text, blobs and tables in one table on object storage. The talk gives no quantified results and no router details.
Questions this case answers
- How to retrieve answers from tens of millions of long specialist documents when one query combines meaning, exact identifiers and implicit date filters
- How to evaluate a retrieval system in an expert domain when the only high-quality judges are scarce and expensive
- How to serve search and offline ML workloads from one storage layer while isolating data per customer
- How to build retrieval over a corpus of tens of millions of long, domain-specific documents when queries mix semantic, keyword and filter conditions?
Tools and methods
- Query decomposition and routing — semantic, keyword and filter parts
- Hybrid retrieval with filters and re-ranking — LanceDB capability
- Three-tier evaluation — expert / criteria / metrics
- LanceDB and the Lance format — one table for blobs, embeddings and scalar data
Google or a one-time email code. No password.