← Back
AI Engineer December 3, 2026 26m

From Filesystems to Databases — Joe Zein, Soal Labs

Read full transcript 21 segments
  1. Hi, my name is Joseen and I'm the co-founder of Soul Labs. This talk is about one really nasty and unglamorous job which is taking unstructured data, essentially 20 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. Quick background on who we are on Sol Labs. We're a data and AI consultancy for private capital. We're about 30 software engineers and operators with backgrounds in technology and financial services. So we work as FDEEs for deployed engineers, small senior teams that go on and sit inside the fund and build with it. So our clients range from 20 billion uh to over 100 billion in assets across equity, credit, venture capital and real estate strategies. We build essentially two things for that. Data infrastructure and what comes with it. So what everyone likes to call today theologies 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 fundraising origination due diligence and portfolio monitoring to name a few.

  2. So before we dive deep, I think one key question is like why would someone ever um want to go on through the journey of structuring terabytes of unstructured data? And I guess it's an important question um and that you know that we need to discuss quickly before we do it. [snorts] So the answer is essentially in short this 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 chatb or cloud or codeex or cloud 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 that that open standard that entropy 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 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 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 write skills. So anyone can really buy them and anyone can copy them and the lift there is not really um 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 a managing director big fund uh who does credit and we were thinking about the AI strategy and what

  3. their AI should ideally spit out that could be differentiated or that could be unique to them and we basically the conversation on an actual discussion uh on on an actual deal that they were having 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 that 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 one this clip for us we opened a clean session with a frontier model no firm data at 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 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 record your relationships who you know the past decisions why you made them why you you know why you messed up is really the only uh thing that a competitor cannot rent. So that's why 2026 essentially was all about context.

  4. 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 2023 2024 rag retrieval augmented generation. So you essentially people attempted to solve the context problem of drag. So you've cut the documents into chunks. You turn each one into an embedding, which is a 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 topk retrieval. In a world where the file system is a mess uh you know and you have a lot of duplication between the files uh you you know the answers came out inconsistent to say the 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 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 MCP is model context protocol it's like a connectivity layer for between agents and systems it gives agents live access to read systems so the CRM the file share the warehouse but in private capital those systems are in itself

  5. fragmented messy and half empty so the model ends up doing 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 be built to be burning a lot of token as it goes. Then the idea of context wraps came in December around December 2025. Foundation capitalists you know the first company that kind of the first VC that kind of coined it uh and they argued that systems of records capture what happened but not why. They proposed recording decision traces which inputs uh were used which rules were applied and who would prove the exception. It's a 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 implementations. For those on Twitter, Karpati made this category really hot.

  6. an LLM that keeps a folder with a bunch of markdown files and notes about everything you've told it. It compounds beautifully over time but and a great it works great for one person but for a firm with no share 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. Cloud code is the best best known example for that and cloud co-work as well. It came out and became very popular at the end of 2025 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 applications wrong run very longunning tasks. But a generic harness has nothing 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. 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. A system of record is you know the single database for specific domain.

  7. 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 rogo 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 showing you the target 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 highle portfolio monitoring or the fund administrator uh database. In the middle is a pipeline which is what this talk's 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 system So it writes into a system of record in Postgress the open source relations database uh that's been around forever and then going forward intake UI is captured structure uh the moment a document actually arrives so no no one has to go in and do a back and excavate it later and lastly on the right is the harness which reads through MCP and writes back only where you know only through human view.

  8. So what does the system act the system of record actually hold? Um essentially five entities people accounts deals industry and metrics and financials. Accounts mean organizations l sponsors lenders advisors most funds would fit into uh 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 halfbuilt. Deals rarely have a real system. Sometimes dealcloud, a CRM built for private capital. Uh industry comes from data providers at best. Metrics are the best covered through portfolio monitoring tools like Eye Level or Chronograph, but only for companies the fund owns, not the thousands of deals it looked at and passed on. And underneath all of it sits, you know, the real record, which is 20 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 institutional knowledge in three tiers and each tier is built from uh the you know from the one below it.

  9. Uh at the bottom row is is is at the bottom is is raw evidence what was said in files and emails and transcripts and the system of records. The pipeline extracts facts from the 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 there derived knowledge which is essentially the judgment the process and the preferences. Judgment has three inputs worth keeping apart. The thesis is asserted by partners. Rules are written down on purpose and learnings are inferred from past deeds so they can carry evidence. Great. 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 gaps, but they're not the only source. IC memos carry the thesis and the risks of people name. They, you know, past emails and screening notes can also carry what the firm said no, which is the most underused signal in any archive.

  10. 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 the from between drafts and then board packs give you outcomes so you can grade the original thesis 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 costefficient methods first. A model a model only touches what what a cheaper method couldn't handle. Crawl list crawl st the scroll stage lists every file. It ddups removes 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 type schema. Resolve merges mentions into entities. Load writes rows into posgress and serve exposes them to the agent.

  11. 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 explain each tool as we head it. So on cataloging and dduping steps one to two uh one and two cost zero model calls. The crawl reads metadata only through whatever API on for the file system provider that you use. Uh lip magic which is a library behind the Unix file command reads each file 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. TDU runs twice. Hashlip a Python built the Python's built-in hashing module gives each file a SHA 256 fingerprint identical bytes identical fingerprint the catches 25 to 30% to 35% of files the near duplicates with data with with uh we we you know we catch those with data sketch uh minash breaks a document into overlapping fiveword snippets and compresses them into short signature LSH locality sensitive hashing drops similar signature into the same buckets. So you only compare likely matches timestamps and names uh and names order um each cluster into a version chain. So another 25 to 40% uh all versions that dropped content go to review and don't go

  12. necessarily to a 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 model. Uh it also leads to extracting less a teaser gets a light pass only sims and you know the sims 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 sim yields financials. So a thousand received SIMs in a sector is deal flow. 10 internal IC decks is actually expertise. So rules do most of the work here. Extension, folder path, file name, sheet names. Only the leftovers go to a cheaper model. You know, Hiku 5.5 for example. Um where we read just one page. The classes are determined with the funds team obviously what kind of artifact type they have.

  13. Each fund is different and this process requires human judgment. 10 exclusive classes is you know usually beat having 50 or 100 of them. So we try to keep this uh concise. Now parsing uh seeing seeing happens before reading right every page gets a cheap triage. So we use PYUP PDF 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 PDF plumber 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 VLM class hoging face you know family of tiny cheap VLMs it labels pages it scans tables charts or boiler plate scans go to OCR optically character recognition test which is the veteran of open source engineer or paddle OCR by toolkit uh which handles it messy outs better tables and charts go to stronger VLM you know claude or Alibaba quen which writes them out as markdown so the financials survive boiler plate is skipped excel files skip this step entirely open pi excel reads them cell by cell sheet names uh and formulas are included as well 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

  14. escalates So first map data that's already structured in the CRM and I level or Dcloud 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 so lang chain's recursive splitter cuts text into pieces of about like 4,000 characters. So roughly a thousand tokens. It breaks at paragraphs first, then lines, then words, and overlaps each chunk by 10%. So no sentence gets cut in half. Then we use spacy which is an old school open source language processing library with pre-trained model. It tags the standard types people or spaces dates money. It runs on a CPU. It's fast and it gives the same answer every time. Then gliner a small model for zeroot entity recognition. So this is for custom entities like deal for example. Zeroot means you name the labels at runtime likely sp 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 pyantic schema, a Python class with type fields and hand it as a JSON schema to cloth 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.

  15. So this is where we part ways with knowledger graph paybook. 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 fits a role uh person company ro start date source page confidence it lands as a row in a joint table a table whose only job is to connect to others here people and companies providence is required not null means that the row can't be saved without it source document a foreign key means that the document 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 T tables, though. Now, entity resolution is where most of the work is and probably most of your questions. It turns 20 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 Vert.ex, X fund three versus uh versus its co-invest vehicle, a company renamed after an acquisition, a parent company, a child company. So step one is is core reference inside each document linking he or the company back to the name. It means core referee is a plug-in for spacy that does this. Fast score is a faster neural option. Step two, normalize clean, another package strips legal suffixes like ink or LLC. Name parser splits a person's name into first, middle and last slip postal trained on open street math standardizes

  16. addresses. 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 domain, CRM ID, LEIS, the the 20 character global uh uh legal entity identifier. Then PG uh TRGM a Postgress extension that matches strings sharing threeletter fragments and PG vector a Postgress extension for meaning based similarity search. Then we score cluster and send anything ambiguous to a person. The next two slide open up 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 one person uh but neighborhood can. We build edges straight from the mention 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 by how many uh how many edges they how many documents they share. We load these edges into network X the standard Python graph library for this one job. Then we score with a pair by neighbor by neighborhood overlap.

  17. They share Acme uh health project falcon and RP patel three or five neighbors. The that's a jackard coefficient of 6 shared neighbors over all distinct neighbors. Uh a demicar is a good alternative. It gives rare shared neighbors more 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 Postgress 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 1969. For each field, it compares name, domain, the core, current score. It learns two numbers. How often that field agrees when two records really match and how often it agrees by chance. 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 handlabeled training set needed. It runs on dog DB as an inprocess analytics database or lab on a laptop or on Spark at scale. names are compared with J Winkler a similarity score that that rewards shared picking. The finally rapid fuzz is a fast fuzzy matching library we use for string comparisons elsewhere. The thresholds are explicit above 0.95 merges automatically with spot checks. Between 0.5 and 95 goes to a person and below 0.5 stays apart.

  18. Clustering starts with with with connected components. Anything linked by a chain of matches becomes an entity. One weak link can chain unrelated records. So we split oversized clusters with leaden an algorithm that you know finds tightly net groups. Survivorship then builds the the golden record. CRM beats internal documents which beats received sims. Uh and the newest value wins ties. Every merge is logged and is reversible. Now on uh so graph or relational is a big question we we always get uh I want to answer answer it easily both but with different jobs. The record lives in Postgress. It takes rights. It has no transactions. So an update lands completely or not at all and role and it has the role level security. So the deal team and our team see different rows on the same table. Sex next to DBTE the warehouse and any BI system we want to use and so models write SQL far more fluently than they write cipher uh the graph query language graphs are just a compute step when an algorithm needs one like co- occurrence scoring or leaden we project the graph from the tables into network X or I graph uh igraph is just another faster Cbased graph library we run it and we write the results back as rows the traversal people ask for um who do we know at this company within two hobs is a recursive CTE. Essentially, that's a

  19. query that joins a table on itself step by step to to walk relationships. A graph a graph database would be, 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 rendered rented. You can use cloud cloud code or any MCP 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 scope 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 covenant watch and so the agent picks up its context from where it's invoked like the deal you're looking at reads go straight to the system of record writes or proposals that land in a review screen for a person to confirm. So skills and servers are thin on purpose.

  20. The system of record is really the real asset here. Now each tool is one SQL query behind 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 use cases we use the same tools with nothing to really reindex. The output is isn't one thing. It can be a flag, a task, a pointer 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 back fill we talked about is just what starts the system. It is in 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 your you know model providers batch APIs which by the way trade you know are you you trade a few hours of latency for up you know to have the price intake are another big category that you know capture structure when a sim 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.

  21. The middle band goes to a person. The low band gets extracted again and two uh a tool that's right 70% of the time, you know, gets zero% use. So which is why review is part of the product. Over time the work shifts from extracting documents to capturing a 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 and funds have is what they've looked at for the past 20 years. Thank you. And you can reach me at contactsolabs.com and I'm happy to take any questions.

Summary

Joseen, co-founder of Soul Labs, discusses the critical challenge of transforming decades of unstructured data in private equity into structured databases that AI agents can effectively utilize. The talk covers the evolution of AI infrastructure, highlighting how frontier models, reasoning, and skills have become commoditized while proprietary data context remains the true unrentable competitive edge. It reviews the limitations of past solutions like RAG, MCP servers, and context wraps when applied to messy, fragmented private capital systems. The practical takeaway is that firms must rigorously build foundational data infrastructure and formal models to provide AI agents with clean, proprietary context rather than relying solely on commoditized models or temporary retrieval workarounds.

View original episode ↗