# From Filesystems to Databases — Joe Zein, Soal Labs

Joe Zein, Soal Labs

AI Engineer New York 2026

[Talk page](https://ai.engineer/talks/EQHbmhPT4oY-from-filesystems-databases) · [Video](https://www.youtube.com/watch?v=EQHbmhPT4oY)

## From Filesystems to Databases

Joe Zein walks through how Soal Labs turns twenty years of private equity files into a Postgres database that AI agents can query. The hardest part is working out which documents, people and companies are actually the same while preserving the evidence behind each decision.

### What does the fund know that a model doesn’t?

[0:05](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=5s)

A managing director who worked in credit at a large fund was looking at a deal. What would he notice immediately that a less experienced analyst might miss? His answer was customer concentration. He would want to know whether too much of the business depended on too few customers.

Joe Zein and his colleagues opened a clean session with a frontier model, described the deal and asked what a credit investor should be asking. The model had no access to the firm’s data. Customer concentration was one of the first risks it raised.

Both had identified a question worth investigating. Whether concentration actually threatened this business was still open. What surprised Zein was how readily the model reproduced an instinct the director thought he had accumulated over years. Much harder to reproduce was the history of when this particular fund had worried about concentration, what it had decided, whom it knew and where it had been wrong.

Zein, co-founder of [Soal Labs](https://soallabs.com/), works with engineering teams embedded in private capital firms. His view of where to invest in software follows from that example. Firms can buy the agent interface, the model and the connectors. Even the playbooks packaged as agent skills are increasingly easy to copy. The fund’s own history is the part a competitor cannot rent.

The engineering problem is that much of that history lives in terabytes of folders, inboxes, spreadsheets and call transcripts. Giving an agent access to those files leaves it with twenty years of reconciliation work.

### What retrieval and connectors leave unresolved

[4:00](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=240s)

Early retrieval-augmented generation (RAG) systems split documents into chunks and embedded each chunk as a vector representing its meaning. At question time, the system fetched the most similar chunks and gave them to the model. This made it possible to ground an answer in a document. It also made the quality of the answer depend on which few passages won the similarity search.

In an archive full of duplicates, several versions of the same document can occupy those slots. The same question can retrieve different passages on different days. And finding the most relevant passages is a poor way to add up a figure across a thousand files. For that, you need to know which files count, which values belong together and which ones you have already counted.

The Model Context Protocol (MCP) gave agents live access to the customer relationship management system (CRM), file share and warehouse. But those systems were fragmented and often incomplete. The model ended up doing joins in its head on every request, spending tokens to rediscover relationships and sometimes missing obvious ones.

Three subsequent approaches addressed different parts of the problem.

- **Context graphs** record decision traces. Which inputs mattered? Which rule applied? Who approved an exception? Foundation Capital’s proposal appealed to Zein, but a firm starting today still needs a way to reconstruct yesterday’s decisions.
- **Personal second brains** let a model accumulate Markdown notes over time. A shared investment operation also needs permissions, consistent identities and a way to aggregate across people’s records.
- **Agent harnesses** such as Claude Code can plan, call tools, maintain memory and work across applications. Without a shared database, the agent still spends time opening files and searching for somewhere reliable to read or write a fact.

The opportunity Zein sees is to build industry-specific workflows on a shared system of record. Different funds have different histories, but enough of their work is similar that engineers can reuse much of the underlying schema.

![A timeline compares the benefits and gaps of RAG, MCP, context graphs, second brains and harnesses. It ends with industry-specific harnesses built on a system of record.](https://ai.engineer/api/talk-essay-media/e750eecbbd0f8889fded6a94e26851c3a0ff23955b06ee2960479d351e4534cc)

RAG finds passages, MCP connects systems, and a second brain remembers one person’s work. The agent still has to piece together the firm’s history on each query. Zein proposes an industry-specific harness that reads and updates a shared system of record.

### Design the database around the deals the fund passed on, too

[7:59](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=479s)

Where should a fact enter the system, and who can change it? Soal’s pipeline backfills the archive into Postgres, then runs nightly over new material. An intake interface can capture structured data as a document arrives. The agent reads the resulting records through MCP and submits proposed changes for human review.

The schema has five broad areas. **People** and **accounts** usually have a partial home in the CRM. Accounts include limited partners, sponsors, lenders and advisers. **Deals** sometimes live in a private capital CRM such as DealCloud. **Industry** classifications may come from data providers. **Metrics and financials** are often well covered by portfolio monitoring systems such as iLEVEL or Chronograph.

That last category has a particularly consequential gap. Portfolio monitoring covers the companies the fund owns. It misses the thousands of opportunities the fund examined and passed on. If you want to understand how its investors screen deals, some of the best evidence is sitting in rejection emails and screening notes.

Zein separates institutional knowledge into three tiers. The **raw evidence** is what someone wrote or said. The **system of record** contains extracted facts and relationships, with different mentions of the same person or company resolved to a common identity. **Derived knowledge** captures the firm’s judgment, processes and preferences. Each tier should remain traceable to the evidence below it.

Even within judgment, it pays to distinguish a thesis a partner asserts, a rule the firm deliberately adopts and a lesson inferred from past deals. An inference can be graded against its supporting evidence. Treating all three alike would make an observed pattern look like firm policy.

Investment frameworks and interviews help fill gaps, but much of the judgment is already in the files. An investment committee (IC) memo records the thesis and named risks. A meeting transcript, when one exists, preserves who objected and why. Changes between financial model drafts reveal which assumptions moved. Later board packs supply outcomes against which to judge the original thesis. The same extraction machinery can recover this history if its schema asks for judgments as well as numbers.

![Files, email, transcripts and systems supply raw evidence. The system of record organizes facts and relationships, which inform judgment, process and preferences.](https://ai.engineer/api/talk-essay-media/bfe24483bc149e0a251a9c674ed0348e0ffe285fdc8dfce928d464d1ec87a0a6)

The system of record links facts across files, emails and transcripts by matching mentions of the same person or company. The firm builds its judgment, processes and preferences on those facts and can trace each back to the original documents.

### Find copies without throwing away the history

[11:28](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=688s)

The pipeline has eight stages — crawl, deduplicate, classify, parse, extract, resolve, load and serve. At each stage, the cheapest suitable method gets the first attempt. A shared review screen lets people confirm duplicate groups, document classes, extracted fields and entity merges as the work progresses.

The first two stages make zero model calls. The crawler lists files through the storage provider’s metadata API. `libmagic`, the library behind the Unix `file` command, inspects the opening bytes to identify the actual format regardless of the extension. Even simple metadata carries useful clues. Sheet names can distinguish a financial model from a contact list. Folder size can help distinguish a full diligence exercise from an initial teaser.

Deduplication takes two passes.

- **Identical files.** Python’s `hashlib` computes a SHA-256 fingerprint. Copies with identical bytes have the same fingerprint. Zein reports that this catches roughly 25–35% of files in the archives he describes.
- **Near duplicates.** The pipeline represents each document as overlapping five-word snippets and uses MinHash through `datasketch` to compress that set into a short signature. Locality-sensitive hashing puts similar signatures into common buckets, narrowing the expensive comparisons to likely matches.

File names and timestamps then order each cluster into a version history. Zein reports another roughly 25–40% in the near-duplicate pass. These are candidates for consolidation. If a later draft dropped material, the older version goes to review. The missing passage may be precisely what explains a change in the investment thesis.

![Arrows link eight stages in order: crawl, deduplicate, classify, parse, extract, resolve, load and serve. A shared review screen lets people confirm duplicates, classifications, extracted fields and entity merges.](https://ai.engineer/api/talk-essay-media/83f5bde6a53a1f14662403e059959dfb7786602785b4607d389dea8a9611abb5)

Eight stages turn files into sourced Postgres rows for agents. Models handle only what cheaper methods can’t. One review screen lets people check duplicates, classifications, extracted fields and which mentions refer to the same entity.

### The origin of a document determines what it can tell you

[13:31](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=811s)

Classification makes three decisions before expensive extraction begins.

- **Whether to read the file.** Exclude code, binaries, Office logs, logos, empty templates and large virtual data room dumps from the model’s input.
- **How much to extract.** Give a teaser a light pass. Reserve deep extraction for confidential information memoranda (CIMs) and IC decks.
- **Which fields to ask for.** A received CIM is a source of financial information. An internal IC memo is evidence of the firm’s own judgment.

The distinction changes what an analyst can infer about the fund. A thousand received CIMs in a sector demonstrate deal flow. Ten internal IC decks may tell you considerably more about the expertise the team developed there.

Rules based on extension, path, file name and sheet names do most of the classification. A cheaper model reads one page of the remaining ambiguous files. The fund’s team helps define the categories. In Zein’s experience, ten mutually exclusive classes usually work better than fifty or a hundred that people struggle to distinguish.

### Choose a parser for each page

[14:57](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=897s)

A PDF can contain perfectly readable text, a scanned page and a chart whose numbers make sense only in their original layout. Sending every page through the same parser either wastes computation or loses information. The useful question is which pages actually need a model to see them.

PyMuPDF checks each page for a usable text layer and embedded images. If the page contains text and no images, the pipeline reads the text directly. When position matters, `pdfplumber` preserves the coordinates of individual characters. For other pages, a small vision-language model examines a thumbnail and decides what should happen next.

A scan needs optical character recognition. Tesseract is one option, and Zein favors PaddleOCR for messier layouts. Tables and charts warrant a stronger vision model such as **Claude** or **Qwen**, which transcribes them into Markdown to preserve the relationships among financial figures. Boilerplate can be skipped altogether.

Excel takes a separate path. `openpyxl` reads the workbook cell by cell, including sheet names and formulas. The workbook already exposes structure that a page image would force the system to reconstruct.

Which inputs need visual interpretation?
Only PDF pages that fail the direct text check reach thumbnail classification. Its result selects a specialized reader or stops processing. A workbook bypasses page classification entirely.
- PDF page — PyMuPDF checks the text layer and embedded images.
- Read text directly — Use pdfplumber when character positions matter.
- Classify a thumbnail — A small vision-language model identifies the page type.
- Recognize text — Tesseract or PaddleOCR reads the scan.
- Transcribe to Markdown — A stronger vision model preserves table and chart information.
- Skip the page — Boilerplate needs no further extraction.
- Excel workbook — The input already has sheets and cells.
- Read cells with openpyxl — Keep sheet names and formulas.
- PDF page → Read text directly (Usable text, no images)
- PDF page → Classify a thumbnail (Other pages)
- Classify a thumbnail → Recognize text (Scan)
- Classify a thumbnail → Transcribe to Markdown (Table or chart)
- Classify a thumbnail → Skip the page (Boilerplate)
- Excel workbook → Read cells with openpyxl (Read workbook structure)

### Escalate individual fields and keep their sources

[16:04](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=964s)

Once a document is readable, the unit of work changes again. The pipeline now decides how to fill each field. Data already present in the CRM, iLEVEL or DealCloud maps directly through the relevant API. There is little reason to ask a language model to rediscover it.

For long documents, LangChain’s recursive splitter produces chunks of about 4,000 characters, roughly 1,000 tokens. It prefers paragraph boundaries, then lines, then words. Neighboring chunks overlap by 10% to reduce the risk of losing context at a split. These chunks are inputs to extraction. The eventual query will run over the resulting records.

The extraction cascade starts with spaCy, which runs on a CPU and tags standard entities such as people, organizations, places, dates and amounts of money. **GLiNER** handles custom labels such as sponsor, lender or covenant. Its zero-shot capability lets the team supply those labels at runtime without training a new model for each category.

Only fields that remain empty reach the large language model. A typed Python class in Pydantic defines the target. The pipeline passes its JSON Schema to Claude as a tool and requires a tool call, giving the application a structured result. What does that result look like for a relationship between a person and a company? The target row includes the person, company, role and start date, together with the source page and confidence score. The pipeline also records which run produced each field.

The relationship lives in a join table connecting people and companies. A `NOT NULL` constraint requires a source document reference. A foreign key requires that the referenced document exist. Those constraints make provenance mandatory even if the extraction code makes a mistake. They cannot establish that the person actually held the role, which is why retaining the page matters.

A conventional knowledge graph can represent a relationship as a subject, predicate and object. That open-ended form is useful when the team wants to discover relationships it has yet to specify. **REBEL** can propose such triples from sentences. The candidates still land in tables, where the team can inspect them alongside the explicitly modeled relationships.

### Decide which mentions could refer to the same entity

[18:02](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1082s)

Entity resolution consumes much of the engineering effort. Consider the errors a name-based rule would make. GS and The Goldman Sachs Group may refer to one organization. Two companies called Vertex may be entirely unrelated. Fund III and its co-investment vehicle have a real relationship and still need separate identities. Acquisitions introduce renamings, parents and subsidiaries.

The pipeline narrows the problem in three steps.

1. **Resolve references inside each document.** Link a pronoun or a phrase such as *the company* to the name it refers to. Coreferee works as a spaCy plugin. `fastcoref` offers a neural alternative.
2. **Normalize comparable fields.** `cleanco` strips legal suffixes such as Inc. and LLC. `nameparser` separates the parts of a person’s name. `libpostal` standardizes addresses.
3. **Generate plausible pairs.** Start with shared keys such as web domains, CRM IDs and the 20-character Legal Entity Identifier (LEI). Broaden the search with Postgres’s `pg_trgm`, which compares three-character fragments, and `pgvector`, which supports meaning-based similarity.

That last step is called **blocking**. An all-against-all comparison can produce billions of pairs. Blocking makes scoring tractable by deciding which pairs deserve comparison. Finding a candidate on the strength of a similar name or shared domain leaves the identity decision open.

### Use shared neighbors to score a match

[19:33](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1173s)

When two names are inconclusive, look at the company they keep. A mention records one appearance of an entity in a document. From these rows, the pipeline builds a co-occurrence graph. Two entities get an edge if they appear in the same document. The edge weight counts how many documents they share. NetworkX then lets the pipeline compare the neighborhoods of two candidate records.

How much do the two neighborhoods overlap? In Zein’s example, both candidates appear alongside Acme Health, Project Falcon and R. Patel. Across the two neighborhoods there are five distinct neighbors. The Jaccard coefficient divides the size of the intersection by the size of the union.

$$
J(A,B)=\frac{|N(A)\cap N(B)|}{|N(A)\cup N(B)|}=\frac{3}{5}=0.6
$$

The 0.6 measures neighborhood overlap. It does not mean there is a 60% probability that the records describe the same person. And some neighbors are more informative than others. Sharing an obscure portfolio company says more than sharing Goldman Sachs. Adamic–Adar is an alternative score that gives more weight to such rare shared neighbors.

### From similarity to match probability

The neighborhood score becomes one input to Splink, an open-source record linkage library developed by the UK Ministry of Justice. For each comparison, such as name, domain or neighborhood agreement, the statistical matcher estimates how often that level of agreement occurs among genuine matches and how often it occurs by chance. Agreement that is common by chance supplies relatively little evidence. Combining the comparisons yields a match probability.

Splink learns those rates from the archive using expectation maximization, so the team can start without a hand-labeled training set. Jaro–Winkler similarity gives extra credit to names with matching beginnings. RapidFuzz provides fast fuzzy string comparisons and sorting. The matching job can run locally on DuckDB or at larger scale on Spark.

Soal uses explicit thresholds for the resulting probability.

- **Above 0.95** — merge automatically and spot-check a sample.
- **From 0.5 through 0.95** — send the pair to a person.
- **Below 0.5** — keep the records separate.

### From matched pairs to one record

Pairwise decisions create a second graph. Here an edge represents a match, whereas the earlier graph connected entities mentioned together. Connected components provide a first clustering. If A matches B and B matches C, all three land in the same component. One weak link can therefore join two otherwise unrelated groups. The pipeline uses Leiden to split oversized components into more tightly connected communities.

A final rule, called **survivorship**, chooses which values to keep when the merged records disagree. The CRM takes priority over internal documents, which take priority over received CIMs. Recency breaks ties within that ordering. The system logs every merge and can reverse it.

### Keep the records in Postgres and compute graphs when needed

[22:14](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1334s)

Both graphs do useful work, yet neither requires a second database. When an algorithm needs a graph, the pipeline projects the relevant Postgres rows into NetworkX or the faster C-based igraph library. It runs the computation and writes the scores or cluster results back as rows.

Postgres handles the operational concerns. An update can commit in full or roll back. Row-level security lets the deal team and investor relations see different rows in the same table. The data is available to dbt, the warehouse and business intelligence tools. Zein also finds models more familiar with SQL than with Cypher, a graph query language.

Even a common graph-shaped question fits comfortably in SQL. Who do we know at this company within two hops? A recursive common table expression (CTE) starts from the company, follows its relationships and joins again to find the next set of connections. For the traversals these funds need, maintaining another database would add synchronization work without buying a necessary capability.

### Give the agent small queries and a way to propose changes

[23:14](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1394s)

With a reliable database in place, the agent layer gets considerably smaller. Soal uses an existing MCP client and builds a few domain servers with the official MCP Python SDK. Deals, people, portfolio and documents have separate tools. Splitting them along permission boundaries keeps the menus short and lets investor relations and the deal team work with different information.

A skill supplies instructions for one job, such as screening a deal, preparing for an investment committee meeting, updating limited partners or watching covenants. The agent can pick up the current deal from the application where someone invokes it. Reads go directly to the system of record. A proposed write appears in a review screen for a person to confirm.

What does the two-hop question look like at the tool interface? The agent supplies a company ID and a hop limit of two. Behind that typed signature sits one SQL query. The agent receives the matching rows, compact enough to leave room in its context window for the actual task.

Given the same records and permissions, the query can return the same relationships each time. Nobody has to search through pages of meeting notes again to reconstruct them. Confirmed rows trace back to the reviewer, and another skill can reuse the query without reindexing the archive. The eventual output might be a risk flag, a task, a precedent, a follow-up question or a draft, each citing the records behind it.

### Move the work to the moment the information arrives

[25:03](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1503s)

The historical backfill gets the database started. Three ongoing inputs keep it useful.

- **Nightly batches** process new files. Where a few hours of latency are acceptable, Zein reports that model providers’ batch APIs can cut the price by as much as half.
- **Intake interfaces** capture structured information when a CIM first arrives, while someone is already working with it.
- **Agent proposals** bring corrections and newly learned information back from everyday work, with a person confirming the write.

Incoming extraction results also pass through a confidence check. High-confidence results can be accepted automatically with sampling. The middle band goes to a reviewer. Low-confidence results go back through extraction. This differs from the entity matcher’s low-probability outcome, where the sensible action is simply to leave two records apart.

Zein’s blunt rule of thumb is that a tool that is right 70% of the time gets used 0% of the time. That is why review belongs in the product. Someone who spots an incorrect relationship needs a way to fix the shared record so the next analyst gets the benefit of the correction.

Over time, the work shifts from excavating documents to capturing information at its source. A better model may help every credit investor recognize customer concentration as a potential risk. Only this fund can accumulate a usable history of the deals where it raised that concern, the decisions that followed and what happened afterward.

## Key takeaways

- A fund’s rejected deals, objections and revised assumptions can be as informative as its portfolio metrics. Preserve the distinction between what partners asserted, what the firm prescribed and what later outcomes suggest.
- Control processing costs at three levels. Classify files by value and origin, route pages according to their format, and escalate only the fields cheaper extractors leave empty.
- Make provenance a database requirement. A typed relationship row can carry its source document, page, confidence and extraction run, giving reviewers a way to check the claim.
- Keep candidate generation, match scoring, clustering and value selection distinct. Each can introduce a different identity error, so merges need a reversible history.
- Project graphs from Postgres for neighborhood scoring and clustering. Write the results back so ordinary SQL queries, permissions and reporting tools can use them.
- Give agents scoped reads and reviewed writes. Nightly processing, structured intake and corrections from daily work keep the initial backfill from becoming another stale archive.

## Slides

### From Filesystems to Databases

Soal Labs co-founder Joe Zein explains how to turn 20 years of unstructured data buried in private equity folders into a database an AI agent can use.

[0:00](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=0s) [Soal Labs introduces a talk about turning 20 years of private equity folders into AI-ready data.](https://assets.ai.engineer/sites/aiecode2025/sha256/c23b8c3acda2ffa83e2f2d161a09abf6a294f6ced5047461dacc6edd56a122f3.webp)

From Filesystems to Databases
Turning 20 Years of Private Equity Folders into AI-Ready Data
JOE ZEIN · CO-FOUNDER, SOAL LABS

Soal Labs

AI ENGINEER
2026

### Who we are

Soal Labs embeds small teams from its 30-person consultancy at private capital firms managing $20 billion to over $100 billion each. They model how each firm’s data fits together, then build AI tools on top for work from fundraising to portfolio monitoring.

[0:28](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=28s) [Soal Labs describes its 30-person data and AI consultancy, four client fund profiles by assets under management, and work across the investment lifecycle.](https://assets.ai.engineer/sites/aiecode2025/sha256/fd549628f287b3e0abffbc73406efdc86f316be08fe956a58d6e82235d255819.webp)

SOAL LABS
Who we are
A Data and AI Consultancy for Private Capital
A 30-person team of software engineers and operators

Forward deployed, senior, and high-touch.

BACKGROUNDS
AWS
GOOGLE
STANFORD
GEORGIA TECH
LAZARD
BLACKSTONE
EY
ACCENTURE

FUNDS WE WORK WITH, BY AUM
$100B+ London-based enterprise software specialist, European platform
$50B+ New York-based defense and software buyout
$30B+ New York and London healthcare and financial services platform
$20B+ Boston-based middle-market industrials and services buyout

WORK WE DO FOR THEM
Data infrastructure and ontologies / AI workflows and applications
Across Fundraising, Origination, Due Diligence and Portfolio Monitoring

SOAL LABS / SOAL LABS
02

### But First, Why

Why would a firm go to the trouble of structuring terabytes of unstructured data? Joe Zein argues that the work gives AI models context about the business. He looks at how the industry has tried to supply it.

[1:19](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=79s) [Section 01 introduces what models need from users and how the industry has tried to supply it.](https://assets.ai.engineer/sites/aiecode2025/sha256/31b18de5251f93c6f745ee07c226d99f7ce0b0e203cb4ee11dd0dd8c1e69cc67.webp)

But First, Why
SECTION 01
01
What models need from us, and how the industry has tried to supply it

SOAL LABS / CONTEXT
03

### The year of context

With just a deal description, a model flagged the same customer concentration risk as a credit investor. Zein puts context at the base of the AI stack because competitors can’t rent a firm’s relationships or learn why it made past decisions from the internet.

[1:35](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=95s) [Five rows label the harness, model and tools as rented, skills as thin, and context as owned. Context includes the firm's records, relationships and past decisions.](https://assets.ai.engineer/sites/aiecode2025/sha256/b22282d9ad95d24e2b8b9ad7b39b3eb758788eb81ed672803a6396680b34ec49.webp)

01 · CONTEXT
The year of context
Everything above context improves for every firm at once. Context compounds only for you.

Harness    Chat, copilots, generated UIs    RENTED
Model    Frontier LLMs    RENTED
Tools    MCP servers and connectors    RENTED
Skills    Prompts, playbooks, agent harnesses    THIN
Context    Your records, relationships, and past decisions    OWNED

SOAL LABS / CONTEXT    04

### The road to a system of record

RAG finds passages, MCP connects systems, and a second brain remembers one person’s work. The agent still has to piece together the firm’s history on each query. Zein proposes an industry-specific harness that reads and updates a shared system of record.

[4:02](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=242s) [A timeline compares the benefits and gaps of RAG, MCP, context graphs, second brains and harnesses. It ends with industry-specific harnesses built on a system of record.](https://assets.ai.engineer/sites/aiecode2025/sha256/e750eecbbd0f8889fded6a94e26851c3a0ff23955b06ee2960479d351e4534cc.webp)

01 · CONTEXT

The road to a system of record
Each attempt solved part of the problem. All of them hit the same wall: no system of record.

01 RAG
GAVE
Grounding in documents
MISSED
Read-only, no aggregation

02 MCP
GAVE
Live access to systems
MISSED
Systems are fragmented and half-empty

03 Context graphs
GAVE
Decision traces: the why
MISSED
Cold start: no schema, no history

04 Second brains
GAVE
Memory that compounds
MISSED
Works for one person, not a firm

05 Harnesses
GAVE
Loop, tools, skills, memory
MISSED
No source of truth to read or write

06 System of record
WHERE IT LANDED
Vertical harnesses on top of a system of record

SOAL LABS / CONTEXT
05

### The target architecture

Zein’s pipeline backfills Postgres from an asset manager’s files, email, transcripts and business systems, then loads new data nightly. The intake UI captures structure as documents arrive. The harness reads through MCP and writes back only after human review.

[7:50](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=470s) [Files, email, transcripts and business systems feed a pipeline that backfills a Postgres system of record and updates it nightly. An intake interface adds structured data, and a vertical harness reads and writes records.](https://assets.ai.engineer/sites/aiecode2025/sha256/1334c857c4fdf07ad14a81ce1100489bbc1a955f1938f3b88a26b6036f446593.webp)

01 · CONTEXT
The target architecture
Files in, a system of record in the middle, a harness on top. This talk is the pipeline.

Files
CIMs, IC decks, models

Email
Threads, pass notes

Transcripts
Calls, IC meetings

Systems
CRM, iLevel, fund admin

THIS TALK
Pipeline
Backfill once, then nightly

POSTGRES
System of record
People, accounts, deals, industry, metrics

Intake UI
Structure at creation

reads
writes

VERTICAL HARNESS
Harness
AGENT LOOP
SKILLS
MCP TOOLS
HITL UI
Flags, tasks, pointers, drafts

SOAL LABS / CONTEXT
07

### The system of record

Joe Zein compares what belongs in an asset manager’s system of record with where funds keep that data today. People and accounts typically sit in a half-built CRM. Deals rarely have a system of their own.

[8:56](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=536s) [Section 02 introduces what an asset manager’s system of record holds and where that data lives today.](https://assets.ai.engineer/sites/aiecode2025/sha256/22dae5991d9a9d53aedfa17b533a770ecf93eeceec95807a62d154570761b86d.webp)

SECTION 02
The system of record
What an asset manager's SOR holds, and where that data lives today

02

SOAL LABS / SYSTEM OF RECORD
08

### The asset manager’s system of record

Across all five categories, most of a fund’s data sits in 20+ TB of folders, inboxes, notes, and call transcripts. Metrics have the best coverage, yet portfolio tools track only companies the fund owns and miss the thousands of deals it passed on.

[9:01](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=541s) [Five columns compare how systems cover people, accounts, deals, industry and metrics. Arrows connect them to more than 20 TB of folders, inboxes, notes and call transcripts.](https://assets.ai.engineer/sites/aiecode2025/sha256/410f6115be4481a20caf93494951dea20525085a4630b53ec1e54d3c04e28d4c.webp)

02 · SYSTEM OF RECORD
The asset manager's system of record
Five entities. A few have a half-built home; most of the data still lives in files.

People
PARTIAL
SYSTEM
CRM, half-built
LIVES IN
Inboxes, calendars, call notes

Accounts
PARTIAL
SYSTEM
CRM: LPs, sponsors, lenders
LIVES IN
BD grids, email threads

Deals
RARELY
SYSTEM
Maybe DealCloud
LIVES IN
CIMs, IC decks, deal folders

Industry
NONE
SYSTEM
Data providers
LIVES IN
Consultant decks, expert calls

Metrics
PARTIAL
SYSTEM
iLevel, Chronograph
LIVES IN
Board packs, models, financials

WHERE THE DATA ACTUALLY LIVES
20+ TB of folders, inboxes, notes, and call transcripts

SOAL LABS / SYSTEM OF RECORD
09

### The context stack

The system of record links facts across files, emails and transcripts by matching mentions of the same person or company. The firm builds its judgment, processes and preferences on those facts and can trace each back to the original documents.

[9:50](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=590s) [Files, email, transcripts and systems supply raw evidence. The system of record organizes facts and relationships, which inform judgment, process and preferences.](https://assets.ai.engineer/sites/aiecode2025/sha256/bfe24483bc149e0a251a9c674ed0348e0ffe285fdc8dfce928d464d1ec87a0a6.webp)

02 · SYSTEM OF RECORD

The context stack
Context is memory in three tiers. Each tier is derived from the one below and traces back to it.

DERIVED
How and why we decide

Judgment
Thesis, past-deal learnings, partner rules

Process
Lifecycle stages, IC checklists, playbooks

Preferences
Mandate, risk appetite, how partners read memos

↑ derive, curate

STRUCTURED
What is true

THE SYSTEM OF RECORD
Facts and relationships
People, accounts, deals, industry, metrics, and every link between them

↑ extract, resolve

RAW
What was said

Files
CIMs, IC decks, models

Email
Threads, pass notes

Transcripts
Calls, IC meetings

Systems
CRM, iLevel, fund admin

SOAL LABS / SYSTEM OF RECORD
10

### Judgment in the files

An investment firm can reconstruct much of its judgment from its files. Memos record the original thesis, model drafts reveal which assumptions changed, and board reports let partners test the thesis against outcomes. Interviews fill in what nobody wrote down.

[10:44](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=644s) [Six rows connect memos, screening notes, transcripts, model versions, portfolio reports and interviews to investment reasoning, objections, changing assumptions, outcomes and unwritten knowledge.](https://assets.ai.engineer/sites/aiecode2025/sha256/bb38563c5d94714f608579a1337dff6e4abff25e51ebdb9dc6b46c039fed0306.webp)

02 · SYSTEM OF RECORD
Judgment in the files
Tribal knowledge is mostly already written down. We parse it like everything else.

IN THE FILES → THE JUDGMENT IT CARRIES
IC memos and decks → Thesis, named risks, conditions for approval
Pass emails, screening notes → Why we passed, by archetype
IC and call transcripts → The debate: who objected, and on what
Model versions → Assumptions that moved between drafts
Board packs, portfolio reports → Outcomes, to grade the original thesis
Interviews → Only what was never written down

Same pipeline, judgment-specific schemas.

SOAL LABS / SYSTEM OF RECORD
11

### The pipeline

Joe Zein introduces the eight stages that turn twenty years of files into typed database rows and match references to the same entity. The pipeline tries the cheapest methods first. Models handle only what those methods miss.

[11:35](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=695s) [Section 03 introduces the pipeline for turning twenty years of folders into structured rows with entities resolved.](https://assets.ai.engineer/sites/aiecode2025/sha256/eddae5ca3ade23f8d68e46ab44bf5a478cc60feb7445b31a4048b51a500297e3.webp)

SECTION 03
The pipeline
Twenty years of folders into typed, resolved rows

03

SOAL LABS / THE PIPELINE
12

### The pipeline

Eight stages turn files into sourced Postgres rows for agents. Models handle only what cheaper methods can’t. One review screen lets people check duplicates, classifications, extracted fields and which mentions refer to the same entity.

[11:38](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=698s) [Arrows link eight stages in order: crawl, deduplicate, classify, parse, extract, resolve, load and serve. A shared review screen lets people confirm duplicates, classifications, extracted fields and entity merges.](https://assets.ai.engineer/sites/aiecode2025/sha256/83f5bde6a53a1f14662403e059959dfb7786602785b4607d389dea8a9611abb5.webp)

03 · THE PIPELINE

The pipeline
Eight stages, cheapest first. Models only touch what the cheaper stages couldn't handle.

01 Crawl
Inventory every file
Egnyte API, MS Graph, libmagic

02 Dedupe
One file per document
hashlib, datasketch MinHash

03 Classify
Exclude, then route
rules, regex, Haiku 4.5

04 Parse
See, then read
PyMuPDF, SmolVLM, PaddleOCR

05 Extract
Fill typed schemas
spaCy, GLiNER, Pydantic, Claude

06 Resolve
One record per entity
Splink, RapidFuzz, networkx

07 Load
Typed, sourced rows
Postgres, pgvector

08 Serve
Tools for agents
MCP Python SDK

HITL REVIEW
Dedupe clusters, classes, extracted fields, and entity merges, confirmed by a person in one UI

SOAL LABS / THE PIPELINE
13

### Scoring and clustering

Splink keeps company records apart below a 0.50 match probability and merges them at 0.95 or higher, with spot checks. People review the scores in between. Leiden splits clusters where a chain of matches joins unrelated companies. Every merge is reversible.

[20:41](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1241s) [Record matching code appears beside probability thresholds for automatic merging, human review and keeping records separate. Further steps cover cluster splitting, golden records and reversible merge logs.](https://assets.ai.engineer/sites/aiecode2025/sha256/a0d588bac794ff746edebcbd7da47d6010a1214e1a6bf6ea0393c9fefb141764.webp)

03 · THE PIPELINE
Scoring and clustering
Probabilities, explicit thresholds, reversible merges. Nothing merges silently.

settings = SettingsCreator(
    link_type="dedupe_only",
    blocking_rules_to_generate_predictions=[block_on("domain")],
    comparisons=[
        cl.JaroWinklerAtThresholds("name_clean", [0.95, 0.88]),
        cl.ExactMatch("domain"),
        cl.ExactMatch("context_bucket")])  # co-occurrence score, bucketed
linker = Linker(companies, settings, db_api=DuckDBAPI())
linker.training.estimate_u_using_random_sampling(max_pairs=1e6)
em_block = block_on("hq_city")
linker.training.estimate_parameters_using_expectation_maximisation(em_block)
pairs = linker.inference.predict(threshold_match_probability=0.5)
clusters = linker.clustering.cluster_pairwise_predictions_at_threshold(
    pairs, threshold_match_probability=0.95)
# 0.5 to 0.95: HITL review queue

THRESHOLDS
≥ 0.95
Auto-merge, sampled for QA
0.50 to 0.95
HITL review
< 0.50
Kept apart

AFTER CLUSTERING
Leiden
Splits chains that over-merge
Golden record
CRM, then internal, then CIMs
Merge log
Method, score, reversible

SOAL LABS / THE PIPELINE
21

### Store relational, compute graphs

Postgres keeps the records. Recursive SQL can find firm contacts within two hops of a target company. Algorithms like Leiden build a graph in memory for each job, then write results back as rows with their provenance.

[22:12](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1332s) [A three-step diagram shows records stored in Postgres, graphs computed in memory and results written back as rows. A recursive SQL query illustrates traversal within two hops.](https://assets.ai.engineer/sites/aiecode2025/sha256/dd97a07870267ebe0c80485dbe5bf6133cb00eafedfc02ccc79f8c16c4ea82f8.webp)

03 · THE PIPELINE

Store relational, compute graphs

The record stays in Postgres. Graphs are built in memory when an algorithm needs one.

Store in Postgres
Transactions, row-level security, and SQL that models write fluently

↓

Project a graph in memory
networkx or igraph, built per job: co-occurrence, matches, communities

↓

Write results back as rows
Clusters, communities, and paths, each with its provenance

TWO-HOP TRAVERSAL STAYS IN SQL

-- who do we know at :target, within two hops
WITH RECURSIVE reach AS (
  SELECT person_id, 1 AS hops
  FROM person_company_role WHERE company_id = :target
  UNION
  SELECT r2.person_id, reach.hops + 1
  FROM reach
  JOIN person_company_role r1 USING (person_id)
  JOIN person_company_role r2 ON r2.company_id = r1.company_id
  WHERE reach.hops < 2)
SELECT p.name, MIN(reach.hops) AS hops
FROM reach JOIN person p ON p.id = reach.person_id
WHERE p.is_firm_contact GROUP BY p.name;

SOAL LABS / THE PIPELINE
22

### The harness

Once the database is in place, how do agents use it and keep it current? Soal Labs rents the agent loop and builds a few domain-specific MCP servers, with narrowly scoped skills for jobs like screening a deal.

[23:24](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1404s) [Section 04 introduces serving the system of record to agents and keeping it current. A large 04 appears on a dark green background.](https://assets.ai.engineer/sites/aiecode2025/sha256/fcd1a20b42f942fb825b589aeed51f9e346803ca9c67d4444f9e1692193d5a9f.webp)

SECTION 04
The harness
Serving the system of record to agents, and keeping it current

04

SOAL LABS / THE HARNESS
23

### The vertical harness

The firm rents the agent loop and owns the Postgres database. Skills guide jobs like screening a deal. Domain MCP servers read records directly, but a person must confirm every proposed change before it reaches the database.

[23:30](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1410s) [An agent loop connects through skills and domain MCP servers to a Postgres system of record. Reads go directly to the database, while proposed writes require human confirmation.](https://assets.ai.engineer/sites/aiecode2025/sha256/ff1956c1763b4193544c37be3818591b516042f9e64a46fa5c187e00cd5aa4bb.webp)

04 · THE HARNESS
The vertical harness
Not one MCP. A few domain MCP servers and thin skills on one system of record. The loop is rented.

RENTED
Agent loop
Claude, Claude Code, or any MCP client

BUILT, THIN
Skills
Deal screen, IC prep, LP update, covenant watch

BUILT, THIN
MCP servers
deals, people, portfolio, documents

reads

OWNED
System of record
Postgres, RLS, audit

writes

HITL UI
Every write is a proposal a person confirms

SOAL LABS / THE HARNESS
24

### Tools and outputs

Each MCP tool runs one SQL query. In Zein’s example, a two-hop search for contacts returns rows traceable to the person who confirmed them. Every output cites its source records, down to each claim in a draft screening memo.

[24:29](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1469s) [SQL-backed MCP tools for reads and proposed writes appear alongside five types of output that cite source records. Examples include a flag, task, reference, question and draft.](https://assets.ai.engineer/sites/aiecode2025/sha256/9279224aafe1f260d22d35f2d74f13b99ba5c06dc452301db2e0fd56c2a42413.webp)

04 · THE HARNESS

Tools and outputs
Each tool is one SQL query. Each output cites the records it came from.

MCP TOOLS · TYPED, OVER SQL
-- reads: one SQL query behind each tool
find_similar_deals(subsector_id, revenue_band, k=10)
who_do_we_know(company_id, max_hops=2)
pipeline_over_time(group_by, start, end)
open_items(deal_id, stage)

-- writes: proposals, routed to HITL review
propose_learning(scope, text, evidence_ids)
confirm_field(record_id, field, value)

OUTPUTS · EACH ONE CITES ITS RECORDS
FLAG  Customer concentration above the mandate limit
TASK  Request cohort data before IC
POINTER  Comparable deal: 2019 IC memo, page 12
QUESTION  Has founder dependency been tested?
DRAFT  Screening memo, every claim cited

Deterministic · small results · traceable to the reviewer · composable without re-indexing

SOAL LABS / THE HARNESS
25

### The operating loop

After a one-time backfill, nightly batches, intake forms and corrections keep Postgres current. The router automatically accepts high-confidence results with spot checks, sends borderline fields to a person and re-extracts low-confidence results. Over time, teams capture more data at the source.

[25:08](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1508s) [Archive backfill, nightly batches, intake forms and harness writes feed a confidence router. High-confidence results are accepted automatically with sampling, medium-confidence results receive human review, and low-confidence results are extracted again. Accepted records go to Postgres.](https://assets.ai.engineer/sites/aiecode2025/sha256/e48199a6298b368693d1cfa2853b1a9daf98e5d8c150e9b8958ee4fafbc3a4c4.webp)

04 · THE HARNESS
The operating loop
The backfill starts it. Four inputs keep it current, and every write passes review.

Backfill
The archive, once

Nightly batch
New files, batch API

Intake UI
Structure at creation

Harness writes
Learnings, corrections

CONFIDENCE
Router
Middle band: review
Low band: re-extract

HIGH BAND: AUTO-ACCEPT, SAMPLED

REVIEW
HITL UI
Source beside fields, one-click confirm

POSTGRES
System of record
Served over MCP

Over time: less extraction from documents, more capture at the source.

SOAL LABS / THE HARNESS
26

### Models get smarter for everyone. Your context gets smarter only for you.

Every fund benefits when models improve. Joe Zein argues that what sets your fund apart is the context it can give the model from 20 years of examining investments. That’s why the slide italicizes “only for you.”

[26:10](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1570s) [A dark green closing slide emphasizes “only for you” in italics, highlighting the personal value of accumulated context as models improve for everyone.](https://assets.ai.engineer/sites/aiecode2025/sha256/9365412a4248722215b49798beccd6b32c98eb4920fb8fc995be07697ee34456.webp)

CLOSE

Models get smarter for everyone. Your context gets smarter only for you.

contact@soallabs.com

SOAL LABS / CLOSE
27

## Full transcript

[0:05](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=5s) Hi, my name is Joe Zein, and I'm the co-founder of Soal Labs. This talk is about one really nasty and unglamorous job, which is taking unstructured data, essentially twenty years of data buried in folders, especially in the context of private equity, and turning it into a database an AI agent can actually use and consume.

[0:30](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=30s) Quick background on who we are on Soal Labs. We're a data and AI consultancy for private capital. We're about thirty software engineers and operators with backgrounds in technology and financial services. So we work as FDEs, forward deployed engineers, small senior teams that go on and sit inside the firm and build with it. So our clients range from twenty billion, uh, to over a hundred billion in assets across equity, credit, venture capital, and real estate strategies. We build essentially two things for them, data infrastructure

[1:00](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=60s) and what comes with it. So what everyone likes to call today ontologies, meaning a formal model of what exists in the business and how it connects together, and the AI workflows and applications on top across, you know, many different areas of, of focus, which is origi-- fundraising, origination, due diligence, and portfolio monitoring, to name a few. So before we dive deep, I think one key question is that why would someone ever, um, want to go on through the journey of structuring a lo-- terabytes of

[1:30](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=90s) unstructured data? And I guess it's an important question, um, and that, you know, that we need to, I think, discuss quickly before we do it. So the answer is essentially, in short, is context. You look at the stack. At the top, we have, you know, the harness, which is essentially the chat window, the interface when you go on ChatGPT or Claude or Codex or Claude Code. Right beneath it is the model, the frontier model. Then you have the tools, which is essentially the MCP servers, the connectors, uh, and, and, you know, the-- that, that open standard that

[2:00](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=120s) Anthropic came up with. Um, and then under it, we have the skills, which is essentially the playbooks. And then right at the bottom is your data, which is, you know, the context. All of the four first buckets are essentially, uh, rented. It gets, you know, better every quarter for every firm. People used to think skills were the pro-proprietary thing, uh, which is partially true, but skills are very thin. You know, they have become commoditized as people have shared them and put them on marketplaces, and there are now skills that

[2:30](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=150s) write skills. So anyone can really buy them, and anyone can copy them. And the lift there is not really, um, it's, uh, uh, big or expensive. So what's really left is context. So a quick good example here is that we were sitting, you know, with one of the, of, of a managing director at a big fund, uh, who does credit, and we were thinking about the AI strategy and what their AI should ideally spit out that could be differentiated or that could be unique to them. And we based the, the conversation on an actual discussion, uh, o-on, on an actual deal that they were having,

[3:00](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=180s) uh, and looking at. Our question was, you know, what would your first reaction be when you look at this deal that your analysts won't necessarily catch immediately? Like, what is this experience or this knowledge that you have, the context that you know, more or less experienced people would not have? His answer was something around customer concentration as being a risk factor. So we prompted an LLM about the situation and asked it to flag risks. Customer concentration was one of the first to come up. So here's what it described for us. We opened a clean session with a frontier model, no firm data

[3:30](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=210s) at all. We described one deal and asked what a credit investor should be asking, and what came back was a thesis, or what he thought was a thesis, uh, that he had accumulated over the years. So reasoning is commoditized. Whatever the-- what the model cannot really define from the internet-- What the model can define from the internet and derive from the internet is not an edge, right? The bottom layer, which is your records, your relationships, who you know, the past decisions, why you made them, why you've, you know, why you messed up, is really the only, uh, thing that a competitor cannot rent. So that's why

[4:00](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=240s) twenty twenty-six essentially was all about context. So everyone has been trying to give models that context and, you know, here's a short history and, and I think where each attempt kind of hit a wall over time. So early on in, you know, twenty twenty-three, twenty twenty-four, RAG, retrieval-augmented generation. So you essentially, uh, people attempted to solve the context problem with RAG. So you cut the documents into chunks. You turn each one into an embedding, which is a

[4:30](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=270s) vector representation, a list of numbers that captures its meaning. Uh, at question time, you fetch the chunks for the closest to the question. It grounds the answer in a document, but-- and then it, it brings it back, augments it, and, and, you know, spits out an answer. But this has multiple shortcomings. One, it's based on embeddings and similarity and top-k retrieval. In a world where the file system is a mess, uh, you know, wh- and you have a lot of duplication between the files, uh, you, you know, the answers ca-came out inconsistent, to say the

[5:00](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=300s) least. Uh, also, this is a retrieval-only, um, paradigm. It can't add numbers up across a thousand files, and the same question can pull a dif-- a bunch of different chunks, uh, you know, on, on different days. The-- Sorry. The second wave that essentially came in that, you know, attempted to solve that problem was really MCP. Uh, it-- MCP is Model Context Protocol. It's like a, a, a connectivity layer for between agents and systems. It gives agents live access to read systems, so the

[5:30](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=330s) CRM, the file share, the warehouse. But in private capital, those systems are in itself fragmented, messy, and half empty. So the model ends up doing a bunch of joins in its head at runtime, often missing very obvious relationships and taking very long time to resolve. And it also, you know, turns out to people to be burning a lot of token as it goes. Then the idea of context graphs came in December, around December twenty twenty-five. Foundation Capital is, you know, the first company that kind of-- the first VC that kind of coined it. Uh, and they argued that systems of records

[5:59](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=359s) capture what happened but not why. They proposed recording decision traces, which inputs, uh, were used, which rules were applied, and who approved the exception. It's the right idea, but it captures the why going, the why going forward. It's, it's really a cold start problem. Most functions have no structured schema or decision logs or history to begin from. And so although it's an attractive idea, that concept, you know, has remained quite theoretical. Then we started seeing all over Twitter the different second brains

[6:29](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=389s) implementations. For those on Twitter, Karpathy made this category really hot. An LLM that keeps a folder with a bunch of Markdown files, uh, and notes about everything you've told it. It compounds beautifully over time. But-- and it great-- it, it works great for one person, but for a firm with no shared truth, no permissions, and no way to aggregate, you can see how this can become a mess very quickly. Then came the discussion of harnesses. So the agent loop got solved. You know, you can now plan, call tools, keep memory, load skills, update memory. Cl-Claude Code is the best, uh,

[6:59](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=419s) best-known example for that, and Claude Cowork as well. It came out and became very popular at the end of twenty twenty-five, and then it triggered a massive realization across the industry that AI can now do a lot. It can click on your computer, it can open your files, it can check different, uh, applications, run, run very long-running tasks. But a generic harness has nothing, uh, you know, special, um, or, or no single source of truth to read from or write to. So it would rely on searching in the files or computer use, uh, which are both very slow and costly and inconsistent.

[7:29](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=449s) So this brings us to today and where the discourse has landed. I think vertical harnesses built for one industry on top of a system of record. The system of record is, you know, the single database for a specific domain. The schema is what's similar between clients as they operate similarly, and this is the hottest categories in startups right now. You can think about Harvey, Legora in the legal space, or Pro-- [unclear] in the finance space. So what's really the target? What does it-- does this mean for you? And, and what should you aim for? So I'm, I'm, I'm here

[7:59](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=479s) showing you the targets, uh, and the map for the rest of the talk. On the left is where the assets manager's knowledge lives. Essentially, today lives in files, emails, call transcripts, and, and a few systems. The CRM, iLEVEL, portfo-portfolio monitoring, or the fund administrator, uh, database. In the middle is the pipeline, which is what this talk is going to focus about. It runs, it runs over the whole archive. It backfills, then nightly on whatever is new. Uh, so it writes into the system.

[8:29](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=509s) So it writes into a system of record in Postgres, the open-source relational database, uh, that's been around forever. And then going forward, intake UIs capture structure, uh, the moment a d-document actually arrives. So no, no one has to go in and do a backfill and excavate it later.

[8:48](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=528s) And lastly, on the right is the harness, which reads through MCP and writes back only where-- o-only through human review.

[8:58](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=538s) So what does the system actu-- the system of record actually hold? Um, essentially five entities: people, accounts, deals, industry, and metrics and financials. Accounts mean organizations, LPs, sponsors, lenders, advisors. Most funds would fit into, uh, i-in some shape of that schema. Each one has a nominal home. People and accounts, you know, typically sit in the CRM that's usually half-built. Deals rarely have a real system. Sometimes DealCloud, a CRM built for private

[9:28](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=568s) capital. Uh, industry comes from data providers at best. Metrics are the best covered through portfolio monitoring tools like iLEVEL or Chronograph, but only for companies the fund owns, not the thousands of deals it, it looked at and passed on. And underneath all of it sits, you know, the real record, which is twenty plus years of terabytes of folders and inboxes and notes and call transcripts. So the context is-- Context is a very vague word, and let's be a little bit more precise. At the end of the day, context is

[9:58](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=598s) institutional knowledge in three tiers, and each tier is built from, uh, the, the, you know, from the one below it. Uh, at the bottom row is, is, is-- at the bottom is, is raw evidence, what was said in files and emails and transcripts in the system of records. The pipeline extracts facts from the-- that, that evidence, then resolves them, meaning it works out which mentions refer to the same company or person. That gives, you know, the middle tier, the system of record, facts and relationships between them. On top of it sits the derived knowledge, which is essentially the judgment, the

[10:28](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=628s) process, and the preferences. Judgment has three inputs worth keeping apart. The thes-thesis is asserted, uh, by partners. Rules are written down on purpose. And learnings are inferred from past deals, so they can carry evidence [unclear]. Every tier traces back down to the documents it came from. So where does the tribal knowledge come from? Mostly from the same files. Frameworks are a great bootstrapping factor. Uh, at the end of the day, frameworks encapsulate judgment. Interviews as well can be a good source. They matter, and they can fill the

[10:58](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=658s) gaps, but they're not the only source. IC memos carry the thesis and the risks of, uh, people named. The, you know, past emails and screening notes can also carry what the firm said no, which is the most underused signal in any archive. Transcripts of IC meetings, which are very rarely available, carry the debate, who objected and on what, basically. And then version history on financial models, uh, show which assumption moved from between drafts, board packs, you know, uh, from between drafts. And then board packs give you

[11:28](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=688s) outcomes, so you can grade the original thesis. Same, same pipeline with schemas built to pull out judgment instead of numbers. So now the how, which is most of the talk, and how we build that pipeline. So there are eight stages into, uh... And it always tries, you know, the cheapest and most cost-efficient methods first. A mode-- A, a model only touches what, what a cheaper method couldn't handle. Crawl list-- Crawl st-- The crawl stage lists every file. It dedupes, it removes

[11:58](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=718s) copies, it classifies and throws out junk and decides how much attention each file should get. Parse turns each page into text. Extract fills the typed schema. Resolve merges mentions into entities. Load writes rows into Postgres. And serve exposes them to the agent. Under every stage, we have one review screen where a person can confirm duplicates, classes, extracted fields, and merges. Much of this toolkit comes from the knowledge graph world. The difference here, though, is that everything lands in tables, and I'll

[12:28](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=748s) explain each tool as we hit it.

[12:31](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=751s) So on cataloging and deduping, steps one to two, uh, one and two cause zero model calls. The crawl reads metadata only through whatever API on-- for the file system provider that you use. Uh, libmagic, which is a library behind the Unix file command, reads each file's first bytes to get its real type, whatever the extension says. Metadata is surprisingly predictive. Sheet names tell a model from a contact list, and folder size tells a real diligence from a teaser. Dedupe runs twice. hashlib, a Python built in--

[13:02](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=782s) the Python's built-in hashing la-- uh, module gives each file a SHA-256 fingerprint. Identical bytes, identical fingerprint. The, uh... That catches twenty-five to thirty percent-- to, to thirty-five percent of files. The near duplicates with data st... With da-- with, uh, we, we, you know, we catch those with datasketch. Uh, MinHash breaks a document into overlapping five-word snippets and compresses them into short signature. LSH, locality-sensitive hai-- uh, hashing, drops similar signatures into the same bucket, so you only compare likely

[13:31](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=811s) matches. Timestamps and names or the, uh, and names order, um, each cluster into a version chain, so another twenty-five to forty percent, uh, old versions that dropped content go to review and don't go straight to the bin. Now classify. Why classify? Um, there are three reasons. One, there's exclusion. We want code, binaries, uh, you know, office log files, logos, empty templates, and big, you know, virtual data room dumps to not reach the

[14:01](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=841s) model. Uh, it also leads to extracting less. The teaser gets a light pass. Only CIMs and, you know, conf... Uh, the, the, uh, CIMs and IC decks get deep extraction, and it helps to also extract differently. You know, class and origin pick the schema. An internal IC memo yields judgment. A received CIM yields financials. So a thousand received CIMs in a sector, uh, is a deal flow. Ten internal IC decks is actually expertise. So rules do most of the work here. Extension, folder path, file name,

[14:31](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=871s) sheet names. Only the leftovers go to a cheaper model, you know, Haiku 5.5, for example, um, where we read just one page. The classes are determined with the fund's team, obviously, what kind of artifact type they have. Each fund is different, and this process requires human judgment. Ten exclusive classes is, you know, usually beats having fifty or a hundred of them, so we try to keep this, uh, concise.

[14:57](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=897s) Now parsing. Uh, seeing, uh, seeing happens before reading, right? Every page gets a cheap triage. So we use PyMuPDF, you know, which is a fast PDF library that checks, you know, real text layer and embedding, uh, and embedded images. If you have text and no images, we read the text directly. We don't need a model. pdfplumber, which keeps every character's position, helps when layout matters. Otherwise, a small VLM, vision language model, a model that takes image as input, looks at a thumbnail, uh, and, you know, something like the small

[15:27](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=927s) VLM class, Hugging Face's, you know, family of tiny, cheap VLMs. It labels pages as scans, tables, charts, or boilerplate. Scans go to OCR, optical character recognition. Tesseract, which is the veteran of open source engine here, or PaddleOCR, Baidu's toolkit, uh, which handles messy layouts better. Tables and charts go to stronger VLM, you know, Claude or Alibaba's Qwen, which writes them out as Markdown so the financials survive. Boilerplate is skipped. Excel files skip this step entirely. openpyxl reads

[15:57](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=957s) them cell by cell. Sheet names, uh, and formulas are included as well.

[16:04](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=964s) So extraction. Now let's talk about extraction. Extraction is a cascade. Each field goes to the cheapest method that, that can fill it, and only what's left escalates. So first, map. Data that's already structured in the CRM and iLEVEL or DealCloud gets mapped through their APIs, so there's nothing to extract there. They're already in a system of record. Long documents on the opposite get chunked. Um, so, so l-- so LangChain's RecursiveSplitter cuts text into pieces of about, like, four thousand characters,

[16:35](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=995s) so roughly a thousand tokens. It breaks it b-- at paragraphs first, then lines, then words, and overlaps each chunk by ten percent, so no sentence gets cut in half. Then we use spaCy, which is an old-school open-source language processing la-library with pre-trained model. It tags the standard types: people, orgs, places, dates, money. It runs on a CPU. It's fast, and it gives the same answer every time. Then GLiNER, a small model for zero-shot entity recognition. So this is for custom entities z-- like deal, for example. Zero-shot means you

[17:05](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1025s) name the labels at runtime, likely spon-- like sponsor, lender, covenant, and it finds them with no training. Only the fields still empty reach the LLM. We define the target as a Pydantic schema, a Python class with typed fields, and hand it as a JSON schema to Claude as a tool. Forcing the model to call the tool means the answer comes back as a JSON that fits into the schema. Every field also records its source page and confidence score and the run, uh, that produced it.

[17:32](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1052s) So this is where we part ways with knowledge graph playbook. Uh, there are-- there, uh, you know, relationship is a triple. It's subject, relationship, object. A label between two nodes. Here, the extraction schema mirrors the tables. The model fills a row. Uh, co-- per-person, company, role, start date, source page, confidence. It lands as a row in a join table, a table whose only job is to connect two others. Here, people and companies. Provenance is required. NOT NULL means that the row can't be saved without the source document. A foreign key means that the document

[18:02](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1082s) must actually exist. When we want an open-ended discovery, REBEL, a model that reads the sentence and outputs relationship triples, proposes candidates. They still land in [unclear] tables, though. Now entity resolution is where most of the work is and probably most of your questions. It turns twenty years of mentions into one record per company, person, and fund. The hard cases are on slide, right? GS versus The Goldman Sachs Group, two unrelated companies called Vertex, Fund III versus, uh, versus its co-invest vehicle, a

[18:32](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1112s) company renamed after an acquisition, a parent company, a child company. So step one is coreference. Inside each document, linking he or the company back to the name it means. Coreferee is a plugin for spaCy that does this. fastcoref is a faster neural option. Step two, normalize. cleanco, uh, another package, strips legal suffixes like Inc or LLC. nameparser splits a person's name into first middle and last. libpostal, trained on OpenStreetMap, standardizes addresses.

[19:03](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1143s) So step three, blocking. Comparing every record to every other means, you know, means, means billions of pairs. So you only compare the plausible ones. You ex-- the exact keys first, right? Web domains, CRM ID, LEIs, the, the twenty-character global, uh, en-- uh, legal entity identifier. Then pg, uh, trgm, a Postgres extension that matches sh-- strings sharing three-letter fragments, and pgvector, a Postgres extension

[19:33](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1173s) for meaning-based similarity search. Then we score, cluster, and send anything ambiguous to a person. The next two slide open up s-s-scoring and clustering. So co-occurrence graph, this is where a graph earns its place. The names can't tell, tell you if they are per one person, uh, but neighborhood can. We build edges straight from the [unclear] table, where a mention is one appearance of an entity in one document. Uh, any two entities that appear in the same document get an edge weighted

[20:03](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1203s) by how many, uh, how many edges they-- how many documents they share. We load these edges into NetworkX, the standard Python graph library for this one job. Then we score with the pair by neighbors-- by neighborhood overlap. They share Acme, uh, Health, Project Falcon, and R. Patel, three of five neighbors. The-- that's a Jaccard coefficient of point six. Shared neighbors over all distinct neighbors. Uh, Adamic–Adar is a good alternative. It gives ra-rare shared, uh, neighbors more

[20:33](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1233s) weight. Sharing an obscure portfolio company means more than sharing Goldman Sachs. The score becomes one input to the matcher, and the result goes back to Postgres as a row. For scoring, we use Splink, also an open-source record linkage library, uh, from the UK Ministry of Justice. Splink implements a statistical model for record matching from nineteen sixty-nine. For each field, it compares name, domain, the co-occurrence score, it learns two numbers, how often that field agrees when two records really match, and how often it agrees by chance.

[21:03](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1263s) Combine them, and you get a match probability. It learns those numbers from your own data with expect-- with expectation maximization, an algorithm that maximizes them without labeled examples. No hand-labeled training set needed. It runs on [unclear] as an in-process analytics database, or OLAP, on a laptop or on Spark at scale. Names are compared with Jaro-Winkler, a similarity score that re-- that rewards, uh, shared beginnings. The finally RapidFuzz is a fast, fuzzy matching library we use for string comparisons and sorting. The

[21:33](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1293s) thresholds are explicit. Above point ninety-five merges, uh, automatically with spot checks. Between point five and ninety-five goes to a person [Editorial note — The preceding threshold implies a range of 0.5 to 0.95.], and below point five stays apart. Clustering starts with co-- with, with connected, uh, components. Anything linked by a chain of matches becomes an entity. One weak link can chain unrelated records, so we split oversized clusters with Leiden, an algorithm that, you know, finds tightly knit groups. Survivorship then builds the, the golden record. CRM beats internal documents, which beats received CIMs,

[22:03](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1323s) uh, and the newest value wins ties. Every merge is logged and is reversible.

[22:14](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1334s) Now, on, uh... So graph or relational is a big question we al-we always get. Uh, I want us to answer, answer it easily, both, but with different jobs. The record lives in Postgres. It takes writes. It has no transactions, so an update lands completely or not at all. [Editorial note — Postgres supports transactions.] And row-- and it has the row-level security, so the deal team and IR team see different rows on the same table. It sits next to dbt, the warehouse, and any BI system we want to use. And so models write SQL

[22:44](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1364s) far more frequently than they write Cypher, uh, the graph query language. Graphs are just a compute step. When an algorithm needs one, like co-occurrence scoring or Leiden, we project a graph from the tables into NetworkX or igraph. Uh, igraph is just another faster C-based graph library. We run it, and we write the results back as rows. The traversal people you ask for, um, who do we know at this company within two hops, is a recursive CTE, essentially. That's a query that joins a table on itself step by step to, to walk

[23:14](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1394s) relationships. A graph, a graph database would be s-- you know, a second system of record to keep in sync for questions we can already answer. It's slower, and it takes more time and more tokens. So last section, serving all of this and keeping it current now that we have the database. So do we build one MCP server or a whole harness? And the answer is neither, exactly. So the agent loop is rended-- rented. You can use Claude, Claude Code, or any MCP

[23:43](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1423s) client, meaning any app that can talk to MCP servers. We build a few domain MCP servers with official MCP Python SDK, deals, people, portfolio, and documents. They split along permission boundaries, which keeps each tool menu small and lets IR and the deal team see different things. On top of it sits a thin, tightly scoped, uh, uh, ti-- a thin and tightly scoped skills. A skill is just a set-- package of, you know, a package of prompt or set of instructions for one job. So think about it as like deal screen, IC prep, LP update,

[24:13](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1453s) covenant watch. And so the agent picks up, uh, its context from where it's invoked, like the deal you're looking at. Reads go straight to the system of record. Writes are proposals that land in a review screen for a person to confirm. So skills and servers are thin on purpose. The system of record is really the real asset here.

[24:33](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1473s) Now, each tool is one SQL query behind a, a type signature. Uh, who do we know at this company becomes who do we know with company ID and two hop limit. The model gets the rows back and not pages of meeting notes. So the same query, the same answer every single run. Results are small, so they don't flood the context window. Each, each row traces to the person who confirmed it, and, and new, and new use cases reuse the same tools with nothing to really re-index. The output is-- isn't one thing. It can be a flag, a task, a pointer

[25:03](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1503s) to a precedent, a question or a draft, and each one cites the records it came from. Um, these examples are just, sorry, illustrative. Now, the backfill we talked about is just what starts the system. It isn't the system. There are really four inputs that keep it current. There's the historical backfill, which we just talked about. There's an-- You know, you can run nightly batch over new files using, you know, model providers, batch APIs, which by the way trade, you know, or you, you trade a few hours of latency for up, you know, to half

[25:33](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1533s) the price. Intake UIs are another big category that, you know, captures structure when a CIM first arrive-- arrives, and writes from the harness itself, uh, is the last one, which is learnings and corrections. So keeping memory current is essentially the harness's job. Everything passes through a confidence router. High confidence is accepted automatically with sampling. The middle band goes to a person. The low band gets extracted again, and to, uh, a tool that's right seventy percent of the time, you know, gets zero percent used. So which

[26:03](https://www.youtube.com/watch?v=EQHbmhPT4oY&t=1563s) is why review is part of the product. Over time, the work shifts from extracting documents to capturing the da-da-data at the source. So model gets smarter for everyone, and the lesson here is that context is, you know, what can get smarter only for you. Uh, in an age where everything is becoming commoditized, the only differentiation people and, and so-- and, and funds have is what they've looked at for the past twenty years. Thank you, and you can reach me at contact@soallabs.com, and I'm happy to take any questions.
