newsfilter
← Interviews
AI Engineer27 min

From Filesystems to Databases — Joe Zein, Soal Labs

Joe Zein

Conference Presentation, Keynote

Core Thesis: Context as the Differentiator

  • In the AI stack for private capital, reasoning, models, tools, and skills are becoming commoditized and easily rentable, leaving data context as the only sustainable competitive edge.
  • Institutional context is defined as 20+ years of proprietary data regarding records, relationships, past decisions, and reasons for failure, which competitors cannot replicate.
  • SolLabs defines context in three tiers: raw evidence (files/transcripts), system of record (facts and resolved relationships), and derived knowledge (judgment, thesis, and learnings).
  • Differentiation relies on tribal knowledge extracted from IC memos, screening notes (specifically "no" decisions), meeting transcripts, version history in financial models, and board packs.
  • The strategic goal is to build a system of record (a single database with a consistent schema) rather than relying on fragmented file systems or generic AI "second brains."

Historical Evolution of Context Strategies

  • RAG (Retrieval Augmented Generation): Failed due to reliance on similarity-based chunking, resulting in inconsistent answers, an inability to aggregate numbers across files, and a "retrieval-only" paradigm that cannot join data dynamically.
  • MCP (Model Context Protocol): Attempted to solve context by providing live system access, but struggled with fragmented, messy, and empty data sources, leading to high token burn and missed relationships.
  • Context Wraps (2025): Proposed by Foundation Capital to capture decision traces (inputs, rules, approvals), but faces a "cold start" problem as most funds lack existing structured decision logs.
  • Personal Second Brains: Popularized via Twitter/Karpathy, these work for individuals but fail at the firm level due to a lack of shared truth, permission structures, and aggregation capabilities.
  • Generic Harnesses (End 2025): While tools like "Cloud Code" solved agent loops (planning, memory, tool calling), they lacked a single source of truth, forcing reliance on slow, costly, and inconsistent file searching.
  • Vertical Harnesses (Current Trend): The market is shifting toward industry-specific harnesses (e.g., Harvey, Legora, Broco) built on top of a defined system of record.

SolLabs Technical Architecture

  • The Pipeline: Processes terabytes of unstructured data via an eight-stage workflow: Crawl → Parse → Extract → Resolve → Load → Serve, with a human review screen at every stage.
  • System of Record Schema: The database (PostgreSQL) stores five core entities: People, Accounts (LPs/Sponsors), Deals, Industry, and Metrics/Financials.
  • Data Ingestion Strategy:
    • Historical Backfill: Processes 20-year archives nightly.
    • Intake UIs: Captures structure immediately upon document arrival to prevent future excavation.
    • Model Learning: Uses the harness to log corrections and new learnings, shifting the focus from document extraction to source data capture.
  • Model Usage Policy: Models are used only when cheaper methods fail; the system prioritizes rules, traditional NLP, and deterministic logic first.

Detailed Stage Breakdown

  • 1. Crawl & 2. Deduplication:
    • Cost: Zero model calls.
    • Exact Dedup: Uses SHA-256 hashing to identify 25–30% of duplicate files.
    • Near-Duplicate Detection: Uses MinHash + Locality Sensitive Hashing (LSH) to group similar documents and identify version chains, catching an additional 25–40%.
    • Classification: Rules-based (extension, folder path, sheet names) filter out junk (code, logos); a cheap model (e.g., Haiku 5.5) handles edge cases.
  • 3. Parsing:
    • Text-Only PDFs: Uses PyMuPDF to extract text directly without model intervention.
    • Layout-Dependent: Uses PyMuPDF + Plumber for positioning; small Vision-Language Models (VLMs) label pages or identify tables/charts.
    • OCR: Uses Destruct or Paddle OCR for scanned documents with messy layouts.
    • Excel: Skips OCR entirely; uses openpyxl to read cells, formulas, and sheet names directly.
  • 4. Extraction:
    • Cascade Strategy: Starts with structured CRM/API data; moves to spaCy (standard entities) and gliner (zero-shot custom entities); only unresolved fields reach the LLM.
    • LLM Tool Use: Forces the model to output valid JSON matching a Python class schema, ensuring consistency.
    • Provenance: Every extracted field records the source page, confidence score, and run ID; relationships are stored in joint tables linking to the schema.
  • 5. Entity Resolution (The Core Challenge):
    • Goal: Resolve 20 years of mentions into a single record per entity (handling cases like "GS" vs. "Goldman Sachs Group").
    • Step 1: Scoring & Normalization: Uses Coref3/Spacy for coreference, CleanCo for legal suffixes, NameParser for names, and StreetPost for addresses.
    • Step 2: Blocking: Filters billions of pairs using exact keys (LEI, domain) and PostgreSQL extensions (pg_trgm, pg_vector).
    • Step 3: Graph Scoring: Builds a co-occurrence graph in networkx; calculates Jaccard or Dynamic ADAR scores based on shared neighbors (weighting rare companies higher than common ones like Goldman Sachs).
    • Step 4: Statistical Matching: Uses Splink to learn match probabilities from data using Expectation Maximization, requiring no labeled training sets.
    • Step 5: Clustering & Resolution: Groups entities via connected components; resolves conflicts using a "survivorship rule" (CRM > Internal Docs > Received SIMs > Newest Value); merges are logged and reversible.

Serving and Integration

  • Hybrid Database Approach: Uses PostgreSQL as the system of record for transactions, security, and SQL fluency; graphs are computed dynamically via networkx when needed (e.g., co-occurrence scoring) and converted back to rows.
  • Domain MCP Servers: Builds specific MCP servers (deals, people, portfolio) with permission boundaries to limit tool complexity and ensure IR/Deal teams see relevant data.
  • Thin Skills Layer: Skills are simple prompt packages (e.g., "deal screen," "LP update") that read from the system of record and write proposals for human review.
  • Tool Definition: Each tool is a single SQL query with a type signature, ensuring small, consistent results that do not flood the context window.
  • Confidence Router: Automatically accepts 70% of high-confidence extractions; routes middle-tier confidence to humans; forces low-confidence items to re-extraction or tool invocation.

Key Decisions and Strategic Insights

  • Avoid Graph DBs as Primary Storage: Graph databases are unnecessary overhead; they are treated as a compute step where data is projected from relational tables.
  • Schema Over Free-Text: A fixed schema mirroring the business logic (People, Companies, Deals) is superior to open-ended knowledge graphs for long-term utility.
  • Human-in-the-Loop: Review screens at every stage are mandatory; the product value shifts from extracting documents to capturing data at the source over time.
  • Future Outlook: 2026 and beyond focus on "context" as the primary moat; AI agents will differentiate based on the quality of the structured institutional memory they possess.