Harvey Builds Enterprise-Grade RAG Systems for Legal and Professional Services Using LanceDB and Postgres
Deploying enterprise RAG for legal and professional services requires solving for sparse vs. dense retrieval trade-offs, performance and accuracy at massive scale, complex domain-specific data structures, and strict data privacy requirements that prevent sensitive client documents from leaving customer-controlled environments.
Harvey now serves users in 45 countries, and its PwC Tax AI collaboration produced a system 91% preferred over off-the-shelf ChatGPT, bringing highly accurate answers to hundreds of professional service firms worldwide.
Frequently asked questions
What did this team achieve with this AI workflow?
Harvey now serves users in 45 countries, and its PwC Tax AI collaboration produced a system 91% preferred over off-the-shelf ChatGPT, bringing highly accurate answers to hundreds of professional service firms worldwide.
What tools did this team use?
LanceDB Enterprise, Postgres, PGVector.
What results were reported?
Tax AI preference over ChatGPT: 91%; Postgres PGVector query latency at 500K embeddings: <2s P50; LanceDB query latency at 15M rows with metadata filtering: <2s P50; Countries served: 45 countries (source-reported, not independently verified).
How is this legal document review AI workflow structured?
Multi-source document ingestion → Semantic embedding generation → Vector database indexing and storage → LLM enrichment via retrieval → Domain expert feedback and model tuning.