YouTube2Text

Data Agents over S3: Build the Missing Semantic Layer for Files - Dmitry Petrov, DataChain — Transcript

by Agentic AI Foundation · 4,373 words · 751 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Uh today we're talking about the data
  2. 0:02agents over object storages, a S3,
  3. 0:04Google, or whatever storage you use,
  4. 0:07maybe some NFS drives or whatever.
  5. 0:11Uh and how to build, how to make agents
  6. 0:13smarter, right? How to build like
  7. 0:15semantic layer, uh so agents understand
  8. 0:17not only the files and
  9. 0:19uh directories, but also like the
  10. 0:21meaning, like what is inside the files
  11. 0:23and such.
  12. 0:25So a little bit about myself.
  13. 0:27Uh
  14. 0:29right now I'm working on Data Chain.
  15. 0:30It's a startup in this uh
  16. 0:33uh data data space when we work with
  17. 0:35robotics company, neuroscience companies
  18. 0:37to help them to analyze
  19. 0:39uh data and unstructured data, right? On
  20. 0:41object storages such as a S3.
  21. 0:44And before I created an open source tool
  22. 0:46DVC, data version control, if you know
  23. 0:48that that one, it's kind of like a Git
  24. 0:50for data.
  25. 0:51And it was like a whole previous startup
  26. 0:53about this. And I start my career as a
  27. 0:55data scientist at Microsoft like after
  28. 0:57my PhD.
  29. 1:00So and I live in a world when
  30. 1:03uh data is not like structured, not data
  31. 1:06warehouses, but data is like files, uh
  32. 1:10images, videos, MRI scans, like 3D
  33. 1:13images, uh
  34. 1:15different types of telemetry from robots
  35. 1:16and such, right? So it's kind of like a
  36. 1:18little bit messy world
  37. 1:20uh and there's like a not like a data
  38. 1:22warehouse or something when you can put
  39. 1:24everything and you don't like analyze.
  40. 1:26No, data lives in a S3 and you need to
  41. 1:28hike somehow like deal with this mess, I
  42. 1:31would say, right? And if
  43. 1:34if you not put enough effort and like
  44. 1:37discipline around it, it's really hard
  45. 1:38to make sense of like your uh
  46. 1:42millions of
  47. 1:43uh files.
  48. 1:45So you'll find this talk especially
  49. 1:48useful if you are dealing with these
  50. 1:49types of challenges, right? You work
  51. 1:51with uh video or sensor data, you have
  52. 1:54like a millions of files somewhere
  53. 1:56three types of drive, right? And of
  54. 1:59course you to use agents uh and be
  55. 2:02efficient for this.
  56. 2:04And today agents like work with a
  57. 2:05storage pretty well, but still like they
  58. 2:07are huge
  59. 2:10huge opportunity to whole like make them
  60. 2:12smarter, to give them more understanding
  61. 2:14of like what is inside of your files,
  62. 2:16like how to use this, what was used for
  63. 2:18training, what was what didn't use. So
  64. 2:21there's a huge opportunity
  65. 2:23to make your AI and agents workflow like
  66. 2:26way more
  67. 2:28productive.
  68. 2:30So
  69. 2:33like in ideal world like what do you
  70. 2:34need
  71. 2:36like what is an ideal UI would be when
  72. 2:39you work with this like massive amount
  73. 2:41of data.
  74. 2:42Like and it's obvious like you want to
  75. 2:43kind of like a chat with data quoted
  76. 2:46when you can just ask agents a question,
  77. 2:48right? And it like gives you like answer
  78. 2:49like oh what data we used for trained
  79. 2:52this previous model, right? And agent
  80. 2:54you give you answer, right? Just by
  81. 2:55looking at your S3 storage.
  82. 2:58Or
  83. 3:00we got a new videos, right? How many
  84. 3:03like episodes at nights we got here
  85. 3:05because we are liking like
  86. 3:07night episodes from our models, right?
  87. 3:10So this kind of like question you want
  88. 3:11to ask agent
  89. 3:13and but at the same time you understand
  90. 3:15that in majority of the cases it's not
  91. 3:17not possible to like answer this
  92. 3:19question or answer those questions
  93. 3:20efficiently, right?
  94. 3:23The three problems.
  95. 3:25First it's a it's a simple like context
  96. 3:28window, right?
  97. 3:29If with a video files you cannot put
  98. 3:31like sometimes like a one single video
  99. 3:33file to the context
  100. 3:34window of LLM, right?
  101. 3:36So you can chat with this, right? But
  102. 3:38when when there is like a dozens of like
  103. 3:40hundreds millions of files, right? Of
  104. 3:42course it doesn't work. You need to have
  105. 3:44some
  106. 3:45intermediary layer, right? That's handle
  107. 3:48this meta information, right?
  108. 3:50Second is execution.
  109. 3:52Of course in order to extract this
  110. 3:54information from the
  111. 3:56from the
  112. 3:58files
  113. 4:00you need to run something, some
  114. 4:02maybe like LLM calls, maybe like run
  115. 4:05some models, maybe just simple parser to
  116. 4:07extract this information from like from
  117. 4:10the video, right? But that's requires
  118. 4:12usually like a dozens, hundreds of
  119. 4:14machines, sometimes GPU machines to do
  120. 4:16this efficiently.
  121. 4:17And the
  122. 4:18the third question it's a very
  123. 4:20interesting and very nuanced like how
  124. 4:22you trust this data.
  125. 4:24If some work was done and you put this
  126. 4:26information to the
  127. 4:27to your context, so everyone else can
  128. 4:30use and your agent can use this
  129. 4:31information, so great.
  130. 4:33But
  131. 4:34do you really trust this result?
  132. 4:36Did anything changed since then?
  133. 4:39So that's a very interesting and nuanced
  134. 4:41question that's
  135. 4:43if you
  136. 4:44build like a context layer, that's kind
  137. 4:45of the second other question you will be
  138. 4:47dealing with. So we will
  139. 4:49touch like every single of those.
  140. 4:52So the context is
  141. 4:54I explained already, right? That's
  142. 4:55obvious one. So you just cannot like put
  143. 4:58several terabytes of your data to your
  144. 4:59model, right? You need to build
  145. 5:01something between you and
  146. 5:06and the
  147. 5:08files, right? So semantic layer,
  148. 5:11knowledge base, whatever you call it,
  149. 5:12right? But some meta information needs
  150. 5:13to be presented and useful for agents,
  151. 5:17right?
  152. 5:19So the
  153. 5:22resource part, efficiency part,
  154. 5:24I also mentioned briefly, you need like
  155. 5:26a multiple machines to run it. You need
  156. 5:29to manage the access to this machine to
  157. 5:30your team, right? You need to have some
  158. 5:32budget for the team because you don't
  159. 5:34want to like someone to waste like 90%
  160. 5:36of your budget like in a
  161. 5:38you know, like a single day sometimes.
  162. 5:41And
  163. 5:43so everything needs to be managed in a
  164. 5:45proper way.
  165. 5:47And that's also like a part that your
  166. 5:49agent should be
  167. 5:51dealing with, right?
  168. 5:54And the trust
  169. 5:58if context layer is here, if you have
  170. 6:00this knowledge base,
  171. 6:02very likely you run like a thousands of
  172. 6:04this types of jobs, datasets, whatever
  173. 6:07you call it, right? Like a policies
  174. 6:09about your data.
  175. 6:10But in many cases, to answer one
  176. 6:12question,
  177. 6:13you don't need like one all all 1,000.
  178. 6:16Sometimes you need like a one two result
  179. 6:17from the past, but you need to know like
  180. 6:19what exactly you need, right? And that's
  181. 6:21not an easy problem to figure out.
  182. 6:24Um
  183. 6:25and if you put like a a lot more access,
  184. 6:28right? Like oh, takes like everything.
  185. 6:30Just look at everything and
  186. 6:33give me like the best answer. Your
  187. 6:35agents, you can do
  188. 6:37like a lot of work, right?
  189. 6:39But in practice, it doesn't work, right?
  190. 6:42It was like a good block post like a few
  191. 6:44months ago from Anthropic.
  192. 6:46It was based on the structured data, not
  193. 6:48like a videos or stuff, but on
  194. 6:49databases. But they said if we give
  195. 6:53agents like everything, all the tables,
  196. 6:55all DBT
  197. 6:59files,
  198. 7:01everything,
  199. 7:02accuracy increases less than 1%.
  200. 7:07Right? It's kind of like not very
  201. 7:08useful. At the same time, the agents
  202. 7:10spent a lot more time to kind of go
  203. 7:12through this data, right?
  204. 7:13So and of course, they built like a kind
  205. 7:15of like a trust machinery,
  206. 7:17what you should trust, what you
  207. 7:18shouldn't trust.
  208. 7:20And in general, like when agents like
  209. 7:22work with like everything,
  210. 7:25for them it's like a kind of like a hard
  211. 7:26to decide like what is useful, what is
  212. 7:28not, what is still
  213. 7:30and you need to like update and when you
  214. 7:32like cannot do this update. And recently
  215. 7:35we built like a benchmark. It's private
  216. 7:37now, but hopefully it will be released
  217. 7:39publicly. And we
  218. 7:40have done this changes like purely on
  219. 7:42the agents without like any like our
  220. 7:44machinery, right? Just purely like
  221. 7:46agents and very simple prompts.
  222. 7:48And we found that
  223. 7:52let me show you this.
  224. 7:55Yeah, if you analyze like a Claude
  225. 7:57versus Codex, right? How they deal with
  226. 8:00a complex problems on the storages,
  227. 8:02right?
  228. 8:03And if something happened on your
  229. 8:05storage,
  230. 8:07they're making mistake in like
  231. 8:09in 50% cases like at the most, right?
  232. 8:12Or sometimes even worse. What does it
  233. 8:13mean?
  234. 8:14You ask a question
  235. 8:16and they don't
  236. 8:17check your data, you don't check like if
  237. 8:19cache is synchronized or not and give
  238. 8:21you like answer right away, right? Or
  239. 8:23opposite, you ask us a simple question
  240. 8:25and you have like a cache like
  241. 8:27right next to the agent in your
  242. 8:28directory
  243. 8:30and agents like start like pulling data
  244. 8:33and answering this question like based
  245. 8:35on like
  246. 8:36remote machine, right? Like the object
  247. 8:38store, right? Like wasting resources
  248. 8:40basically instead of like just taking
  249. 8:41data and make sure like sync is correct
  250. 8:44right in answering this this result,
  251. 8:45right? So the current agents like have
  252. 8:49have a lot of improvement these days on
  253. 8:52the structured data. If you deal deal
  254. 8:54with a very houses, SQL etc etc, right?
  255. 8:57There are a lot of benchmarks,
  256. 8:59publications, blog posts about it,
  257. 9:02right? But when you deal with the
  258. 9:03storages and audio and video in in a S3
  259. 9:06or such, so that's a little bit more
  260. 9:08tricky question.
  261. 9:11Okay, so how how we deal with this,
  262. 9:14right?
  263. 9:16So
  264. 9:18first of all,
  265. 9:21the building this knowledge base or
  266. 9:23context layer
  267. 9:25is like not a simple problem in general,
  268. 9:27right? If you try to build like your
  269. 9:28like a knowledge base yourself, right?
  270. 9:30You know like how much effort you need
  271. 9:32to put to do this
  272. 9:33to do this. And with this like a
  273. 9:36metadata the problem is the same. And
  274. 9:38you cannot just put you know like a few
  275. 9:40I don't know smart folks on your team
  276. 9:41and say hey let's come up with the the
  277. 9:43best knowledge
  278. 9:46knowledge base, right? So if you do
  279. 9:48that,
  280. 9:49the next day after the release it will
  281. 9:50be like outdated because people come up
  282. 9:52with the new ideas, new insights and
  283. 9:55those insights is more valuable that
  284. 9:57what you have already in the knowledge
  285. 9:58base, right? It should be like
  286. 9:59dynamically
  287. 10:01created and agents and that's agent's
  288. 10:03responsibility to do this
  289. 10:05to do this job. Every time you ask
  290. 10:07questions, they give you like answer and
  291. 10:11they need to like populate update this
  292. 10:13knowledge base
  293. 10:14continuously.
  294. 10:17Uh the second problem is about not like
  295. 10:20a smart one I would say it's about the
  296. 10:22software in general.
  297. 10:24Resources, compute, how you deal with
  298. 10:26your I don't know cloud like EC2
  299. 10:29instances or whatever cloud you use
  300. 10:31right?
  301. 10:32Uh
  302. 10:33how you run this like a data agents, how
  303. 10:35you do this parallel parallel run
  304. 10:39synchronized data etc etc etc right?
  305. 10:42Tons of like millions of simple millions
  306. 10:43of questions and agents like very
  307. 10:46efficient like
  308. 10:47can solve like majority of those
  309. 10:48questions but the efficiency won't be on
  310. 10:51the level that you kind of like expect I
  311. 10:53would say
  312. 10:54from these types of soft
  313. 10:56from these types types of use cases like
  314. 10:58one example like simple example like a
  315. 10:59couple month ago I was working on some
  316. 11:01problems
  317. 11:02on my command line through the agents.
  318. 11:05Problem was solved all good. I close my
  319. 11:07laptop next day I open my laptop and I
  320. 11:10see my bill and it was like 1,000 more
  321. 11:13than it was yesterday like what like how
  322. 11:15you I waste this money
  323. 11:17and it turns out I just closed my
  324. 11:18machine right and it didn't shut down
  325. 11:21the
  326. 11:22the instances I was using like yesterday
  327. 11:23right? So like
  328. 11:25problems like this but there's a lot a
  329. 11:27lot a lot more right?
  330. 11:28Or another example like how to just
  331. 11:31understand like what files you have
  332. 11:33right like a simple problem like list
  333. 11:35data
  334. 11:36list files of you on your S3 right?
  335. 11:39And if you look at like traditional
  336. 11:40tools like AWS command line right or R
  337. 11:44clone
  338. 11:45sometimes like with a bucket of like a
  339. 11:47few millions of
  340. 11:49objects
  341. 11:50it might take like a few minutes
  342. 11:51sometime like 1 hour
  343. 11:53to really like give you like just a list
  344. 11:55of the file with without any like a file
  345. 11:57copy right?
  346. 11:58And again that's part of
  347. 12:00has to be in the system. Can agents do
  348. 12:02this?
  349. 12:03Yeah they can but by default they do
  350. 12:04this don't do this like efficiently and
  351. 12:06you need to push them really really
  352. 12:07really really hard to like
  353. 12:11get all the like right parameters, like
  354. 12:13settings, understand your bucket better,
  355. 12:15and then finally synchronize, right? So
  356. 12:17you don't want to waste like think about
  357. 12:19this, right?
  358. 12:20You just need a tool that that just
  359. 12:21works.
  360. 12:24So and
  361. 12:26the knowledge base.
  362. 12:27So you ask questions, right? It's
  363. 12:30aggregated in the knowledge base
  364. 12:33and that's kind of like the idea of this
  365. 12:37like speeding up. So if I want to
  366. 12:39understand how many
  367. 12:42how many the one type of accident we got
  368. 12:47so my agents in the best scenario should
  369. 12:49not like do the whole compute. For
  370. 12:50example, like okay, I have like some
  371. 12:52example of robot logs and say how often
  372. 12:55this is happening in our in our
  373. 12:58logs, right? And we might have like a
  374. 13:02years of robot logs, right?
  375. 13:04In ideal case, your agent should go to
  376. 13:06the knowledge base, find out the similar
  377. 13:08question
  378. 13:10and try to answer your question based on
  379. 13:11this this result, right? It should take
  380. 13:13like a few minutes, couple minutes
  381. 13:15instead of like I don't know like a
  382. 13:16couple days of computing, recomputing
  383. 13:18all the result and go go through those
  384. 13:20those files.
  385. 13:23So
  386. 13:26let me quickly show how
  387. 13:29it can work, right?
  388. 13:31So one sec.
  389. 13:35I will be showing you like
  390. 13:37this through Slack, right? On the Slack,
  391. 13:41it's connected to through the tag to
  392. 13:43Cloud Code, right? So under the hood,
  393. 13:45it's Cloud Code, right? But interface I
  394. 13:47will be using is Slack. It's like that
  395. 13:49simple.
  396. 13:50And we ask like one simple question
  397. 13:52here.
  398. 13:56So
  399. 13:58which of
  400. 13:59five tasks in this bucket
  401. 14:01have most usable videos, right?
  402. 14:04Exclude like dark, blurry, blah blah
  403. 14:06blah. So like basically like remove the
  404. 14:08mess, right? And like how many like
  405. 14:10videos like a good quality videos we
  406. 14:11actually have in this particular bucket.
  407. 14:14Bucket is not massive. kind of uh
  408. 14:16maybe like
  409. 14:17few
  410. 14:18few gigabytes. Uh and if you start this
  411. 14:22solving this problem from scratch,
  412. 14:23right? It will generate the code. It
  413. 14:25will run the code. It takes you maybe
  414. 14:27like 30 minutes, maybe like 45, right?
  415. 14:31And then uh yeah, data will be synced,
  416. 14:33of course. Like another additional
  417. 14:36additional 15 minutes. And then you got
  418. 14:38like some tables like this, right?
  419. 14:41What is it?
  420. 14:43Table uh a tables uh like this, right?
  421. 14:46Uh usable minutes,
  422. 14:48uh total minutes,
  423. 14:51etc etc etc, right?
  424. 14:53But
  425. 14:54in with the
  426. 14:57one sec.
  427. 15:01Uh first of all,
  428. 15:03uh
  429. 15:04with the context
  430. 15:06uh and if this job was done before or
  431. 15:09something similar was done before,
  432. 15:11right? The agent can be used this
  433. 15:13information. And instead of like
  434. 15:15spending like 32 minutes, 23 minutes to
  435. 15:18computing the stuff, right?
  436. 15:20Uh
  437. 15:20on this bucket, on this like specific
  438. 15:22like directory,
  439. 15:24uh it can just like retrieve the
  440. 15:26information, previous information and
  441. 15:28start from from from it, right? And
  442. 15:30overall, it took only like a 3 minutes
  443. 15:32to answer the question, right? Like kind
  444. 15:34of like a 10 x more. And it's especially
  445. 15:37nice when you deal with a like a scale,
  446. 15:40not like a few gigabytes, right? But
  447. 15:41like a few terabytes because this would
  448. 15:43be might be like not 23 minutes, might
  449. 15:45be like 23 hours of of of compute.
  450. 15:49Uh
  451. 15:50so and that's
  452. 15:52what is the answer?
  453. 15:55That's the answer, right? So you ask and
  454. 15:57in 3 minutes you got an answer. And this
  455. 15:59answer based on this like meta
  456. 16:01information plus additional compute uh
  457. 16:03it it done. I'll explain
  458. 16:06uh a bit more.
  459. 16:09So uh
  460. 16:12another interesting thing is uh
  461. 16:15if you are getting those answer from the
  462. 16:17knowledge base,
  463. 16:19it not necessarily means those answers
  464. 16:21are correct.
  465. 16:22And if agents like was found this
  466. 16:25information
  467. 16:26and based on this information made like
  468. 16:28some aggregation and give the result,
  469. 16:29right?
  470. 16:31Something might be missing, right?
  471. 16:33And in order to answer my question,
  472. 16:36the agents figure out that there are
  473. 16:38some duplicates. If I just summarize
  474. 16:40everything about these videos,
  475. 16:43I
  476. 16:44I'll get like a
  477. 16:4614 minutes of useful video information
  478. 16:48from the bucket. But actual answer is
  479. 16:50like 11 minutes,
  480. 16:52right?
  481. 16:53So it's not enough to just retrieve this
  482. 16:54information from the knowledge base, but
  483. 16:56also check if this information matches
  484. 16:59the reality, right? Because something
  485. 17:01might changed, first of all. Second, if
  486. 17:03that matches my request, because my
  487. 17:05request about useful video and if you
  488. 17:08have duplicates, you don't need
  489. 17:09duplicates, you need to remove the
  490. 17:10duplicates. For another question, you
  491. 17:12will include duplicates, right? But like
  492. 17:13agents should understand this like all
  493. 17:15the all the context, right?
  494. 17:18The same with episode, right? Number of
  495. 17:20episode was
  496. 17:21decreased, right?
  497. 17:23So that's kind of like it's about like
  498. 17:25the same table I showed you before from
  499. 17:27the
  500. 17:29from the
  501. 17:30trusting the information, right?
  502. 17:32You can trust information, but in some
  503. 17:35in 50% of the cases it won't be correct
  504. 17:38if something if if something is wrong
  505. 17:41with the with the data.
  506. 17:45So
  507. 17:47yeah, let me show you like how it looks
  508. 17:49like. One sec. Is it the right one?
  509. 17:54Yeah. So it gives you like this
  510. 17:56information like useful useful videos,
  511. 17:58right?
  512. 17:59I don't know if you see this.
  513. 18:01But what is important, this job this
  514. 18:05this job didn't take a lot of time,
  515. 18:06right? It took like a two minutes like
  516. 18:08about three minutes only. And why it was
  517. 18:10so fast? Because it was based on the
  518. 18:12previous one, on the previous data,
  519. 18:15which is already in the knowledge base,
  520. 18:17right? It took like a 10 machines and
  521. 18:20oh, which one? I think that one.
  522. 18:2210 machines and another like a 4
  523. 18:24minutes. So it's kind of like a half an
  524. 18:26hour of compute, right? And we kind of
  525. 18:27reduced this for like us
  526. 18:29uh for to a small amount. So that's kind
  527. 18:31of like the value of this.
  528. 18:33And I'll show you also like how the
  529. 18:37knowledge base looks like.
  530. 18:39So if you take this data set, right?
  531. 18:43Uh it was kind of like converted to like
  532. 18:46simple form of like kind of MD, right?
  533. 18:49Uh so all the information about the
  534. 18:51result, right? So like a general
  535. 18:53description,
  536. 18:54dependencies, that's a very crucial one
  537. 18:55for the for agents.
  538. 18:57Uh if you work with data, you know like
  539. 18:59how important data lineage, data
  540. 19:01dependency are, but for agents it's not
  541. 19:04important, it's just must have. If you
  542. 19:05don't have this information like agents
  543. 19:07like
  544. 19:08uh
  545. 19:09uh hallucinating badly.
  546. 19:12And yeah, schema
  547. 19:15that's kind of like a usual data stuff,
  548. 19:17right? Uh to understand like what is
  549. 19:19inside, uh how to work with this, how to
  550. 19:21generate like efficient code to work
  551. 19:23with that.
  552. 19:34So
  553. 19:36yeah, I think we'll stop here.
  554. 19:39Uh and yeah, when you work with a when
  555. 19:41you work with a massive amount of data,
  556. 19:44yeah, you need context, you need to
  557. 19:46understand what's happening.
  558. 19:47You need compute to make this context
  559. 19:49and what is more nuance and important,
  560. 19:52you need to have some trust machinery uh
  561. 19:55to understand what you actually trust
  562. 19:56from the context layer and what you need
  563. 19:59to uh verify.
  564. 20:01Thank you.
  565. 20:05>> [applause]
  566. 20:09>> I have a question. Uh so I'm wondering
  567. 20:11uh about optimizations. Um
  568. 20:14uh I'm I'm more curious
  569. 20:16I'm curious about um use cases for
  570. 20:19um not prolonged um query, but instead
  571. 20:24live user session query of object
  572. 20:26storage. So, for example, I'm commonly
  573. 20:29finding myself having to move large
  574. 20:32amounts of data off of Postgres into
  575. 20:34object storage now. Um
  576. 20:37and I need things to be highly queryable
  577. 20:41um near instantly. So, complex queries,
  578. 20:44joins and instant. Um so all of the
  579. 20:47above. And um
  580. 20:50that that has been the issue. And so I I
  581. 20:51find myself right now just straddling
  582. 20:53like uh
  583. 20:54the exact data structure that allows me
  584. 20:57to query it and find it in Postgres and
  585. 20:59then the bloated meaty part that I could
  586. 21:03still locate, but then retrieve from
  587. 21:04object storage. But um I guess what I'm
  588. 21:06asking is like um
  589. 21:09let's say in an extreme scenario all of
  590. 21:11that were in your data structure and and
  591. 21:14tooling,
  592. 21:15is the queryability
  593. 21:17equally fast or can I also do like um
  594. 21:20complex joins and indexes and things in
  595. 21:23my object storage by what you're
  596. 21:24proposing?
  597. 21:25>> Yeah. So, if I understood the question
  598. 21:27correctly, so you work with databases
  599. 21:29and data warehouses, right? Like
  600. 21:30structured data. You query this data,
  601. 21:33you're getting some results.
  602. 21:35You like store this results somewhere
  603. 21:37and you need to kind of understand what
  604. 21:39is stored, what is not, and how to like
  605. 21:41efficiently query and efficiently reuse
  606. 21:42this
  607. 21:43or it's different?
  608. 21:45>> Um
  609. 21:46maybe like this is an agentic
  610. 21:48conference, let's say. Um I have my um
  611. 21:51JSON blob
  612. 21:53of some harness run. And I want to be
  613. 21:57able to do a cross-query efficiently
  614. 22:00across many many thousands of these and
  615. 22:02get the information near instantly. Um
  616. 22:05that's and so like we're talking 100
  617. 22:08milliseconds, 200 milliseconds, like a
  618. 22:09very small fast rapid retrieval,
  619. 22:11something that I could do in Postgres.
  620. 22:13>> Yep.
  621. 22:13>> Um that doing that with Data Chain.
  622. 22:17>> Yeah. So, Data Chain doesn't do like
  623. 22:19query itself. It queries through the
  624. 22:21data warehouses, right?
  625. 22:23So, in some cases you it can work with
  626. 22:27Postgres right or together with a
  627. 22:29Postgres and like a Snowflake together
  628. 22:31right? And if you like ask data change
  629. 22:33to do something some specific stuff
  630. 22:35right like oh I need to find these types
  631. 22:36of use cases right it will
  632. 22:39build like a pipeline which will be
  633. 22:41transpired to the query to the Postgres
  634. 22:43that it run like a Postgres query.
  635. 22:45[laughter] So we don't have like any
  636. 22:46engine like a SQL engine or whatever.
  637. 22:48>> So it's not for a really live instant
  638. 22:51use case it's more for prolonged so
  639. 22:54>> yes yes it's it's kind of like more for
  640. 22:57analytical use cases like data warehouse
  641. 22:59use cases like in this case like a
  642. 23:02usual scenario would be like not like a
  643. 23:04Postgres query that you kind of like do
  644. 23:06like online right but like a Snowflake
  645. 23:08there's a lot of logs and you need to
  646. 23:10extract some like useful information
  647. 23:12from this like a massive amount of logs
  648. 23:14then yeah that's would be like kind of
  649. 23:15like our use case. For life I mean yeah
  650. 23:19we usually just collect like life
  651. 23:20information from
  652. 23:23as a history data but not not life.
  653. 23:32>> Test okay
  654. 23:33it'd be curious number one are there any
  655. 23:35particular repositories or skills you
  656. 23:37would recommend for like augmenting data
  657. 23:40in general like in data cleaning
  658. 23:42processes and then are you aware of any
  659. 23:44sort of ablation studies to see what
  660. 23:46actually gets you the most bang for the
  661. 23:48buck in terms of all of the processing
  662. 23:51that you can do on on your data.
  663. 23:55>> So if you're talking about like a tools
  664. 23:57right and skills
  665. 23:59so what we use right? First of all like
  666. 24:02we use like a lot a lot of like standard
  667. 24:03stuff right libraries like I don't know
  668. 24:06like a SQL Lite like a Postgres
  669. 24:07connector like Snowflake all the stuff
  670. 24:09right obviously and data change kind of
  671. 24:12like combines like
  672. 24:14everything like under it's it's
  673. 24:16umbrella.
  674. 24:17In terms of like a skills and MCPs like
  675. 24:20we end up building our own stuff because
  676. 24:23if you take like a standard one like a
  677. 24:24three
  678. 24:25MCP for example right it's kind of
  679. 24:27useful but like mostly for like an
  680. 24:29engineering more specific, like a tasks,
  681. 24:32right? Not like analytics and high-scale
  682. 24:34analytics.
  683. 24:35Uh so we end up building our our own
  684. 24:38stuff.
  685. 24:39And uh
  686. 24:41the abolition question uh could you
  687. 24:44clarify that one?
  688. 24:44>> Yeah. I mean there there could be
  689. 24:46something file names are wrong or they
  690. 24:48they don't tell you anything. Uh you
  691. 24:50should improve file names or you you
  692. 24:52should cut videos into shorter pieces
  693. 24:55and or I I don't know remove content
  694. 24:57that is actually not relevant. I think
  695. 24:59there there's there are a ton of data
  696. 25:02cleaning um processes that I would
  697. 25:04imagine make all of this
  698. 25:07processing faster, right? Like if you
  699. 25:09can like remove a million of the like 3
  700. 25:11million files that just like would be
  701. 25:13insanely valuable. Um so yeah, I'm
  702. 25:16wondering how you think about this uh
  703. 25:19as in like there's a toolkit of things
  704. 25:20that I can apply to a data set to make
  705. 25:23it easier like accessible.
  706. 25:26>> Yeah, that's a good question. So
  707. 25:28so far what we see
  708. 25:29the current agents doing a pretty good
  709. 25:32job on this stuff, right? If you point
  710. 25:35to the video and say
  711. 25:36I need to I don't know identify these
  712. 25:39types of use cases in this video
  713. 25:41like agents does like a really good job
  714. 25:43to like suggesting you like in
  715. 25:44implementing use cases, right? It will
  716. 25:46say oh we can do like using like some
  717. 25:49VLM, right? And split videos by like I
  718. 25:51don't know like a
  719. 25:52one FPS should be enough for your
  720. 25:54problem. Like are we doing KLMs? Are we
  721. 25:57doing like a cheap models or we are
  722. 25:59doing some I don't know like a dummy I
  723. 26:01don't know YOLO whatever run, right? And
  724. 26:03based on meta information we do like
  725. 26:05aggregation and stuff, right? They're
  726. 26:07like pretty good
  727. 26:08in these problems in general, but the
  728. 26:11problem is when you go to details in
  729. 26:13some particular domain in some
  730. 26:14particular team
  731. 26:16that stop working
  732. 26:18and the problem is the team level
  733. 26:19knowledge it's not as
  734. 26:21generalizable like at least like we we
  735. 26:23don't feel like see like this kind of
  736. 26:25like a patterns like what we can
  737. 26:27how we can
  738. 26:28help like specific like robotics company
  739. 26:32companies that's like to transfer some
  740. 26:34knowledge which is useful in one company
  741. 26:35but
  742. 26:36also will be useful in another company.
  743. 26:39Beside like a very dumb simple thing
  744. 26:41here, right? Like how to move data, how
  745. 26:43to move files, how to get like resources
  746. 26:44and such. So that's I think that's kind
  747. 26:47of like the next level.
  748. 26:49Once we like dumb
  749. 26:51when we done done with the plumbing and
  750. 26:53resources and such so we can
  751. 26:55we hopefully will get to this level.

About this transcript

This page contains the full transcript of Data Agents over S3: Build the Missing Semantic Layer for Files - Dmitry Petrov, DataChain by Agentic AI Foundation, generated from the public captions YouTube serves with the video. The transcript has 4,373 words across 751 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.