people · youtube · 11 min
Jacob Lauritzen, CTO of Legora, Builds Legal AI Agents
Latent Space (swyx) · Nov 3, 2026
Building Legal Agents When You Can't See the Data
Jacob Lauritzen, CTO of Legora
Channel: Latent Space (swyx)
Published: November 2, 2024
https://www.youtube.com/watch?v=bJBEFzlKPoQ
Legora can't read a single trace of what its agent does for a lawyer. The data belongs to the law firm's clients. How do you build and test an agent when you can't see its work?
Jacob Lauritzen is the CTO of Legora, one of the fastest-growing companies in legal tech history. The team started in a Stockholm basement with ChatGPT, Swedish law, and a search tool. Today, a lawyer can use Legora to draft and edit Word documents, review 10,000 contracts in a single table, or run due diligence.
Transcript
People were asking us about different models and everything. Even though I think realistically a lot of legal work does not require the highest level of intelligence. We had one problem where it wouldn't cite properly and so the next model release solved it—it went from like 70% to like 99%. We did nothing and it was great. But if you're doing a $400 million M&A transaction, you're going to want Legora. We're just 100 engineers now and it feels like we're way too small. Something I'm toying with is how much of our product can just be the agent versus all the other stuff.
Okay, we're here in the studio with special guest Jacob Lauritzen, CTO of Legora. Did I get that right?
That's fine. It's Danish. "Lauritzen" is son of Lord, so son of lords—that's my name.
Nice. Legora is one of the fastest growing legal tech companies in history. You mentioned something in the pre-show that I thought was really interesting—you said your origin is very European, even though you're expanding in New York and SF. What feels different about your culture?
I think we are just at the core probably very humble about what we're doing because we've always been the underdog from the very beginning. No one believed that a small startup in a basement in Stockholm was going to out-compete this huge company that was way ahead of us in the US. So we've always been underdogs and we've always been very humble. We've always had to fight for our existence. I think it's something we've had to learn as we've entered the US more—to be a little bit more bold and tell the world how great we are, because it doesn't come naturally to some of us.
The Product
I kind of want to start by going over your product because with a lot of legal products, they're kind of under wraps and you're not supposed to show them. If you could talk about what the product looks like and how did you guys get there—what have been the product iterations that got you to where you are today?
Yeah, absolutely. The way everything started was ChatGPT with Swedish laws and a search tool in it. That was literally everything. We started with legal research, which is a huge market basically in the world where lawyers spend a lot of time figuring out what are previous cases that look like this, what's the legal precedent, what have previous people done in these situations—that's extremely important. So that's always been part of our product. We started with an agent you could ask questions and it would query laws. That was the very simple beginning.
From there it's expanded—we've expanded what the agent can do. It will now draft a lot of stuff really well. It will edit Word files, organize everything, run really complex analysis. We've added a bunch more features.
One of our features called tabular view—we're very happy to see other companies in legal using our terminology now—is a way to bulk extract and bulk review many, many agreements, which you do in due diligence or when you raise money or whatever.
So one part is helping lawyers do their work much more efficiently and much better. And then outside of just doing the work, we're also now helping orchestrate the work much more than we were just even a year ago. We have different things—we have a thing called lists which is sort of like linear for us, we have intake which is a way to collaborate with clients, and we have portal which is a way to collaborate lawyer to lawyer, client to lawyer, lawyer to agent, agent to agent maybe. We're spending a lot of time there because the way that you work with a lawyer today is really painful and there's loads of room to do that in a much better way.
So those are the two things: doing the work and orchestrating the work.
Agent Development Timeline
When did you guys start building the agent?
We basically had this switch from assistant to agent, which I'd say was a year ago probably. This is a little bit pre-agents really taking off and then reasoning models obviously changed everything. We were in YC24, right?
YC24, yes. Though I was in YC23.
And so you had a preview of the product earlier—it does look well like chat GPT for lawyers, very fair to say. But the sidebar has a lot of nice custom tools like the tabular view, the intake which was really nice, and a bunch of other things.
Exactly. That's exactly what it is. Chat GPT is really really good for legal. The workflow for in-house corporate lawyers, people looking for upcoming regulations and these things—we can talk about more of the products there.
Model Selection and Strategy
What models are you guys using underneath?
We're using a bunch of different ones depending on the task. In the agent there's a model selector for the primary model, but there are certain tools that we use different models in—like tabular view. We found it most effective to subdivide the problem and route based on how we subdivide the task. We do right now have a picker in the agent. I'm not sure if that's going to stay there always to be honest.
I bring a little bit of context because I'm an adviser for Cognition. My thesis for what an agent lab is—it's ideally a domain-specific GPT wrapper. You run as the domain experts, you pay attention to the frontier labs, you serve needs way more than the frontier labs will, and you give your users the best of the frontier labs according to your judgment. You decide for them because their job is not to figure out which model to use.
Exactly. We'll always keep you on the frontier and make sure it just works all the time and you don't have to dive into all the details. Because if you ask a lawyer, "Do you think you should use Sonnet or Opus for this task?" they won't know—just make it work. Your hourly rate is $1,000 an hour.
Exactly, just make it work.
Originally I came in with that thesis—"Oh yeah, this is what we do differently"—and now we have five things in the model picker including Haiku and Opus and newer models. People want to experiment with the fancy new model. I think there's definitely less of that in legal than in engineering. But there are definitely people that just want the latest model right away and people were asking us about newer reasoning models. Even though I think realistically a lot of legal work does not require that level of intelligence.
Yeah, so exactly. Like, "Okay, we'll give you the option. You asked for this, but you're going to run down your credits like 10x faster." We fought introducing it for a very long time and then we just kind of caved in. Like, okay, if you want this level of control, we'll give it to you.
Do you think the models are already as good as lawyers need? Like there's no need for them to get better?
I think it's a power distribution. There's probably like 60% of the work we can do really well right now. From now on it's like a cost and latency thing. But then there's the rest of the thing where, especially for very complex analysis, we still need more intelligence. And I think there's also just work expansion—like the work we have right now, but also the work of a lawyer probably expands with intelligence.
Early on, when you guys first started transitioning to agents or building agents, what models were you guys using? Would it have been like Opus 4 or Sonnet 3?
Yeah, Sonnet 3 or Opus 4 is probably right.
What were the agents not good at at that point that they're much better at now, even though it's only like 9 months later?
Sub-agent delegation was one of them that we've gotten working really well now. Fan-out type retrieval queries work extremely well for us now. That was difficult before.
Evaluation and Testing
We basically track everything with a team that's just doing evals. We track all of the models' performance in different practice areas, which are like subgroups of legal, and different tasks across all those. So we basically have like a big heat map and we can see them move. Usually they improve most stuff, but there's actually a lot of model releases where they improve some and regress in others.
That happens a lot more than you'd think.
What are some of those tasks? How are you guys running a lot of the evals? What are those different subsegments you look at?
Yeah, so there's different framing stuff. We have basically like worlds or RL environments essentially. Lawyers work in projects, so it's like: here's a 10,000 file data room, you're doing a due diligence, and in the end a report looks like this. It contains all these red flags and it doesn't contain whatever weird stuff and it's concise, etc. That's how we've built it.
There's different tasks—part of it is drafting a report: Does the draft look good? Does it contain all the right stuff? Is the wording sound? Is the analysis sound? There's also the part of finding the red flags before that. So we subdivide it a little bit and that's how we run the evals.
The Eval Team
What does your eval team look like? Do you hire lawyers?
Yes, it's a mix. We have engineers and then we have lawyers and it's one team—three engineers and three lawyers right now. And then we have a pool of what we call legal engineers, which are people that have worked in big law for like three or four years typically, maybe they have a CS degree, and they're very tech-forward. They come to us because they want to help change the industry.
They're lawyers in big law with CS degrees?
Yes. It's like a Venn diagram. Yeah, exactly. That's like our hardest person to hire for. But they're also such a force multiplier because we can pull on them for the eval stuff and for product development. You have a pool of 100 experts that use the product every day, go and talk to clients every day, and they live this and have lived this. We just pull on them to do evals and help us shape the product—it's such an advantage.
When did you guys start that team?
Evals grew out of the assistant-agent team at some point. There was a point until recently where it was honestly just not really worth it because all models just got better. So it was like: do we want to spend a lot of our time doing really complex evals or do we just want to build, because there was so much to be gained from building a better harness and just sort of leaning into everything improving? And everything kind of just improved. Every 2-3 months you get a pass-through.
Exactly. We had one problem where it wouldn't cite properly and the next model release solved it—went from like 70% to like 99%. We did nothing and it was great.
The Bigger Picture
Maybe the real work is keeping all the data private, making it taggable, sortable, adding new features like the tabular view. And obviously now you're also doing evals. I assume your use of open models is also increasing?
Yeah, I don't know what I'm saying here apart from—what is the job? In the early days it was not so much to do evals because it was mostly exposing model capability to lawyers. But a huge part of it is figuring out what does the legal profession look like in five years, 10 years with all of this stuff. Coding is maybe a year or two ahead, so we can kind of look to that a little bit. But what are the primitives? How do people work? How do you collaborate if it's not a 200-thread email with v5 Word files back and forth? What does that look like? And that's not even necessarily purely AI—that's just building a much better product experience. And make sure you do it with audit logs and data retention and all of the sort of really important things in regulated industry. And then there's the AI part, which is making...
(capture appears truncated)