WEBVTT

1
00:00:00.000 --> 00:00:04.320
<v Host 1>So imagine you add three brand new upgrades to a piece of software you're building.

2
00:00:04.580 --> 00:00:05.080
<v Host 2>Right.

3
00:00:05.060 --> 00:00:12.900
<v Host 1>You know, you read the documentation, you look at all the industry benchmarks, and, well, each individual upgrade promises this massive boost in capability.

4
00:00:13.040 --> 00:00:13.540
<v Host 2>Oh, yeah.

5
00:00:13.280 --> 00:00:14.020
<v Host 2>They always do on paper.

6
00:00:14.260 --> 00:00:14.760
<v Host 1>Right.

7
00:00:14.680 --> 00:00:15.180
<v Host 1>On paper.

8
00:00:15.640 --> 00:00:20.980
<v Host 1>If you add their individual scores together, they should equal like a 47% improvement in performance.

9
00:00:21.200 --> 00:00:21.740
<v Host 2>A huge jump.

10
00:00:21.960 --> 00:00:22.460
<v Host 1>Exactly.

11
00:00:22.560 --> 00:00:27.720
<v Host 1>So you compile the code, you turn the system on, and you only get a 17% boost.

12
00:00:28.160 --> 00:00:32.120
<v Host 1>I mean, almost two-thirds of the expected performance just completely vanished.

13
00:00:32.440 --> 00:00:33.880
<v Host 1>Where did it actually go?

14
00:00:34.080 --> 00:00:36.540
<v Host 2>It is honestly a developer's absolute worst nightmare.

15
00:00:36.800 --> 00:00:37.440
<v Host 1>Yeah, I bet.

16
00:00:37.800 --> 00:00:46.220
<v Host 2>You know, you source the absolute best components available, you verify them individually, you string them all together, and the final math simply refuses to add up.

17
00:00:46.540 --> 00:00:48.460
<v Host 1>Like 1 plus 1 equals 1.5.

18
00:00:48.700 --> 00:00:49.200
<v Host 2>Exactly.

19
00:00:49.420 --> 00:00:52.000
<v Host 2>This system somehow becomes like less than the sum of its parts.

20
00:00:52.260 --> 00:00:56.160
<v Host 1>And that disappearing math problem is really the core of our deep dive today.

21
00:00:56.660 --> 00:00:59.200
<v Host 1>We are looking at this heavily discussed new paper.

22
00:00:59.500 --> 00:01:04.100
<v Host 1>It's titled Retrieval Augmented Generation Compositionality.

23
00:01:04.280 --> 00:01:04.920
<v Host 2>Such a mouthful.

24
00:01:05.020 --> 00:01:05.740
<v Host 1>It is, yeah.

25
00:01:06.120 --> 00:01:11.120
<v Host 1>And we're also looking at its companion, which is this brand new open source framework called Lasagna.

26
00:01:11.320 --> 00:01:12.180
<v Host 2>Which is a much better name.

27
00:01:12.260 --> 00:01:12.800
<v Host 1>Way better name.

28
00:01:13.020 --> 00:01:19.400
<v Host 1>So our mission today, for you listening, is to pull back the curtain on how developers are currently building AI systems.

29
00:01:19.900 --> 00:01:24.820
<v Host 1>Explore why the tech industry's standard method of testing these setups is, well, fundamentally broken.

30
00:01:24.940 --> 00:01:25.720
<v Host 2>Completely broken, yeah.

31
00:01:25.720 --> 00:01:33.060
<v Host 1>And break down how this Lasagna framework can prevent some truly catastrophic failures before an AI application ever reaches the public.

32
00:01:33.360 --> 00:01:38.580
<v Host 2>Yeah, because the findings in this study, they really require a massive shift in how we approach reliable AI.

33
00:01:38.980 --> 00:01:40.140
<v Host 1>It's not just a small tweak.

34
00:01:40.340 --> 00:01:41.060
<v Host 2>No, not at all.

35
00:01:41.240 --> 00:01:45.000
<v Host 2>The researchers didn't just run a handful of quick isolated tests.

36
00:01:45.140 --> 00:01:49.100
<v Host 2>They engineered an incredible 450 unique configurations.

37
00:01:49.380 --> 00:01:49.880
<v Host 1>450.

38
00:01:49.840 --> 00:01:51.500
<v Host 1>That's a lot of testing.

39
00:01:51.720 --> 00:01:52.220
<v Host 2>Right.

40
00:01:51.960 --> 00:02:00.960
<v Host 2>And they did it across eight different benchmarks and then scaled those tests from a baseline of 5,000 documents all the way up to 200,000 documents.

41
00:02:01.240 --> 00:02:01.740
<v Host 1>Okay, wow.

42
00:02:02.020 --> 00:02:08.700
<v Host 1>Before we jump into those massive numbers, though, we should probably set the table for anyone listening who might be checking out this project for the first time.

43
00:02:08.860 --> 00:02:09.360
<v Host 2>Good idea.

44
00:02:09.480 --> 00:02:12.920
<v Host 1>Because we are talking about RAG today, Retrieval Augmented Generation.

45
00:02:13.240 --> 00:02:17.420
<v Host 1>Let's make sure we clearly define the mechanics of what that actually is.

46
00:02:17.740 --> 00:02:18.640
<v Host 2>Yeah, keep it simple.

47
00:02:18.640 --> 00:02:19.140
<v Host 1>Right.

48
00:02:19.320 --> 00:02:24.580
<v Host 1>So the simplest mental model is that it's like giving an AI an open book test.

49
00:02:24.820 --> 00:02:25.820
<v Host 2>I love that analogy.

50
00:02:26.260 --> 00:02:26.760
<v Host 1>Thanks.

51
00:02:27.240 --> 00:02:35.740
<v Host 1>Because, you know, if you ask a standard language model a really highly specific question, it might confidently hallucinate and just completely make up a fake answer.

52
00:02:35.960 --> 00:02:36.460
<v Host 2>Right.

53
00:02:36.380 --> 00:02:38.880
<v Host 2>It just guesses based on vibes, basically.

54
00:02:38.880 --> 00:02:39.380
<v Host 1>Exactly.

55
00:02:40.180 --> 00:02:44.500
<v Host 1>RAG prevents that by, well, bolting a search engine onto the AI.

56
00:02:44.760 --> 00:02:57.060
<v Host 1>You ask a question, the system searches a private, trusted database, retrieves the relevant documents, hands them to the AI, and basically says, answer the user's question using only the information in these specific pages.

57
00:02:57.380 --> 00:02:57.880
<v Host 2>Right.

58
00:02:57.780 --> 00:03:01.740
<v Host 2>So it forces the language model to ground its response in external verified reality.

59
00:03:01.900 --> 00:03:03.180
<v Host 1>Instead of just making things up.

60
00:03:03.440 --> 00:03:03.940
<v Host 2>Exactly.

61
00:03:03.920 --> 00:03:07.080
<v Host 2>Rather than relying on the statistical guesswork of its training data.

62
00:03:07.760 --> 00:03:17.880
<v Host 2>And the ultimate takeaway from this massive study is that building a successful RAG pipeline is not about stacking the, quote unquote, best individual components on top of each other.

63
00:03:18.040 --> 00:03:19.720
<v Host 1>Right, which is what everyone tries to do.

64
00:03:19.860 --> 00:03:20.360
<v Host 2>Right.

65
00:03:20.080 --> 00:03:24.160
<v Host 2>But it's actually entirely about the specific interactions between those components.

66
00:03:24.460 --> 00:03:25.500
<v Host 1>Okay, let's unpack that.

67
00:03:25.640 --> 00:03:26.140
<v Host 2>Okay.

68
00:03:25.880 --> 00:03:32.000
<v Host 1>Because that specific problem that is actively breaking RAG pipelines today, the paper gives it a very specific name.

69
00:03:32.200 --> 00:03:33.640
<v Host 2>Yeah, the isolated testing problem.

70
00:03:33.800 --> 00:03:35.080
<v Host 1>The isolated testing problem, right.

71
00:03:35.080 --> 00:03:35.580
<v Host 1>Right.

72
00:03:35.220 --> 00:03:42.040
<v Host 1>Because from what I gather, the current culture of AI development treats every new upgrade like it exists in a total vacuum.

73
00:03:42.220 --> 00:03:42.720
<v Host 2>A hundred percent.

74
00:03:43.080 --> 00:03:50.240
<v Host 1>Like a researcher invents a new way to chunk text into smaller pieces or, you know, a new reranking algorithm to sort search results.

75
00:03:50.540 --> 00:03:59.180
<v Host 1>They plug their one new invention into a bare bones basic pipeline, measure it, and then they publish a paper saying, hey, performance went up 10 percent.

76
00:03:59.180 --> 00:03:59.680
<v Host 2>Right.

77
00:03:59.680 --> 00:04:06.800
<v Host 2>And then a second researcher builds a completely different component, tests it in their own isolated basic pipeline, and they claim like a 15% increase.

78
00:04:07.100 --> 00:04:13.860
<v Host 1>Okay, so it's like a general manager trying to build a championship football team by just buying five-star quarterbacks.

79
00:04:13.900 --> 00:04:15.340
<v Host 2>That is exactly what it's like.

80
00:04:15.460 --> 00:04:19.300
<v Host 1>Because individually on their own practice fields, they all throw perfect spirals.

81
00:04:19.380 --> 00:04:24.800
<v Host 1>They have amazing stats, but you put all five of them on the field at the exact same time and they literally trip over each other.

82
00:04:24.940 --> 00:04:26.100
<v Host 2>Because nobody is playing receiver.

83
00:04:26.100 --> 00:04:26.740
<v Host 1>Exactly.

84
00:04:26.960 --> 00:04:29.520
<v Host 1>The playbook shatters because nobody is blocking the line.

85
00:04:29.720 --> 00:04:33.840
<v Host 2>That sports analogy maps perfectly to the paper's first major hypothesis, actually.

86
00:04:34.160 --> 00:04:40.340
<v Host 2>When the researchers looked at the data, they separated the performance of these pipelines into two primary metrics.

87
00:04:40.680 --> 00:04:41.940
<v Host 1>Okay, what are the two metrics?

88
00:04:42.200 --> 00:04:44.240
<v Host 2>So the first metric is retrieval.

89
00:04:44.700 --> 00:04:49.660
<v Host 2>Basically, did the search engine side of the system actually find the correct document in the database?

90
00:04:49.920 --> 00:04:50.540
<v Host 1>Got it.

91
00:04:50.720 --> 00:04:51.720
<v Host 2>Did we find the needle in the haystack?

92
00:04:51.840 --> 00:04:52.340
<v Host 1>Right.

93
00:04:52.460 --> 00:04:54.940
<v Host 2>And the second metric is faithfulness.

94
00:04:54.940 --> 00:05:03.500
<v Host 2>Did the text generation side of the AI actually answer honestly based only on the facts in that specific document without hallucinating?

95
00:05:03.680 --> 00:05:08.120
<v Host 1>So it breaks down into finding the truth and then strictly adhering to the truth.

96
00:05:08.680 --> 00:05:09.880
<v Host 2>Beautifully said, yes.

97
00:05:10.260 --> 00:05:16.060
<v Host 2>And the researchers dropped some specific numbers here that made the entire AI community just like double take.

98
00:05:16.260 --> 00:05:18.540
<v Host 1>This is the math problem from earlier, right?

99
00:05:18.760 --> 00:05:19.260
<v Host 2>Exactly.

100
00:05:19.660 --> 00:05:22.840
<v Host 2>They took the three strongest single retrieval improvements they could find.

101
00:05:23.600 --> 00:05:29.300
<v Host 2>Measured in isolation, these three upgrades predicted a massive 47% gain in retrieval quality.

102
00:05:29.820 --> 00:05:31.460
<v Host 1>47%, which is huge.

103
00:05:31.600 --> 00:05:32.100
<v Host 2>Massive.

104
00:05:32.140 --> 00:05:42.900
<v Host 2>And they measured this using a metric called NDCG@10, which essentially scores a system based on whether the absolute most relevant documents show up in the top 10 search results.

105
00:05:43.080 --> 00:05:44.380
<v Host 1>Kind of like page one of Google?

106
00:05:44.700 --> 00:05:45.280
<v Host 2>Yeah, exactly.

107
00:05:45.480 --> 00:05:47.320
<v Host 2>Giving way more weight to the number one spot.

108
00:05:47.980 --> 00:05:52.640
<v Host 2>But when they compiled those three specific improvements into the exact same pipeline,

109
00:05:52.840 --> 00:05:53.760
<v Host 1>Let me guess.

110
00:05:53.920 --> 00:05:55.460
<v Host 1>It didn't equal 47%.

111
00:05:55.460 --> 00:05:56.560
<v Host 2>Not even close.

112
00:05:56.920 --> 00:06:00.700
<v Host 2>The combined system only realized a 17% gain.

113
00:06:01.120 --> 00:06:01.620
<v Host 1>Wow.

114
00:06:02.040 --> 00:06:05.540
<v Host 1>So that is that 63% shortfall we talked about at the start.

115
00:06:05.820 --> 00:06:08.360
<v Host 1>The performance gains just completely evaporated?

116
00:06:08.500 --> 00:06:09.080
<v Host 2>Just poof.

117
00:06:09.400 --> 00:06:09.900
<v Host 2>Gone.

118
00:06:09.880 --> 00:06:14.220
<v Host 1>But, you know, the twist in the paper is that this evaporation didn't happen everywhere, right?

119
00:06:14.220 --> 00:06:14.720
<v Host 2>Right.

120
00:06:14.660 --> 00:06:19.720
<v Host 1>Because when they looked at the other metric, faithfulness, the gains mostly did add up.

121
00:06:19.880 --> 00:06:20.380
<v Host 2>They did, yeah.

122
00:06:20.360 --> 00:06:24.480
<v Host 1>Separately measured faithfulness upgrades predicted a 28% gain.

123
00:06:24.620 --> 00:06:28.900
<v Host 1>And when combined, the pipeline actually secured a 32% gain.

124
00:06:29.200 --> 00:06:30.640
<v Host 2>Yeah, they overperformed on that side.

125
00:06:30.860 --> 00:06:33.560
<v Host 1>I have to pause and challenge the mechanics of that, though.

126
00:06:33.820 --> 00:06:39.060
<v Host 1>Why would one metric stack beautifully, but the other metric just completely cannibalize itself?

127
00:06:39.260 --> 00:06:39.900
<v Host 2>It's a great question.

128
00:06:40.080 --> 00:06:46.080
<v Host 1>Like, if the retrieval parts trip over each other, why do the faithfulness parts cooperate so perfectly well?

129
00:06:46.080 --> 00:06:50.980
<v Host 2>So it comes down to a mechanical conflict the paper calls functional duplication.

130
00:06:51.540 --> 00:06:53.120
<v Host 1>Functional duplication.

131
00:06:53.240 --> 00:06:54.040
<v Host 1>Okay, what does that mean?

132
00:06:54.200 --> 00:06:58.580
<v Host 2>Think about what happens mathematically when you combine two really advanced retrieval techniques.

133
00:06:59.080 --> 00:07:02.180
<v Host 2>Let's say a developer uses a cross-encoder reranker.

134
00:07:02.460 --> 00:07:02.960
<v Host 1>Okay.

135
00:07:03.260 --> 00:07:07.220
<v Host 2>Its entire function is to act as a strict quality filter.

136
00:07:07.400 --> 00:07:19.620
<v Host 2>It takes the initial search results, analyzes the really complex semantic relationship between the user's question and each document, and aggressively filters for pure, absolute relevance.

137
00:07:19.860 --> 00:07:22.420
<v Host 1>So it's pushing the very best matches to the top.

138
00:07:22.640 --> 00:07:23.140
<v Host 2>Exactly.

139
00:07:23.200 --> 00:07:26.000
<v Host 1>So it's like a sniper rifle for relevance.

140
00:07:26.280 --> 00:07:27.520
<v Host 2>That's a great way to put it.

141
00:07:27.680 --> 00:07:36.840
<v Host 2>But then that same developer reads an article suggesting they also activate a technique called MMR, which stands for maximal marginal relevance.

142
00:07:37.100 --> 00:07:37.600
<v Host 1>Okay.

143
00:07:37.540 --> 00:07:38.500
<v Host 1>What does MMR do?

144
00:07:39.480 --> 00:07:43.740
<v Host 2>MMR's mathematical function is to force diversity in the search results.

145
00:07:43.920 --> 00:07:44.420
<v Host 1>Oh.

146
00:07:45.020 --> 00:07:46.580
<v Host 1>Oh, I see where this is going.

147
00:07:46.860 --> 00:07:47.360
<v Host 2>Yeah.

148
00:07:47.420 --> 00:07:55.300
<v Host 2>It calculates a penalty based on how similar a document is to the ones already retrieved, ensuring you don't just get 10 documents saying the exact same thing.

149
00:07:55.700 --> 00:07:56.200
<v Host 1>Right.

150
00:07:56.240 --> 00:07:57.720
<v Host 1>So I see the collision happening here.

151
00:07:57.840 --> 00:08:00.880
<v Host 1>You ask the system a highly specific, complex question.

152
00:08:01.140 --> 00:08:06.640
<v Host 1>The initial search finds five excellent documents that all contain the exact right answer.

153
00:08:06.860 --> 00:08:07.360
<v Host 2>Right.

154
00:08:07.140 --> 00:08:11.620
<v Host 2>And the cross-encoder analyzes them and says, these five are perfectly relevant.

155
00:08:11.780 --> 00:08:13.200
<v Host 2>Put them in spots one through five.

156
00:08:13.200 --> 00:08:15.640
<v Host 1>But then the MMR kicks in.

157
00:08:15.960 --> 00:08:16.460
<v Host 2>Exactly.

158
00:08:16.840 --> 00:08:21.120
<v Host 2>The MMR algorithm immediately kicks in and applies a mathematical penalty.

159
00:08:21.360 --> 00:08:27.960
<v Host 2>It basically says, no, no, documents 2, 3, 4, and 5 look too statistically similar to document 1.

160
00:08:28.460 --> 00:08:28.960
<v Host 1>Wow.

161
00:08:29.060 --> 00:08:34.560
<v Host 2>We are going to demote them and replace them with wildly different topics just for the sake of variety.

162
00:08:35.040 --> 00:08:36.700
<v Host 1>That is wild.

163
00:08:37.020 --> 00:08:37.520
<v Host 2>Right.

164
00:08:37.440 --> 00:08:42.240
<v Host 2>The MMR accidentally hides the exact corroborating evidence you desperately need.

165
00:08:42.240 --> 00:08:45.920
<v Host 2>because it literally punishes documents for agreeing with each other.

166
00:08:46.120 --> 00:08:55.660
<v Host 1>So by adding a so-called best practice component, developers are actively breaking their own systems because the underlying algorithms just have completely conflicting goals.

167
00:08:56.660 --> 00:09:04.360
<v Host 1>The cross-encoder is optimizing for pure relevance while the MMR is optimizing for diversity, and they just destroy each other's work.

168
00:09:04.480 --> 00:09:05.500
<v Host 2>They directly interfere.

169
00:09:06.120 --> 00:09:16.860
<v Host 2>On the faithfulness side, however, like adding a step that prompts the AI to verify facts before generating the final text, those components operate at entirely different stages of the pipeline.

170
00:09:17.080 --> 00:09:17.620
<v Host 1>Oh, I see.

171
00:09:17.840 --> 00:09:21.180
<v Host 2>Yeah, one might check the formatting, another might check the source citations.

172
00:09:21.360 --> 00:09:25.940
<v Host 2>They don't mathematically overlap, so their benefits are actually allowed to compound.

173
00:09:26.180 --> 00:09:34.780
<v Host 1>Okay, so if combining these best parts blindly just cannibalizes performance on the retrieval side, developers are essentially flying blind.

174
00:09:34.940 --> 00:09:38.920
<v Host 1>How do we actually isolate the variables to see what's actually causing the failure?

175
00:09:38.920 --> 00:09:46.740
<v Host 2>Well, you need a framework that can test the entire system holistically, but with strict mathematical controls over every single variable.

176
00:09:47.000 --> 00:09:50.980
<v Host 1>And that is the motivation behind the Lasagna framework introduced in the paper.

177
00:09:51.260 --> 00:09:51.760
<v Host 2>Exactly.

178
00:09:52.060 --> 00:09:57.580
<v Host 1>But, you know, if I'm a developer listening to this or someone managing an AI project, I might be pushing back a little.

179
00:09:57.800 --> 00:10:03.760
<v Host 1>I might be thinking, hey, I already used orchestrators like LangChain or LlamaIndex to build my applications.

180
00:10:03.760 --> 00:10:06.860
<v Host 1>Why do I need to integrate this entirely new Lasagna tool?

181
00:10:06.860 --> 00:10:12.500
<v Host 2>It's a fair question, but Lasagna is not an orchestrator trying to replace LangChain or LlamaIndex.

182
00:10:12.740 --> 00:10:13.460
<v Host 1>Okay, so what is it?

183
00:10:13.700 --> 00:10:16.560
<v Host 2>It functions as a diagnostic and evaluation layer.

184
00:10:16.740 --> 00:10:20.420
<v Host 2>Its primary superpower is a mechanism called stage isolation.

185
00:10:20.740 --> 00:10:21.720
<v Host 1>Stage isolation.

186
00:10:22.000 --> 00:10:28.140
<v Host 1>Let's break down the mechanics of that, because a standard modern RAG pipeline has about nine distinct stages, right?

187
00:10:28.360 --> 00:10:29.100
<v Host 2>Roughly, yeah.

188
00:10:29.260 --> 00:10:36.940
<v Host 1>You parse the document, you chunk the text into smaller pieces, you embed those chunks into mathematical vectors, you retrieve them, you rerank them, and so on.

189
00:10:37.220 --> 00:10:37.720
<v Host 2>Right.

190
00:10:37.600 --> 00:10:46.900
<v Host 2>And typically, if you change a component early in that pipeline, the data outputs change completely, cascading down and suddenly altering how every subsequent stage performs.

191
00:10:47.080 --> 00:10:48.000
<v Host 1>Which ruins the test.

192
00:10:48.260 --> 00:10:48.820
<v Host 2>Exactly.

193
00:10:49.620 --> 00:10:51.280
<v Host 2>Lasagna stops that cascade.

194
00:10:51.720 --> 00:11:00.920
<v Host 2>It lets you swap out exactly one pipeline stage, say you want to test a brand new retrieval algorithm, while strictly holding the other eight stages completely fixed.

195
00:11:00.920 --> 00:11:02.800
<v Host 1>But how does it actually hold them fixed?

196
00:11:02.980 --> 00:11:04.500
<v Host 1>Like, does it just save the outputs?

197
00:11:05.000 --> 00:11:05.500
<v Host 2>Exactly.

198
00:11:05.760 --> 00:11:08.520
<v Host 2>It caches the exact intermediate outputs.

199
00:11:08.760 --> 00:11:09.280
<v Host 1>Oh, wow.

200
00:11:09.540 --> 00:11:15.520
<v Host 2>Yeah, it saves the specific mathematical vectors, the precise chunk boundaries, literally everything into a database.

201
00:11:15.720 --> 00:11:18.860
<v Host 1>So it's basically freezing time for the rest of the pipeline.

202
00:11:19.060 --> 00:11:19.560
<v Host 2>Yes.

203
00:11:19.660 --> 00:11:25.440
<v Host 2>When you run your test on the new retriever, Lasagna doesn't rerun the document parser or the chunker.

204
00:11:25.960 --> 00:11:31.480
<v Host 2>It feeds the new retriever the exact same cached data bytes that the old retriever used.

205
00:11:31.620 --> 00:11:32.380
<v Host 1>That's brilliant.

206
00:11:32.960 --> 00:11:40.420
<v Host 2>It guarantees at a mathematical level that swapping one method cannot silently change the implementation of another stage downstream.

207
00:11:40.760 --> 00:11:48.480
<v Host 2>You know for a fact whether your new component actually caused the improvement or if it was just, you know, a fluke in the pipeline's overall machinery.

208
00:11:48.740 --> 00:11:50.720
<v Host 1>It eliminates the guesswork entirely.

209
00:11:50.720 --> 00:11:57.140
<v Host 1>And what really stands out in the paper is how accessible this level of rigorous testing is for production teams.

210
00:11:57.360 --> 00:11:58.040
<v Host 2>Oh, absolutely.

211
00:11:58.620 --> 00:12:10.360
<v Host 1>Like the researchers noted that running their massive experimental sweep, evaluating 450 different configurations and mapping out all those complex interactions, cost them about $5,200 in cloud compute.

212
00:12:10.540 --> 00:12:12.280
<v Host 2>Which is nothing, really.

213
00:12:12.580 --> 00:12:14.320
<v Host 1>And it took around 310 hours.

214
00:12:14.560 --> 00:12:19.660
<v Host 1>I mean, $5,200 is a rounding error for an enterprise deployment.

215
00:12:19.660 --> 00:12:27.900
<v Host 2>A completely lean development team can utilize this framework to scientifically validate their bespoke pipeline before they ever expose it to real customers.

216
00:12:28.160 --> 00:12:34.460
<v Host 1>Let's walk through some of the practical features the framework offers, because for anyone building these systems, this just seems like an essential toolkit.

217
00:12:34.820 --> 00:12:38.180
<v Host 1>First, they built a RAG configurator UI, right?

218
00:12:38.260 --> 00:12:39.220
<v Host 2>Yes, the UI is great.

219
00:12:39.420 --> 00:12:48.740
<v Host 1>So instead of writing endless lines of complex YAML configuration files to test every single hypothesis, developers can build and tune the entire nine-stage pipeline visually.

220
00:12:48.740 --> 00:12:50.120
<v Host 2>Directly in a browser window.

221
00:12:50.300 --> 00:12:51.720
<v Host 1>That saves so much time.

222
00:12:51.900 --> 00:12:52.480
<v Host 2>It really does.

223
00:12:52.920 --> 00:12:56.840
<v Host 2>And beyond the visual interface, Lasagna includes built-in significance testing.

224
00:12:57.060 --> 00:12:57.580
<v Host 1>Oh, nice.

225
00:12:57.940 --> 00:13:02.480
<v Host 2>Yeah, when you run an evaluation, it doesn't just output a new score and leave you to interpret it.

226
00:13:02.640 --> 00:13:09.880
<v Host 2>It runs paired statistical tests to prove that, say, a 3% gain in performance isn't just random statistical noise.

227
00:13:10.060 --> 00:13:13.600
<v Host 1>It mathematically verifies if the improvement is real and repeatable.

228
00:13:13.780 --> 00:13:14.280
<v Host 2>Exactly.

229
00:13:14.240 --> 00:13:19.160
<v Host 1>But the feature that really, I think, changes the deployment game is the MCP server integration.

230
00:13:19.380 --> 00:13:19.920
<v Host 2>Oh, for sure.

231
00:13:20.200 --> 00:13:22.880
<v Host 1>Because MCP stands for Model Context Protocol.

232
00:13:23.040 --> 00:13:29.180
<v Host 1>And from what I understand, this allows you to hook your perfectly tuned Lasagna tested knowledge base directly into an AI agent.

233
00:13:29.480 --> 00:13:29.980
<v Host 2>Immediately.

234
00:13:30.360 --> 00:13:30.860
<v Host 2>Yeah.

235
00:13:30.840 --> 00:13:34.340
<v Host 1>So that agent can then use your validated database as a tool instantly.

236
00:13:34.340 --> 00:13:38.920
<v Host 1>You don't have to write custom API bridges or, you know, complex integration code.

237
00:13:39.040 --> 00:13:41.360
<v Host 2>No, you just point the agent at the Lasagna server.

238
00:13:41.360 --> 00:13:46.040
<v Host 1>And your agent immediately has access to flawless, thoroughly tested recall capabilities.

239
00:13:46.240 --> 00:13:53.640
<v Host 2>It really just removes the friction between evaluating a theoretical pipeline and actually deploying it into a real production environment.

240
00:13:53.840 --> 00:13:58.120
<v Host 1>So with this Lasagna tool built, the researchers unleashed it on all those configurations.

241
00:13:58.580 --> 00:14:06.320
<v Host 1>And the obvious question anyone reading the paper wants answered is, well, what is the ultimate, objective, best configuration they discovered?

242
00:14:06.580 --> 00:14:07.600
<v Host 2>And that's the kicker.

243
00:14:08.070 --> 00:14:14.300
<v Host 2>The paper's second major hypothesis reveals that an objective best configuration does not exist.

244
00:14:14.540 --> 00:14:15.540
<v Host 1>It just doesn't exist.

245
00:14:15.740 --> 00:14:16.240
<v Host 2>No.

246
00:14:16.420 --> 00:14:19.700
<v Host 2>RAG pipelines are bound by a brutal Pareto tradeoff.

247
00:14:20.100 --> 00:14:24.280
<v Host 1>Okay, a Pareto tradeoff, meaning you are forced to make a sacrifice somewhere.

248
00:14:24.280 --> 00:14:27.260
<v Host 1>You cannot optimize every metric simultaneously.

249
00:14:27.640 --> 00:14:28.140
<v Host 2>Exactly.

250
00:14:28.360 --> 00:14:36.420
<v Host 2>You absolutely cannot have the fastest processing speed, the highest retrieval quality, and the most rigorous faithfulness all at the exact same time.

251
00:14:36.540 --> 00:14:37.300
<v Host 1>You have to choose.

252
00:14:37.300 --> 00:14:41.580
<v Host 2>You are forced to pick your priorities based on the specific use case of your application.

253
00:14:41.800 --> 00:14:46.560
<v Host 1>And to help navigate that tradeoff, the framework provides four out-of-the-box profiles, right?

254
00:14:46.780 --> 00:14:51.520
<v Host 1>The researchers essentially did all the heavy lifting to find the optimal points on that Pareto curve.

255
00:14:51.680 --> 00:14:52.540
<v Host 2>They did, yeah.

256
00:14:52.720 --> 00:14:53.640
<v Host 1>So let's go through them.

257
00:14:53.780 --> 00:14:56.460
<v Host 1>The first is the Speed profile.

258
00:14:56.620 --> 00:14:57.120
<v Host 2>Right.

259
00:14:56.960 --> 00:14:59.500
<v Host 1>And this strips out the heavy machinery, from what I understand.

260
00:14:59.680 --> 00:15:03.860
<v Host 1>It uses smaller vector embeddings, drops the complex reranking stages entirely.

261
00:15:04.120 --> 00:15:06.100
<v Host 1>It is lightning fast.

262
00:15:06.100 --> 00:15:09.980
<v Host 1>We're talking processing queries in about 0.7 seconds.

263
00:15:10.160 --> 00:15:10.800
<v Host 2>Super fast.

264
00:15:11.040 --> 00:15:13.960
<v Host 1>But it takes a noticeable hit on complex retrieval quality.

265
00:15:14.200 --> 00:15:14.700
<v Host 2>Right.

266
00:15:14.800 --> 00:15:18.260
<v Host 2>Now, on the other end of the baseline spectrum is the Standard profile.

267
00:15:18.380 --> 00:15:25.980
<v Host 2>This uses a very direct traditional retrieval route, and surprisingly on smaller data sets, it actually wins at pure retrieval quality.

268
00:15:26.100 --> 00:15:26.600
<v Host 1>Oh, really?

269
00:15:26.760 --> 00:15:27.260
<v Host 2>Yeah.

270
00:15:27.160 --> 00:15:32.460
<v Host 2>It excels at finding the exact right documents efficiently without overcomplicating the search.

271
00:15:32.620 --> 00:15:33.120
<v Host 1>Okay.

272
00:15:33.360 --> 00:15:36.400
<v Host 1>Moving up the complexity curve is the Balanced profile.

273
00:15:36.740 --> 00:15:39.680
<v Host 1>This acts as the sweet spot for most production environments.

274
00:15:39.680 --> 00:15:46.500
<v Host 1>It introduces some advanced techniques to maintain accuracy as the system scales up, which we will detail in just a moment.

275
00:15:46.660 --> 00:15:47.380
<v Host 2>Yeah, that one is key.

276
00:15:47.860 --> 00:15:50.720
<v Host 2>And finally, we have the Max-Reliable profile.

277
00:15:50.880 --> 00:15:51.620
<v Host 1>The heavy hitter.

278
00:15:51.920 --> 00:15:52.460
<v Host 2>Exactly.

279
00:15:52.800 --> 00:15:57.220
<v Host 2>This profile utilizes extreme verification to ensure very high faithfulness.

280
00:15:57.360 --> 00:16:04.820
<v Host 2>It aggressively double checks its own work, often making multiple calls to the language model just to verify claims and prevent hallucinations.

281
00:16:05.160 --> 00:16:06.360
<v Host 1>But there's a cost, right?

282
00:16:06.480 --> 00:16:10.440
<v Host 2>A massive latency hit, averaging around 14 seconds per single query.

283
00:16:10.660 --> 00:16:11.160
<v Host 1>Wow.

284
00:16:11.100 --> 00:16:15.400
<v Host 1>14 seconds of waiting for an answer is, I mean, that's an eternity in software.

285
00:16:15.640 --> 00:16:16.140
<v Host 2>It really is.

286
00:16:16.280 --> 00:16:20.560
<v Host 1>And that actually brings up a critical production tip we need to discuss for you guys listening.

287
00:16:20.800 --> 00:16:26.940
<v Host 1>Because a lot of developers right now are currently obsessed with integrating agentic loops into their systems.

288
00:16:27.080 --> 00:16:27.580
<v Host 2>Oh, yeah.

289
00:16:27.740 --> 00:16:28.480
<v Host 2>The current hype.

290
00:16:29.060 --> 00:16:37.560
<v Host 1>Architectures like CRAG, which stands for Corrective RAG, or Self-RAG, the concept is that the AI acts like an autonomous agent.

291
00:16:37.780 --> 00:16:46.760
<v Host 1>It retrieves a document, grades the relevance of that document, and if it decides the information is insufficient, it loops back, rewrites its own search query, and tries again.

292
00:16:47.080 --> 00:16:49.100
<v Host 2>I mean, the theory sounds flawless, right?

293
00:16:49.400 --> 00:16:50.060
<v Host 1>It does.

294
00:16:50.340 --> 00:16:56.080
<v Host 1>But the paper raises a vital warning about the hidden costs of these agentic loops.

295
00:16:56.600 --> 00:17:01.980
<v Host 1>While they are incredible for pushing that faithfulness score up, the tradeoff is just severe.

296
00:17:02.220 --> 00:17:04.440
<v Host 2>You absorb that massive latency cost.

297
00:17:04.740 --> 00:17:12.840
<v Host 1>You're jumping from a snappy two-second response to a 14-second delay while the AI, like, argues with itself in the background.

298
00:17:13.080 --> 00:17:14.620
<v Host 2>But the delay is one thing.

299
00:17:14.960 --> 00:17:18.480
<v Host 1>The paper implies it gets worse than just being slow.

300
00:17:18.940 --> 00:17:25.240
<v Host 1>Agentic loops can actually reduce the overall quality of the information retrieved, which I struggle to understand.

301
00:17:25.240 --> 00:17:30.540
<v Host 1>How does double-checking your work mathematically make you worse at finding the right information?

302
00:17:30.760 --> 00:17:35.720
<v Host 2>It is entirely due to how aggressively these agentic systems filter the context.

303
00:17:35.940 --> 00:17:36.820
<v Host 1>Okay, how so?

304
00:17:36.960 --> 00:17:46.100
<v Host 2>In an effort to be perfectly faithful, an agentic loop will look at a retrieved chunk of text and ask a binary question, like, does this fully answer the user's query?

305
00:17:46.200 --> 00:17:46.840
<v Host 1>Just yes or no.

306
00:17:47.120 --> 00:17:47.620
<v Host 2>Right.

307
00:17:47.320 --> 00:17:47.820
<v Host 2>Right.

308
00:17:47.760 --> 00:17:59.420
<v Host 2>So if the user asks a complex multi-step question, a single chunk of text might only contain a partial clue, perhaps just a bridge fact needed to connect two larger ideas.

309
00:17:59.660 --> 00:18:00.380
<v Host 1>Okay, I see.

310
00:18:00.520 --> 00:18:06.200
<v Host 2>The strict agentic gate will often label that partial clue as irrelevant and just throw it away.

311
00:18:06.740 --> 00:18:15.460
<v Host 2>It aggressively filters out the necessary context chunks, effectively starving the final generator of the nuances it needs to construct a complete comprehensive answer.

312
00:18:15.460 --> 00:18:16.080
<v Host 1>Wow.

313
00:18:16.260 --> 00:18:25.480
<v Host 1>So it's analogous to like a strict editor going through a mystery novel and deleting all the subtle setup and character motives just because they aren't the final clue that solves the murder.

314
00:18:25.720 --> 00:18:26.220
<v Host 2>Exactly.

315
00:18:26.340 --> 00:18:32.260
<v Host 1>By the time you get to the end, the solution makes absolutely no sense because all the bridging context was just thrown out.

316
00:18:32.460 --> 00:18:32.960
<v Host 2>Exactly.

317
00:18:33.260 --> 00:18:44.300
<v Host 2>You really only implement these heavy agentic loops if your specific application demands absolute baseline factual accuracy at the expense of speed and comprehensive nuance.

318
00:18:44.820 --> 00:18:45.320
<v Host 1>Good to know.

319
00:18:45.460 --> 00:18:48.160
<v Host 1>So let's assume a development team has weighed these tradeoffs.

320
00:18:48.340 --> 00:18:51.440
<v Host 1>They review the four profiles and decide to go with the Standard profile.

321
00:18:51.700 --> 00:18:58.400
<v Host 1>It's fast, and on their initial test data set of, say, 5,000 documents, it achieved the absolute best retrieval score.

322
00:18:58.580 --> 00:18:59.180
<v Host 2>Makes sense.

323
00:18:59.340 --> 00:19:01.940
<v Host 1>They test it, it works beautifully, and they prepare to deploy.

324
00:19:02.180 --> 00:19:06.060
<v Host 1>But what happens when that company actually scales their application up?

325
00:19:06.160 --> 00:19:12.740
<v Host 1>Like, they move from the 5,000 document test database to a massive 200,000 document enterprise deployment.

326
00:19:12.740 --> 00:19:16.360
<v Host 2>And this brings us to the third major hypothesis of the paper.

327
00:19:17.160 --> 00:19:23.560
<v Host 2>And it is where a significant number of teams encounter catastrophic surprises in production environments.

328
00:19:23.880 --> 00:19:28.760
<v Host 1>Because most RAG testing out there today is done on what the industry calls toy benchmarks, right?

329
00:19:29.000 --> 00:19:29.500
<v Host 2>Toy benchmarks.

330
00:19:29.700 --> 00:19:33.240
<v Host 1>These are small, pristine data sets of 5,000, maybe 10,000 documents.

331
00:19:33.460 --> 00:19:38.280
<v Host 1>But real enterprise businesses have hundreds of thousands or millions of interconnected documents.

332
00:19:38.280 --> 00:19:45.320
<v Host 1>When we push that winning Standard profile into a database of 200,000 documents, the system breaks.

333
00:19:45.640 --> 00:19:46.240
<v Host 2>Completely.

334
00:19:46.520 --> 00:19:48.440
<v Host 2>A complete rank flip occurs.

335
00:19:48.660 --> 00:19:49.580
<v Host 1>A rank flip.

336
00:19:49.840 --> 00:19:54.320
<v Host 2>Yeah, the performance rankings literally invert as the corpus size grows.

337
00:19:54.660 --> 00:20:00.940
<v Host 2>At 5,000 documents and even scaling up to 15,000 documents, the Standard profile is the undeniable winner.

338
00:20:01.120 --> 00:20:04.180
<v Host 2>It finds the needle in the haystack with extreme efficiency.

339
00:20:04.400 --> 00:20:04.900
<v Host 1>Right.

340
00:20:04.540 --> 00:20:09.100
<v Host 2>But right around 25,000 documents, a crossover begins.

341
00:20:09.300 --> 00:20:13.120
<v Host 1>The Standard profile starts choking on the volume.

342
00:20:13.400 --> 00:20:19.540
<v Host 2>By the time the database expands to 200,000 documents, the Balanced profile completely takes over the leaderboard.

343
00:20:19.720 --> 00:20:25.480
<v Host 2>It outperforms the Standard profile by a massive 13.7% in pure retrieval quality.

344
00:20:25.700 --> 00:20:29.000
<v Host 1>Wait, a near 14% drop in search quality?

345
00:20:29.000 --> 00:20:30.820
<v Host 1>That is a massive degradation.

346
00:20:30.820 --> 00:20:36.020
<v Host 1>What specific mechanism is breaking inside the Standard profile at that scale?

347
00:20:36.280 --> 00:20:38.800
<v Host 2>It fundamentally comes down to distractors.

348
00:20:38.900 --> 00:20:39.480
<v Host 1>Distractors.

349
00:20:39.740 --> 00:20:40.240
<v Host 2>Yeah.

350
00:20:40.300 --> 00:20:46.340
<v Host 2>In a small database, finding the right document is relatively straightforward because there are just fewer competing concepts.

351
00:20:46.920 --> 00:20:52.340
<v Host 2>But at 200,000 documents, you introduce a massive pool of distractors.

352
00:20:52.560 --> 00:20:53.260
<v Host 1>Irrelevant stuff.

353
00:20:53.500 --> 00:21:02.440
<v Host 2>Thousands of completely irrelevant documents that happen to use the exact same keywords sound highly relevant to the basic algorithm, but are actually discussing something else entirely.

354
00:21:02.840 --> 00:21:06.380
<v Host 1>So they are mathematically tricking the basic search engine.

355
00:21:06.540 --> 00:21:07.140
<v Host 2>Precisely.

356
00:21:07.500 --> 00:21:14.060
<v Host 2>The Standard profile relies on a simpler, more direct retrieval mechanism, and it just gets overwhelmed by this ocean of noise.

357
00:21:14.440 --> 00:21:16.780
<v Host 2>Its accuracy plummets as the database grows.

358
00:21:17.120 --> 00:21:21.200
<v Host 2>The Balanced profile, however, maintains a flat, robust trajectory.

359
00:21:21.480 --> 00:21:25.920
<v Host 1>But if the noise is tricking the system, how does the Balanced profile survive it?

360
00:21:26.000 --> 00:21:29.920
<v Host 1>It must be filtering the noise in a way the Standard profile is incapable of, right?

361
00:21:30.300 --> 00:21:35.240
<v Host 2>It survives because it utilizes advanced scale-resistant architectural techniques.

362
00:21:35.620 --> 00:21:40.340
<v Host 2>Specifically, it employs post-retrieval merging and hierarchical chunking.

363
00:21:40.580 --> 00:21:41.860
<v Host 1>Okay, let's break those down.

364
00:21:42.020 --> 00:21:43.080
<v Host 1>Post-retrieval merging.

365
00:21:43.340 --> 00:21:47.440
<v Host 2>With post-retrieval merging, it doesn't just rely on one search method.

366
00:21:47.740 --> 00:21:59.900
<v Host 2>It looks at multiple different search strategies like keyword matching and semantic vector similarity and mathematically fuses the results together, basically cross-referencing them to weed out the distractors.

367
00:22:00.300 --> 00:22:01.440
<v Host 1>That makes a lot of sense.

368
00:22:01.600 --> 00:22:03.380
<v Host 1>And what about the hierarchical chunking?

369
00:22:04.080 --> 00:22:08.060
<v Host 2>So hierarchical chunking fundamentally changes how the AI understands context.

370
00:22:08.740 --> 00:22:16.120
<v Host 2>Normally, if you chunk a document into single paragraphs, the AI might retrieve a paragraph that says the company saw a 20% drop.

371
00:22:16.440 --> 00:22:18.880
<v Host 1>Right, but out of context, that is totally meaningless.

372
00:22:19.080 --> 00:22:20.140
<v Host 1>Which company, which quarter?

373
00:22:20.480 --> 00:22:21.000
<v Host 2>Exactly.

374
00:22:21.420 --> 00:22:25.460
<v Host 2>Hierarchical chunking keeps track of the parent-child relationships in the data.

375
00:22:25.460 --> 00:22:34.880
<v Host 2>If the AI flags that small paragraph as relevant, the system retrieves the entire parent section or chapter and feeds that larger context to the language model.

376
00:22:35.200 --> 00:22:35.940
<v Host 1>I see.

377
00:22:36.200 --> 00:22:43.060
<v Host 2>These mechanisms act as a heavy anchor, preventing the system from being swept away by irrelevant distractors.

378
00:22:43.580 --> 00:22:46.820
<v Host 1>So the takeaway for anyone interacting with this project is critical.

379
00:22:47.060 --> 00:22:51.480
<v Host 1>Never trust a small-scale benchmark if you are architecting a large-scale application.

380
00:22:51.660 --> 00:22:52.160
<v Host 2>Never.

381
00:22:51.800 --> 00:22:59.920
<v Host 1>The pipeline that appears to be your objective best on a toy data set might actually be incredibly fragile when exposed to real-world scale.

382
00:23:00.160 --> 00:23:05.740
<v Host 1>Your absolute winner at 5,000 documents will likely become your biggest liability at 200,000.

383
00:23:06.160 --> 00:23:10.780
<v Host 2>It invalidates a significant portion of how the industry is currently choosing AI architectures.

384
00:23:11.420 --> 00:23:13.780
<v Host 2>Validating at your target scale is not optional.

385
00:23:13.780 --> 00:23:15.400
<v Host 2>It is an engineering requirement.

386
00:23:15.400 --> 00:23:26.880
<v Host 1>Okay, so to pull all of these insights together, for anyone building, managing, or utilizing AI systems, the lessons from the RAG compositionality paper and the Lasagna framework are essential.

387
00:23:27.100 --> 00:23:27.620
<v Host 2>Let's summarize.

388
00:23:28.060 --> 00:23:37.100
<v Host 1>First, you must test your systems end-to-end, holding variables strictly isolated, because gains do not automatically stack.

389
00:23:37.580 --> 00:23:41.040
<v Host 1>Functional duplication will actively cannibalize your performance.

390
00:23:41.300 --> 00:23:41.800
<v Host 2>Right.

391
00:23:42.000 --> 00:23:44.000
<v Host 1>Second, you have to balance your metrics.

392
00:23:44.260 --> 00:23:53.920
<v Host 1>You are operating on a strict Pareto curve, and you must choose your tradeoff between retrieval quality, faithfulness, and latency based on your actual real-world use case.

393
00:23:54.060 --> 00:23:54.940
<v Host 2>No magic bullets.

394
00:23:55.180 --> 00:24:00.520
<v Host 1>And finally, always validate your pipeline at the massive scale you actually intend to deploy it at.

395
00:24:00.660 --> 00:24:07.660
<v Host 2>The overarching theme here is the necessary transition from educated guesswork to rigorous, mathematically accountable engineering.

396
00:24:07.940 --> 00:24:08.460
<v Host 1>Absolutely.

397
00:24:09.040 --> 00:24:15.300
<v Host 2>Now, before we close out this deep dive, there is one final really thought-provoking observation from the researchers that we need to address.

398
00:24:15.560 --> 00:24:16.060
<v Host 1>Yes.

399
00:24:16.160 --> 00:24:22.580
<v Host 2>During the massive sweep of tests, the study documented a fascinating pattern regarding the language models themselves.

400
00:24:22.840 --> 00:24:23.600
<v Host 1>Okay, what was it?

401
00:24:23.800 --> 00:24:36.020
<v Host 2>They found that utilizing a stronger, vastly more advanced underlying LLM generator, like a smarter core AI, can actually partially substitute for a heavy, complex RAG pipeline.

402
00:24:36.320 --> 00:24:36.820
<v Host 1>Really?

403
00:24:36.940 --> 00:24:37.440
<v Host 2>Yeah.

404
00:24:37.060 --> 00:24:45.340
<v Host 2>If the underlying model possesses stronger reasoning and processing capabilities, it requires significantly less hand-holding from the complex retrieval machinery.

405
00:24:45.600 --> 00:24:50.400
<v Host 1>Man, that presents a massive architectural question for the future of AI development.

406
00:24:50.500 --> 00:24:51.060
<v Host 2>It really does.

407
00:24:51.320 --> 00:25:03.720
<v Host 1>Because as raw models continue to evolve, becoming vastly more intelligent, capable of reasoning through noise and holding massive context windows, will all of this intricate RAG machinery eventually become obsolete?

408
00:25:04.000 --> 00:25:05.100
<v Host 2>It's the big question.

409
00:25:05.100 --> 00:25:18.760
<v Host 1>Or regardless of how intelligent the raw AI becomes, will we always require strict diagnostic frameworks like Lasagna to act as the ultimate librarians, forcing the AI to prove its work and remain grounded in verified truth?

410
00:25:19.000 --> 00:25:26.280
<v Host 2>It highlights the ongoing tension between raw computational intelligence and the strict necessity of factual verification.

411
00:25:26.680 --> 00:25:34.080
<v Host 1>It is definitely something to keep in mind the next time you ask an AI a question and have to wonder, how exactly did it arrive at that answer?
