September 20251:09:404.9k views

The database for all your AI needs

About

Marcel Kornacker, the creator of Apache Impala and co-creator of Apache Parquet, joins me to talk about his latest project: Pixeltable, a multimodal AI database that combines structured and unstructured data with rich, Python-native workflows. From ingestion to vector search, transcription to snapshots, Pixel Table eliminates painful data plumbing for modern AI teams.

Transcript

Everything we said

00:00

Aaron Francis

Hey, welcome back to Database School. I'm your host, Aaron Francis, and on this show, we talk with database professionals about their craft. We don't do PR, we don't do sales pitches, we don't do anything boring. We just talk about interesting database stuff, nitty-gritty technical details, war stories, interesting histories, stuff that we don't know. And today, I am here with Marcel Korneker.

00:21

You might be familiar with his name, but you're definitely familiar with some of the products and technologies he's created. He helped shape Google's F1 database. He is the creator of Apache Impala. He's the co-creator of Apache Parquet, and he's here to talk to us about his new company, Pixeltable, which is just truly fascinating.

00:42

You'll hear, you'll hear the light bulbs go off as we're talking and I start to realize what it is. But it is a database, m- a multimodal database built for the AI age. It is extremely fascinating, and we walk through a workflow of taking this exact video and feeding it through Pixeltable and how it all works.

01:03

I think you're really gonna enjoy this one. Please leave a comment down below. Uh, after you're done listening, tell me what parts you liked and tell me who else to have on. So without further ado, let's talk to Marcel. Hey, y'all. Like I said, we are here with Marcel Korneker. Um, he is a longtime member of the, I don't know if you'd call it like the data community, but he's got, he's got a lot of projects under his belt, and today we're gonna talk about Pixeltable.

01:31

But Marcel, do you wanna introduce yourself a little bit further?

01:34

Marcel Kornacker

Yeah. H- uh, happy to. I am a, uh, longtime resident of the East Bay, the Bay-- San Francisco Bay Area. So, um, I went to grad school here. I actually did databases in grad school. Uh, finished in 2000, and, and back then I actually, um, worked on concurrency and recovery, which is something I am-- haven't worked on in a long time, but now I'm picking up again, actually-

01:59

Aaron Francis

Mm

01:59

Marcel Kornacker

... as part of Pixeltable. Um, yeah. And then early on, early 2000s, I had a whole bunch of, uh, jobs at database startups that all failed one after another. It was sort of- ... the dot-com bust years. And, um, ended up at Google in 2003. So was at Google from '03 to '10. Worked on, uh, data infrastructure, scalable data infrastructure for the most part, and toward the tail end, uh, again, on a new database system called

02:29

F1. I was the-

02:31

Aaron Francis

Mm

02:31

Marcel Kornacker

... tech lead of the query engine component of that. And so F1, uh, was an internal, what you would today call HTAP system, uh, you know-

02:40

Aaron Francis

Mm-hmm

02:40

Marcel Kornacker

... hybrid transactional-

02:41

Aaron Francis

Yeah

02:42

Marcel Kornacker

... analytic processing, um, which needed to do OLTP stuff, basically. It was, uh, replacing a heavily sharded MySQL setup in, in ads that was, uh, kind of on critical life support and also, um, had, you know, scale out analytic capabilities. So really what you would call HTAP.

03:02

It was actually the first, uh, user of Spanner internally. So Spanner-

03:07

Aaron Francis

Oh, cool.

03:08

Marcel Kornacker

Spanner, uh, was the successor to Bigtable, basically.

03:11

Aaron Francis

Mm-hmm.

03:11

Marcel Kornacker

And so they, uh, Bigtable did, you know, we all know Bigtable. Bigtable did, um, single-row transactions, which turned out to be a, uh, an Achilles heel when you're doing, uh, database applications. And so Spanner critically added multi-row transactions and, uh, synchronous, uh, uh, uh, replication.

03:33

Synchronous, uh, cross-data center replication. So really, um, interesting, um, availability guarantees. And so, yeah, so F1 was the first customer of Spanner. So that was... And I was doing the query engine side of that. Basically, I wanna say, um, somewhat traditional scale out analytic database architecture.

03:56

And, um, that then led me to leave Google, and I ended up joining a company called Cloudera.

04:04

Aaron Francis

Mm.

04:04

Marcel Kornacker

Back then, uh, still relatively small, and started a project there called Impala. Later on, Apache Impala, which was, in essence, uh, I wanna say scale out, uh, parallel database technology, analytic database technology implemented for, back then, the Hadoop environment, which was, you know, all the rage, like big data-

04:25

Aaron Francis

Mm-hmm

04:25

Marcel Kornacker

... um, et cetera, which nobody calls it that anymore. But yeah, that was kind of, um, how I, how I, uh, progressed into then doing Impala.

04:36

Aaron Francis

Man. Okay. So you have, you have been around, like, you have touched so many important systems, and you're still-- We're gonna get to Pixeltable, which is a company that you co-founded, you're the CTO of, and I love that you are so deep in the game. This is gonna be, this is gonna be very exciting to me.

04:56

So first, before we get to, uh, kinda like advancing into this AI age and what you saw as a missing thing and the reason you founded Pixeltable, tell me about the founding of Impala and kinda that story.

05:09

Marcel Kornacker

Mm.

05:10

Aaron Francis

Um, uh, take us, take us back to that point.

05:12

Marcel Kornacker

Yeah, yeah, yeah. Um, that's actually kinda interesting. Um, so back then, like I said, Hadoop environment, um, the, the prevailing, uh, I wanna say sentiment in the Hadoop environment was this is a new era. Uh, SQL is kind of, you know, if not dead, at least obsolete. It's kind of old technology.

05:34

Uh, there were all the NoSQL databases-

05:36

Aaron Francis

Mm-hmm

05:36

Marcel Kornacker

... and so forth, like flavor of the day. Um, you had a lot of, uh, eventual consistency systems. And, um, the-- my intuition was SQL was still as relevant as it was before, and that Hadoop was really about commoditization of storage rather than creating all new APIs for accessing data systems, right?

06:00

Aaron Francis

Mm-hmm.

06:00

Marcel Kornacker

So that's why I thought Impala was actually a good idea. One thing that was missing in the Hadoop environment was a high-performance analytics system. So-

06:09

Aaron Francis

Okay

06:09

Marcel Kornacker

... um, that was kind of the insight there. Um, another, I wanna say contrarian or... Yeah, a contrarian bet was performance still matters. And, and back then, everything in the Hadoop ecosystem was based on the JVM and written in Java, basically. And, um- You know, I did some, you know, off-the-cuff performance, uh, uh, evaluations and decided maybe this is not a good idea, let's stick with C++, which is what I was used to

06:39

from, uh, Google days.

06:41

Aaron Francis

Mm.

06:41

Marcel Kornacker

And also decided early on that we wanted to do runtime code generation. So Impala was from the get-go, was, uh, designed, uh, written in C++, um, really focused on performance, and was also, I think, the probably the first database system to use LLVM for runtime code generation. So that was kind of baked into it from the beginning, and, uh, it was not-- In the beginning, it was not particularly well-received, actually.

07:09

Like I said, uh, Java was everywhere, and so there was a certain amount of skepticism that this was warranted. But I think the, uh, focus on performance really paid off in the end. And of course, today everything is, uh, extremely performance-focused and so forth. So I think that was a, that was a good bet.

07:28

Aaron Francis

So what is it about y- your, your whole career, uh, and I, I believe you have a PhD, right?

07:35

Marcel Kornacker

Yeah.

07:35

Aaron Francis

So your, your whole career, all of your education, all in and around databases. What is it about that layer of the stack that has just captured you so intensely?

07:47

Marcel Kornacker

Yeah. Um, it's a good question. I don't know. I'm, I'm not sure how to characterize it. I was always interested it, uh, in it, even when I was in, uh, as an undergrad in-

07:56

Aaron Francis

Mm-hmm

07:56

Marcel Kornacker

... in Hamburg, Germany. I, uh, I was very interested in Mike Stonebraker's work, and so I ended up, through a somewhat circuitous path, ended up as a visiting student in, uh, at Berkeley.

08:11

Aaron Francis

Hmm.

08:11

Marcel Kornacker

Um, initially, actually, as a visiting student in the Haas Business School, and then, uh, went to Mike Stonebraker's office and, and volunteered to do, uh, coding work on Postgres. And he said, "Hey, you can do some bug fixing on Postgres." And so I ended up, um, uh, doing that, actually. This was sort of the tail end of university Postgres.

08:33

And, uh, I ended up, you know, he ended up, uh, you know, recognizing that I did good work, and I ended up-

08:38

Aaron Francis

Hmm

08:38

Marcel Kornacker

... being part of the, um, his research group. I ended up being a staff programmer there, and then returned, uh, a year-- Then went back to Germany, finished my degree at University of Hamburg, and came back a year later as a, uh, grad student in the, um, in the CS department at Berkeley. And I was actually, um, the first grad student of my advisor, who was not Mike Stonebraker, 'cause he had left at that time for-

09:06

Aaron Francis

Hmm

09:06

Marcel Kornacker

... for MIT. But, uh, Joe Hellerstein, who actually arrived a semester after me at Berkeley.

09:13

Aaron Francis

How interesting. Yeah, I l- I love it. I mean, I got my, I got my degree in accounting, which is, uh, very different than what I'm doing now. But there's just something about it that clicked the same way that, that programming does, and I, I, I kind of echo that sentiment of like, I love it and I don't really know why. It just fits, like it fits like a puzzle piece in my brain.

09:35

Um, so talk to me, talk to me about like you've seen, you've seen several waves come through. The SQL is dead wave has been coming through over and over and over. Um, and now we're entering into this, uh, we're entering into this AI wave where everything is, is changing again. And so maybe this will bring us closer to the founding of Pixeltable.

09:58

But back up, you know, a couple years, several years ago, what are you-- Like, what were you doing at that point, maybe, you know, two, three, four years ago? What were you working on? And then what did you see coming that, uh, made you think like, "Oh, we gotta found a, a multimodal AI data infrastructure company"? Like, what were you doing?

10:18

What did you observe, and what was missing from the existing offerings?

10:21

Marcel Kornacker

Yeah. Yeah. I was, um, I was an EIR at a venture firm in-

10:26

Aaron Francis

Okay

10:27

Marcel Kornacker

... uh, between '21 and '22, and by sheer coincidence, got pulled into some discovery conversations with, uh, computer vision engineers and, and managers of computer vision teams. So back then, early '22, this was before, um, GPT-3 came out.

10:46

Aaron Francis

Mm-hmm.

10:46

Marcel Kornacker

So it was before the LLM, uh, wave, uh, took off, and computer vision was already a very established and successful area within AI and, in particular, deep learning, right? So in computer vision, deep learning models are, um, are, uh, work well and have been, uh, fairly mature, have been around for a while, and there's a whole bunch of products that are based on basically, um, deep learning computer vision.

11:14

And, um, so yeah. So I ended up being in maybe two dozen discovery conversations, um, as part of being in that, uh, uh, as an EIR at that venture firm, and heard, um, engineers talk about what they actually do, and a lot of it was around data. So-

11:32

Aaron Francis

Mm-hmm

11:32

Marcel Kornacker

... it was very much-- And everything had very much a, a homebrew, I wanna say, grad school vibe in the sense that, oh, y- they have a bunch of Python scripts and a bunch of files, and if they need to do something, they write another script. And then, you know, the scripts were all about basically data pipelines, like reading a bunch of files, transformations, outputting more files.

11:56

And, um, it was clear that there was, that dataset curation was a large part of the work. So in computer vision, you often train your own models because you run them on edge devices. And, uh, training models means you, you iterate on dataset curation, right? You, you have training sets, you have test sets, you identify failures, you identify, uh, uh, new examples of the things that failed in your datasets, um, in your unlabeled datasets.

12:26

Then you need to label them Then you need to, uh, a-add them to your training set, and then the whole thing, uh, begins again, right? And so there is a large, uh, data handling component here. And data is in essence an asset for these teams, right? It's an sort of evolving asset. And, um, from a database-- from my perspective, like clearly this warrants, uh, you know, you have a multi-user database here, right?

12:52

Teams are working on this, collaborating on it, and, uh, but it's very poorly, um, supported by the infrastructure. In particular, since, you know, computer vision is multimodal in the sense that you have images, often video, and, uh, you have annotations, those are mostly in JSON and so forth. You might have embeddings, um, uh, embedding indices, et cetera, were only beginning to be explored back then.

13:19

But, you know, you, you clearly had, uh, quote-unquote, "multimodal data." And, um, often the infrastructure was, uh, put that-- put the structured data into Postgres or some other RDBMS. Um, you might have annotations flying around in JSON files, and you then have your data images, videos, et cetera, sitting around, let's say, in object stores and so forth.

13:43

Aaron Francis

Mm-hmm.

13:43

Marcel Kornacker

And then you have a whole bunch of scripts that kind of tie them together, obviously-

13:47

Aaron Francis

Okay. Mm-hmm

13:47

Marcel Kornacker

... in a very, uh, you know, haphazard manner. And so, um, and then you have that, and then you have a whole bunch of, I wanna say snapshotting and versioning requirements around that. So that was kind of my-- the beginning of me thinking, "Okay, there has to be a better solution for this." And but rather than-- And, and the initial-- my initial reaction to it was, well, clearly a very large part of your work is, um, creating these pipelines.

14:17

Like un-- So unlike-- So I think one interesting aspect here is unlike business analytics, which is very heavily focused on, uh, capturing the data and querying the data, right? This basically defines your entire workload. You, you capture data from your OLTP system, you stick it into a data warehouse, and then you have, uh, you know, Tableau or other, um, BI tools, uh, generate SQL that then runs against those systems, right?

14:44

So this fully captures what you wanna do in analytics. But in, uh, in AI or computer vision, but to an equal extent with other modalities as well, you have a large component that is data generation, data transformation and data generation that is not captured by what an RDBMS can do for you.

15:06

And that often is a very large contributor to the cost of your system. So, you know, running a, uh, an aggregate in, in SQL, it costs nearly nothing. But running an inference model on a billion images costs a lot, right?

15:22

Aaron Francis

Mm-hmm.

15:22

Marcel Kornacker

So there is a-- something, something very important that's part of your core workload that is not captured by the standard database technology. So this was something-- And so I came to that realization thinking, "Well, these people spend a lot of time building pipelines."

15:40

Aaron Francis

Mm.

15:40

Marcel Kornacker

"Maybe I should, you know, have some kind of..." And pipelines are composed of, you know, inputs and outputs, and user-defined logic in the middle and so forth. But then, um, when I thought about it was, but they don't really wanna run the pipelines. And so Pixeltable was basically the idea was you still want a tabular model, a tabular model with asset semantics, in essence.

16:04

So, you know, versioning, you have updates, but now you can capture the, uh, data transformations and generation inside the data model via computed columns. So this is kind of-

16:15

Aaron Francis

Mm

16:16

Marcel Kornacker

... one big thing about Pixeltable, which is that, um, it incorporates what in the AI world is called orchestration, basically running these, this transformation logic. It incorporates that into the data model and makes it part of the, the, uh, you know, visible API of the system. So you define-- It's kind of data-centric AI in the sense that you define what your data looks like.

16:42

You know, you might have-- And Pixeltable also supports extended data types that are appropriate for multimodal workloads. So you have things like video, audio, images, uh, documents, JSON, array. That's what-

16:56

Aaron Francis

Mm.

16:56

Marcel Kornacker

That's what we have currently. And so you need to store that in the database and the table abstraction, but now you can also define model inference and other meaningful transformations inside the tabular model. And so this, as an engineer, frees you from having to think about running incremental pipelines, as an example, right?

17:19

Which is difficult. Um, and so you, you still get basically, um, full control over what transformations and stuff you run, but you don't have to think about the underlying data infrastructure anymore. That's kind of the high level.

17:35

Aaron Francis

Okay. Yeah. Okay. This is, this is really interesting. Um, so you're, you're this EIR, en-entrepreneur in residence, and so you're hanging out talking to a bunch of smart people, and you're noticing, boy, these people are duct taping this whole system together. They've got scripts. They've got S3 or R2 buckets.

17:56

They've got a Postgres database somewhere, and the whole thing is a little bit loosey-goosey. And so you're noticing this problem, and I think what's interesting is you're noticing it with computer vision, which is like, like you said, a mature field, uh, pre-AI, and it just so happens this got even more painful in the age of AI. So you're noticing all this stuff, and what are you-- Did you explore any other-- Um, so clearly the people who were duct taping everything

18:26

together needed a better system. Did you look around and see If there were any better systems, um, or did you immediately go to see like, "Hey, I could probably, you know, put together one unified system"? What was there in the middle? Did they try anything out? Were there-

18:44

Marcel Kornacker

Yeah

18:44

Aaron Francis

... Postgres extensions? There's an extension for everything. So like what were some of the things that you tried that failed that finally led you to say, "Heck, we gotta do this again. We gotta found another company"?

18:55

Marcel Kornacker

Yeah. I mean, it wasn't me trying and failing, but it was-

18:58

Aaron Francis

Mm-hmm

18:59

Marcel Kornacker

... uh, talking in these discovery conversations. We also talked about their tooling and, and so there are some-- there were some systems, there still are some systems, um, that are in the, uh, you know, computer vision, AI, ML space-

19:13

Aaron Francis

Mm-hmm

19:13

Marcel Kornacker

... um, uh, what's it called, DVC and so forth, that are basically doing versioning of, of, uh, binary data and, and so forth. But the, the problem with them as described by managers and engineers is that these are all systems that deal with a sliver of the entire workflow.

19:34

Aaron Francis

I see.

19:35

Marcel Kornacker

And as one manager put it, um, it-- "I, I need to write more code to pull them all together," right? They-

19:42

Aaron Francis

Mm-hmm.

19:42

Marcel Kornacker

So they do, they do a, a single aspect of it, but in order to do your entire workload, workflow, you need to now write more code to tie them together. And that was became the problem because these people are not good at creating systems, right? So you basically ask them to start integrating these systems, and these are all data systems, right?

20:05

So you have to take data from one and put it into the other and, um, you know, um, doing that at large scale and maybe even transactionally with any kind of guarantees is actually-

20:14

Aaron Francis

Mm

20:14

Marcel Kornacker

... not trivial. So-

20:16

Aaron Francis

Mm

20:16

Marcel Kornacker

... the systems are, were very infrequently used. The only thing that really had any market penetration was weights and biases, and that is more of a system for recording basically experiments, right? So it's kind of-- It does some data capture, but it's very far from capturing the data assets that you work with and so forth.

20:38

Aaron Francis

Okay.

20:38

Marcel Kornacker

So, so it was simply the experience of hearing these people talk about the infrastructure they created themselves and then comment on available software systems and why they didn't use them that led me to believe that a, a, a, a something that only solves a partial problem and requires further systems integration is not solving the real problem, which was that-

21:05

Aaron Francis

Okay

21:06

Marcel Kornacker

... these people don't wanna be in the business of-

21:09

Aaron Francis

Right

21:09

Marcel Kornacker

... building large-scale data systems. So-

21:12

Aaron Francis

Yeah, yeah, which is, you know, a very, a very complex and hard thing to do. So let's-- Give me, um, give me a high level. So let's, let's move to Pixeltable here. Pixeltable, I'm gonna read the H1, multimodal AI data infrastructure. Okay? So we've, we've talked about all of the problems, the, the friction of like running these pipelines with these assets and these annotations and, you know, the tabular data.

21:40

Um, what is Pixeltable? Is it a database with storage and you can run Python in it? Is it, uh, is it merely like a, an orchestration engine? Like how do you, at a very high level, and then we can go deeper-

21:57

Marcel Kornacker

Mm-hmm. Mm-hmm

21:58

Aaron Francis

... how would you describe what the actual technology of Pixeltable is? What would you compare it to?

22:04

Marcel Kornacker

Yeah. Uh, that's a good, good question, or that's a, a, that's a good way to start. It's-- Pixeltable at its core is a database system.

22:13

Aaron Francis

Okay.

22:13

Marcel Kornacker

It is an OLTP ACID-compliant database system.

22:17

Aaron Francis

Mm-hmm.

22:18

Marcel Kornacker

Uh, so it has a tabular interface. It is multi-user. Um, you can do single row insert, update, delete.

22:26

Aaron Francis

Okay.

22:26

Marcel Kornacker

Um, we don't position it as such because the practitioners in the space are not looking for a database system.

22:33

Aaron Francis

Mm-hmm.

22:33

Marcel Kornacker

So we don't say, "Hey, we have another database system for you."

22:35

Aaron Francis

Right.

22:36

Marcel Kornacker

Um, so but that's what it is at its core. It utilizes-- Pixeltable today exists only as a, um, locally... And so one thing also to mention is it is very tightly integrated into the Python ecosystem-

22:51

Aaron Francis

Mm-hmm

22:51

Marcel Kornacker

... because it is, you know, uh, AI today is done in Python. We are also going to, um, extend it to support TypeScript obviously-

23:00

Aaron Francis

Cool

23:00

Marcel Kornacker

... because web apps are all, you know, written in TypeScript, and we're gonna get to web apps in a, in a bit. Um, that's also definitely a, a market we're interested in serving, and I think-

23:10

Aaron Francis

Mm-hmm

23:10

Marcel Kornacker

... we are very well positioned to do that. But yeah, so like I said, tight Python integration. Um, uh, when you run it locally, you can-- It's open source, so it's freely installable. It's pip installable, and when you run it locally, it, um, utilizes Postgres under the covers for structured storage.

23:32

Aaron Francis

Okay.

23:32

Marcel Kornacker

But it gives you-- It's not a framework on top of Postgres because it uses it in a way it, it creates its own versioning system-

23:40

Aaron Francis

Mm

23:40

Marcel Kornacker

... and its own transaction system and isolation. And it also, like I said, extends it meaningfully to, uh, data types like documents and, uh, and video and images and so forth. So we don't-

23:53

Aaron Francis

Okay

23:53

Marcel Kornacker

... just treat them as blobs. There's actually meaningful functionality available within that. So it, it, it basically creates its own data model and has its own, its snapshot mechanism and versioning system and-

24:05

Aaron Francis

Okay

24:05

Marcel Kornacker

... transaction system on top of that. So Postgres is used for structured storage and also as a, um, as a transactional queuing system.

24:15

Aaron Francis

Oh, this is great. So what's-- One thing that's very interesting is, um, how you're positioning the, the technology and the company towards, you know, the, the end user. So like you said earlier, we don't market it as, you know, brand new database. We market it, we say that it is this thing because that is what the audience is looking for.

24:36

Um, so that, that is very helpful to hear, like, um, what the people who want it are using it for, and under the hood, like what it actually is from a technology perspective. So how did you, um... I guess, you know, Postgres drives part of this thing under the hood. How are you bringing in what would traditionally be like, you know, object storage, S3, R2?

25:00

How are you bringing that in and storing it alongside that tabular data in a way that's not just blobby? You know, you said it has this a lot more, you know, rich stuff in there. How are you accomplishing that, uh, at a technical level?

25:15

Marcel Kornacker

Um, at a technical level, so like I said, we have extended data types, uh, let's say document and video.

25:21

Aaron Francis

Mm-hmm.

25:21

Marcel Kornacker

Those usually exist as, as, uh, objects, often in an object store. And, um, we allow you to basically, um, when you insert videos or documents into Pixeltable, you give it the URI, and we handle, uh, downloads basically transparently.

25:39

Aaron Francis

Hmm.

25:39

Marcel Kornacker

So that's one-

25:40

Aaron Francis

Cool

25:40

Marcel Kornacker

... that's one aspect, um, that, that is happening. And so-- And we also do basically also transactionally, so that, um, you don't perceive a break between the structured data and the, uh, you know, file objects. That's-

25:58

Aaron Francis

So I can give you, I can give you... I don't know if this is technically correct, but I can give you an insert statement. And if I'm inserting into a column that is of type video, and I give you a remote, you know, S3 URL, Pixeltable's gonna go grab it, pull down that data, and, and basically hang on to it first party at that point?

26:20

Marcel Kornacker

Yeah. So like I said, we do, uh, transparent downloads and caching locally.

26:25

Aaron Francis

Uh-huh.

26:25

Marcel Kornacker

And so what also happens is, let's say you have a table that's actually a good example. You have a video. Let's say what you wanna do is a, um, take the video, get the audio out, transcribe the audio, and then chunk the transcript, and then index those chunks. Right?

26:43

Aaron Francis

This is, by the way, literally what I want to do.

26:45

Marcel Kornacker

Okay.

26:45

Aaron Francis

It's funny you picked that example, 'cause that is exactly what I want to do.

26:48

Marcel Kornacker

Right.

26:48

Aaron Francis

I take podcasts, I download them-

26:51

Marcel Kornacker

Okay

26:51

Aaron Francis

... with a combination of scripts, download them, strip the audio, transcribe it, and then turn it into like, you know, semantic chunks or topics, is what I call them in my database.

27:00

Marcel Kornacker

Right.

27:00

Aaron Francis

So you're speaking my language. Okay.

27:01

Marcel Kornacker

Okay.

27:02

Aaron Francis

So that is what I wanna do. So tell me how to do that-

27:04

Marcel Kornacker

Yeah. Yeah, yeah

27:04

Aaron Francis

... in Pixeltable.

27:04

Marcel Kornacker

And so the way this works is, um, in Pixeltable, like I said, all these data transformations you can define as computed columns. And there is-- So just like in any database system, you also have views on top of tables.

27:19

Aaron Francis

Mm-hmm. Mm-hmm.

27:20

Marcel Kornacker

And in Pixeltable, there's also a concept of, um, user-defined iterators. So this you can think of-

27:26

Aaron Francis

User-defined iterators.

27:27

Marcel Kornacker

Iterators.

27:28

Aaron Francis

Okay.

27:28

Marcel Kornacker

So you can think of it as a table-generating function.

27:30

Aaron Francis

Okay.

27:31

Marcel Kornacker

So for instance, if you need to do something with the, um, the frames of a video.

27:37

Aaron Francis

Mm-hmm.

27:37

Marcel Kornacker

Let's say you're running object detection. You typically do that on frames, not on the video itself. You might wanna have a table that contains one row per frame.

27:46

Aaron Francis

Mm-hmm.

27:46

Marcel Kornacker

But as a view of the base table that contains videos, or in the case of, let's say, documents, you might wanna chunk the documents into smaller pieces so you can index them and do something with them-

27:58

Aaron Francis

Mm-hmm

27:58

Marcel Kornacker

... which you can also define as a view, so through this iterator concept. And so when you are-

28:05

Aaron Francis

Okay. So hold on a second. We have three-

28:07

Marcel Kornacker

Yes

28:07

Aaron Francis

... three different words. We've got iterator, which is, I think you said, a, a table-generating function. We've got view, which is pretty traditional. We've got computed column, which is pretty traditional. It's, you know, uh, for the, the listener, it's where you, like, take one column and have a function, and it generates a second column, either stored or not. But it's like-

28:26

Marcel Kornacker

Yeah

28:26

Aaron Francis

... you know, a nicety. Um-

28:27

Marcel Kornacker

Yeah.

28:27

Aaron Francis

Are, are these three things, uh, discrete, or are we using them somehow interchangeably in some areas? The, the, uh, user-defined-

28:35

Marcel Kornacker

They are discrete

28:36

Aaron Francis

... iterator. Okay.

28:37

Marcel Kornacker

They are discrete-

28:37

Aaron Francis

They're all discrete

28:38

Marcel Kornacker

... and, and, um, can be fully combined, so-

28:41

Aaron Francis

Okay

28:41

Marcel Kornacker

... orthogonal in that sense. So in your use case here where you have a video-

28:47

Aaron Francis

Mm-hmm

28:47

Marcel Kornacker

... you now wanna, uh, transcribe the audio. So you have one computed column. You have a video column. You put your URI in there. You have a computed column that extracts the audio using standard Python libraries, which will then run that functionality and, uh, write a data file somewhere where you want it to be. And-- But it'll do that transactionally, and you will have both things side by side in the same-- in one row.

29:15

Then you do a model invocation, which is the transcription, which is another computed column, which it will also run. And so you can see basically Pixeltable understands the computational DAG that you define through these computed columns.

29:30

Aaron Francis

Mm-hmm.

29:30

Marcel Kornacker

So now you have two computed columns, and the output of the, uh, model invocation is the transcript. Now, but the transcript, let's say, is too long. It's an hour long.

29:40

Aaron Francis

Mm-hmm.

29:40

Marcel Kornacker

Um, and you don't wanna index that. You wanna chunk it. You can now have a text splitter iterator, which takes a text. And again, the text is simply stored as a single column value.

29:54

Aaron Francis

Sure.

29:54

Marcel Kornacker

Um, takes that and outputs a sequence of chunks based on your splitting characteristics. So whatever you want. Let's say you want sentences, or you want a number of characters, or whatever you want, right? You can even define overlap between them, and it will now populate. You've now created a view that is the chunks of your, uh, videos, and the view is defined through the iterator.

30:20

So now you have a single row- Of a chunk per, um, that is broken down basically through that iterator.

30:28

Aaron Francis

Right.

30:28

Marcel Kornacker

And that view is populated automatically and also transactionally. So you insert a single row with a video, it will run through the, uh, audio extraction, transcription, the, uh, text chunking which will then populate the view, and then you can put an embedding index with the model of your choice. So we don't restrict what models you run.

30:49

Aaron Francis

Mm-hmm.

30:50

Marcel Kornacker

Models to us are simply just another user-defined function. So you can then create an embedding index on the chunk column of the chunks view, and then do similarity starts on that. So you basically have the whole pipeline defined through two tables. So this is it, right? You don't need to do anything else, and the system will transactionally now, every time you insert a new row, will run through that and populate the underlying data, which is both generate files,

31:20

uh, put data into Postgres, populate a pgvector index, and so forth. And all of that is done transactionally. That's the important part.

31:29

Aaron Francis

This is insane. This is incredibly cool. Um, okay. So let's, let's back up to the insert a video. So I, I insert this podcast, this podcast that we are on right here. Um, it's, you know, S3 public URL. Um, and so then I can define, I believe it sa- uh, you said it starts with, um, a computed column that strips the audio.

31:55

Now, in my experience, computed columns are pretty restrictive in that, you know, they have to be deterministic, they can't reference other rows. There's all these, you know, traditional constraints around computed columns. Are you telling me you're running Python in your computed columns?

32:11

Marcel Kornacker

Yes, we are.

32:12

Aaron Francis

Okay.

32:12

Marcel Kornacker

So the-- So Pixeltable, like I said, it uses, in the single node version, uses Postgres under covers.

32:18

Aaron Francis

Mm-hmm.

32:19

Marcel Kornacker

But there is a, you know, traditional, I wanna say, a query execution architecture, which is it takes your request, and in this case an insert, looks at the table structure, and comes up with an execution plan which consists of, you know, maybe there's some SQL execution. But then you take it out and you have an execution engine that can run Python over the data it sucked out of Postgres, let's say, and run these UDFs and so forth.

32:47

And so there's-

32:48

Aaron Francis

Mm-hmm.

32:48

Marcel Kornacker

It's, it's based on asyncio. Um, it doesn't do local parallelization yet, but it will do that in the future. And so there is, there's that side. And then that execution engine can then also drive external APIs like S3 or, uh, GCS or whatever, whatever else it is, right? So this is sort of the, the value add here where, um, like I said, you define the computational DAG through the table structure, and the system will figure out how to run it, what the dependencies

33:19

are, what can be overlapped in terms of parallelism. So let's say-

33:23

Aaron Francis

Mm-hmm

33:24

Marcel Kornacker

... you are doing-- You can do model inference as well. Um, Pixeltable already comes with a whole host of integrations of external API providers like, you know, Anthropic, OpenAI, whatever.

33:35

Aaron Francis

Mm-hmm. Mm-hmm.

33:36

Marcel Kornacker

And, um, it can run all of those using asyncio and with maximum parallelism, basically. So it's-

33:44

Aaron Francis

Okay

33:45

Marcel Kornacker

... what you would... If you had to do it in a script, you would be, like I said, putting all of that into a script. But if your data setup changes, you have to rewrite the script and so forth.

33:53

Aaron Francis

Right.

33:54

Marcel Kornacker

And so here you just, you know, have another computed column. That's kind of the thinking.

33:58

Aaron Francis

Okay. Yeah. That, that makes, that makes a lot of sense. So I'm putting this file in, uh, or I'm giving, you know, Pixeltable reference to the file. It's pulling it down. It's running this, uh, it's running this computed column, which is a Python function. And you've said DAG a couple of times, and so this is a directed acyclic graph?

34:18

Marcel Kornacker

Acyclic graph. Yeah, exactly.

34:19

Aaron Francis

Is that right? Acyclic graph?

34:20

Marcel Kornacker

Yeah, yeah. Acyclic, yes.

34:21

Aaron Francis

And so, uh, the layman's terms, and then correct me when I'm wrong, is, um, Pixeltable is looking at this and saying, "Well, this depends on this, depends on that, depends on that, so let's start with that very first one." And I think what you said is, um, it, it, uh, it looks at that and says, "Well, actually, these two things don't depend on each other.

34:42

Let's run them at the same time." Is that correct?

34:45

Marcel Kornacker

Yes.

34:45

Aaron Francis

So you find the root node, figure out what needs to be done first, and then try to run as many of these things in parallel as possible. Is that right?

34:52

Marcel Kornacker

That's correct, yeah.

34:53

Aaron Francis

Okay.

34:54

Marcel Kornacker

Yeah.

34:54

Aaron Francis

Um, and then from there, uh, so we've got computed, we've got computed column, um, and then from there we moved into iterators of taking that, taking that transcript, uh, which is presumably some sort of very verbose JSON, and then, you know, chunking it out into, uh, instead of one giant column, we're doing a bunch of smaller rows that we can then, you know, des- describe topics or parts of the podcast or whatever.

35:22

Um, I guess one, one of my, my next questions is I wanna move into, like, what happens if we update the file, update the video later. Um, but before we get there, this process, I'm well aware, can take, you know, many, many, many minutes to, like, get the video, strip the audio out, uh, get it transcribed.

35:46

And so you keep saying, "I know that this process could be very long." What happens if one step fails? 'Cause you keep saying it's transactional. What happens if one step fails? Do we go all the way back to, "Sorry, you gotta start the whole thing from the beginning"? Um, and is everything, uh, basically invisible to the outside world until the final, uh, the final computed column or iterator runs?

36:10

Talk to me about that kind of, like, in-between process while we're waiting for these APIs to do their work.

36:15

Marcel Kornacker

Yeah. Yeah. Exactly. Um, so at the moment, that is actually the case. So it's basically runs till completion. You don't see it until it's finished.

36:23

Aaron Francis

Mm-hmm.

36:23

Marcel Kornacker

And today, you know, with a single row, um, it doesn't have any, uh, batch or restart semantics, so it would basically, uh, fail if, uh-

36:32

Aaron Francis

Okay

36:33

Marcel Kornacker

Uh, uh, it would fail and then you would lose the work. That's-

36:36

Aaron Francis

Okay

36:36

Marcel Kornacker

... that's actually correct, yes.

36:37

Aaron Francis

Okay.

36:38

Marcel Kornacker

So, um, we might re-engineer that later, but today, especially for single row transactions, it's-

36:44

Aaron Francis

Mm-hmm

36:44

Marcel Kornacker

... typically not that bad. Um, you often don't have, uh, things that run for minutes or, or longer than that.

36:53

Aaron Francis

Okay. And so the trade-off that you've made in the beginning here is we would rather, uh, we would rather have it be yes or no and not some in between unknown state, right?

37:06

Marcel Kornacker

Yeah.

37:06

Aaron Francis

And so that's kind of the decision that you made there in the beginning?

37:09

Marcel Kornacker

Exactly. Exactly. So, you know, like you said, um, you know, um, ACID guarantees-

37:15

Aaron Francis

Mm-hmm

37:15

Marcel Kornacker

... atomicity, that's the important part. That all the things when you insert a video, that this whole thing is either completely there or it isn't. So-

37:23

Aaron Francis

Mm-hmm

37:24

Marcel Kornacker

... you don't have to do, like, cleanup at the end. That's, that's-

37:27

Aaron Francis

Because I imagine, uh, one of the pains that these people were experiencing, your users were experiencing, is that partially completed workflow, cleaning up, figuring out where it fell off. And so in the beginning here you've chosen, hey, we're gonna, we're gonna go all the way or nothing so that you don't live in this, you know, this messy state of having to come back through with cron jobs or whatever and clean it up.

37:52

So that, that, that part makes a lot of sense to me. Now the iterator thing, let's talk about that. So we've gotten a video in, we've gotten it transcribed. I-- does the transcript live in the Postgres database as like a giant JSON blob in this example?

38:08

Marcel Kornacker

It would, yes.

38:09

Aaron Francis

Okay. And so then, um, what is the, what is the process of defining an iterator? Is that-- are you defining an iterator on, uh, the table or against a, a certain column? And then, um, talk to, talk me through that, like, chunking process.

38:25

Marcel Kornacker

Yeah, yeah. Sure. Um, so the iterator, like I said, is basically like a table generating function.

38:30

Aaron Francis

Mm-hmm.

38:30

Marcel Kornacker

So you would define it against the data item. So in this case, you could define it against text or JSON.

38:35

Aaron Francis

Okay.

38:35

Marcel Kornacker

And so we have a text splitter which takes text and then outputs a sequence of text pieces depending on how you define the splitter. We have a video frame iterator that takes exactly-

38:49

Aaron Francis

Mm

38:49

Marcel Kornacker

... that. You have a video and it outputs a bunch of frames, and the frames are output as PIL images, so kind of a standard in the Python world. Um, we have a document splitter which does, you know, lets you take PDFs or Markdown-

39:04

Aaron Francis

Mm. Cool

39:04

Marcel Kornacker

... or HTML and then break it up into pieces based on various criteria, let's say, you know, sentences or headings or number of tokens or whatever you want, right?

39:14

Aaron Francis

Mm-hmm.

39:14

Marcel Kornacker

So kind of common, common ways you typically wanna chunk text. And, um, you can define your own, obviously. Like this is, again-- And you can just take an existing one and fork it and modify it to whatever, um, to fit your needs. And, uh, the important part is that it is then run by the system to populate a view of the, um, you know, the original.

39:39

Let's say if you have a document-

39:41

Aaron Francis

Mm-hmm

39:41

Marcel Kornacker

... you wanna look at the chunks. If you have a video, you wanna look at the frames. And you, and you will do that in a tabular manner as well, which means that you can now run additional computations on the pieces you get back. So in the, uh, audio chunking or transcript chunking case, you're getting these pieces now that live in the view.

40:01

The view is populated automatically and transactionally, and then you can define either more computations on the chunks or-

40:10

Aaron Francis

Mm-hmm

40:10

Marcel Kornacker

... or create an embedding index on it, which is just another computation in essence, right? It's kind of you are, um, you're running an embedding model, and you're getting a vector out, and the system will then store the vector in an index and let you do search, right? Kind of very typical database semantics-

40:27

Aaron Francis

Mm-hmm

40:27

Marcel Kornacker

... but I wanna say adapted to a multimodal environment to deal with the new data types in a meaningful way.

40:35

Aaron Francis

Okay. I know I said it already. This is very cool. Okay. So, um, and maybe it's 'cause you're like speaking my domain, where I, I know the pain that I have gone through to do this exact thing that you're describing. It's like, you know, a couple cr- couple cron jobs, several different commands, and then a bunch of different tables where I'm trying to, you know, paperclip all this stuff together.

40:58

So, um, moving through this whole pipeline again, we've gotten the transcript, then we have our iterator function, which it sounds like Pixeltable provides a lot of first party ones that like solve a lot of common use cases. But you said you can just do anything you want. It's your, it's your world.

41:15

Marcel Kornacker

Mm-hmm.

41:16

Aaron Francis

Um, so I'm gonna pull, I'm gonna pull, you know, a text chunk one out of the Pixeltable whatever, you know, standard library, whatever you call it. Um, and then I'm gonna output for an hour podcast, let's say I output 60 chunks. I just say, "Ah, let's do, you know, about a minute." Maybe there's some overlap defined. Doesn't matter at this point. Then on that view of which is now like, uh, we'll call it like podcast chunks or video chunks or whatever, I can define more computed columns that say, "Hey, take this

41:46

one minute worth of speaking text, turn that into a vector embedding." And then in my application, I can then say, "Let's find places where any guest has talked about Berkeley," and it's gonna go through that table, and it's gonna find, you know, college and Berkeley and PhD, and it's gonna pull out that chunk, which I can then go back to the video, which is Marcel and Aaron talking.

42:12

Is that kinda like the whole, the final pipeline is you end up with these vector embeddings that you can do semantic or, you know-

42:20

Marcel Kornacker

Yeah

42:20

Aaron Francis

... RAG against, that kinda deal?

42:21

Marcel Kornacker

Exactly, yeah. Yeah. That's kind of-

42:23

Aaron Francis

Okay

42:23

Marcel Kornacker

... so it, it allows you to define, you know, if you wanna do RAG, what are you dealing with? You have chunks, you have metadata. Um, you might wanna, after you find a, a piece of transcript, you might wanna identify the exact, uh, let's say, location which you have recorded through metadata, which might just be another column.

42:44

Aaron Francis

Mm-hmm.

42:44

Marcel Kornacker

And, um, you can then use that. You just do a lookup, and you could then use that to basically get a, let's say, a clip of 10 seconds centered on that, uh, piece that you just identified, right? That would just be another, uh, computation that you can run in a select ... statement, quote unquote, right? So this-

43:04

Aaron Francis

Incredible

43:04

Marcel Kornacker

... again, is treating all of that data just as data.

43:08

Aaron Francis

Mm-hmm.

43:08

Marcel Kornacker

And the logic is defined through whatever you want it to be. Like I said, models, transformation logic, user-defined functionality. Um, but it just lets you string it together in a manner that, you know, means you don't have to, you know, be aware of multiple files or-

43:26

Aaron Francis

Right, right, right

43:26

Marcel Kornacker

... where, where everything has to go and so forth. And there's another-- Typically, if you did something like this, you would probably have a, a two-view hierarchy because you start out with a video that is, let's say if it's an hour long, you're not gonna do a one-hour transcript. Most, uh, transcription models have limits on the amount of audio they can take in.

43:46

Aaron Francis

Oh, okay.

43:47

Marcel Kornacker

So you, you're gonna extract one hour of audio as a file, then you use the audio splitter to have a view of audio chunks-

43:56

Aaron Francis

Oh

43:57

Marcel Kornacker

... which again, 'cause they're usually limited, let's say you can only do 90-second transcriptions or something like that, right? So now you have a view that contains one row per 90-second chunk, then you're gonna hand that to the transcription model, which then gives you the text, and then you can do another view on top with the breaking up the text into smaller pieces, uh, that are gonna be useful, let's say sentences or something like that-

44:21

Aaron Francis

Mm-hmm

44:21

Marcel Kornacker

... for the clip. So, you know, typically it's a multi-stage process-

44:27

Aaron Francis

Mm-hmm

44:27

Marcel Kornacker

... that can get very complicated if you have to do it that way.

44:29

Aaron Francis

Uh, yeah. I mean, we're doing like the world's most basic example, and it's already like, well, you know, you gotta have multi-view. So maybe that's where I'm, maybe that's where I'm, uh, experiencing those many, many minute wait times is I will take the entire hour and I'll send it to ElevenLabs, which is the transcript provider.

44:48

Marcel Kornacker

Mm-hmm.

44:49

Aaron Francis

And I guarantee they're like- ... "No, we're gonna chunk this up. We're, we're gonna cut this apart."

44:53

Marcel Kornacker

Yeah, yeah. They, they absolutely, yes.

44:54

Aaron Francis

Yeah.

44:54

Marcel Kornacker

They will absolutely do that.

44:55

Aaron Francis

Uh, okay. All right. That makes a lot of sense. So now, um, talk to me about, let's say, uh, I forgot to prepend the intro to the video, so I messed up. And then I go in-

45:06

Marcel Kornacker

Mm-hmm

45:06

Aaron Francis

... and I'm like, "I wanna update, I wanna update this video." So is that, um, does that kick off the whole workflow again? You, you talk about some sort of like incremental storage and like w-

45:19

Marcel Kornacker

Yeah. Yeah, yeah

45:19

Aaron Francis

Tell me about that, that story there.

45:21

Marcel Kornacker

Yeah. Yeah. Let me actually go back and, and mention one thing.

45:25

Aaron Francis

Yeah.

45:25

Marcel Kornacker

If you did it with Pixeltable, so you, you give, you know, your one hour of audio to-

45:29

Aaron Francis

Mm-hmm

45:29

Marcel Kornacker

... ElevenLabs and you get something back, they will chunk it internally.

45:33

Aaron Francis

Mm-hmm.

45:34

Marcel Kornacker

Um, if you did the chunking through the Pixeltable views, you would basically get smaller pieces, and because of the parallelization of the execution engine, it would actually submit those smaller pieces in parallel to your transcription provider.

45:50

Aaron Francis

There you go.

45:50

Marcel Kornacker

So you would probably get a lot lower latency if you did it that way, is my guess.

45:55

Aaron Francis

Okay.

45:55

Marcel Kornacker

But yeah.

45:55

Aaron Francis

Wow. I, I don't, I don't, I don't know if you came on here to convince me to use it, but you're doing a pretty good job, okay? So let's, let's keep going. Let's say I update the video, then what happens?

46:04

Marcel Kornacker

But the-- Typically, when you update a video, you basically rewrite the file, right?

46:08

Aaron Francis

Okay.

46:08

Marcel Kornacker

So in that case, Pixeltable doesn't, Pixeltable doesn't try to be smart about the like, oh, only like the first 10 seconds of a video got updated.

46:15

Aaron Francis

Right. Right.

46:15

Marcel Kornacker

That'll just basically have to rerun through the, um, run through the whole thing again. But you do get a-

46:20

Aaron Francis

And this is where-

46:21

Marcel Kornacker

You do get a differential version

46:22

Aaron Francis

... we get that transaction. Yeah. That's, that's my question.

46:25

Marcel Kornacker

You get a new version. And if you cared about snapshots, which, uh, which teams that do train models do-

46:33

Aaron Francis

Uh-huh

46:33

Marcel Kornacker

... um, then you would, you know, you would be able to capture the initial one in a snapshot and so forth. Um, for OLTP applications, less relevant.

46:42

Aaron Francis

Mm-hmm.

46:42

Marcel Kornacker

But you know, like I said, in some environments you do want, uh, snapshot facilities.

46:47

Aaron Francis

Yeah. And so going back to the transactional aspect of it, this is where that, like, makes a much bigger difference is I don't wanna have, uh, a transcript that doesn't match the video, right? Because I had to go in and update the video. So I like this especially for updating. I like this all, all or nothing thing.

47:08

Marcel Kornacker

Exactly. And it will also update the index critically. So let's say you-

47:12

Aaron Francis

Mm-hmm

47:12

Marcel Kornacker

... indexed your text chunks, it will then run through the whole thing and update the index, so you don't end up with an index that's not matching your base data.

47:20

Aaron Francis

Right.

47:20

Marcel Kornacker

Which is, you know, every, every RDBMS will do that for you.

47:25

Aaron Francis

Mm-hmm.

47:25

Marcel Kornacker

But, uh, in the AI world, you're typically-- those are typically seen as like you have your vector index on one side, and you have your objects in an object store on the other side, et cetera.

47:36

Aaron Francis

Mm-hmm.

47:36

Marcel Kornacker

So, yeah.

47:36

Aaron Francis

And that's super frustrating when you search for a thing and it says, "I found it," and then you click through it and it's like, "Is this... It's not here." And that's when those things are out of sync. That's very, very frustrating.

47:45

Marcel Kornacker

Yeah.

47:46

Aaron Francis

Um-

47:46

Marcel Kornacker

Or, or you run a batch pipeline later on to update-

47:49

Aaron Francis

Mm-hmm

47:49

Marcel Kornacker

... the index, or you have to rebuild the index over and over again because you don't have any means of capturing the differential data, right? That happens a lot when you talk to practitioners which have, let's say, document indexing. They simply rebuild the whole thing every day or every week or whatever, right?

48:08

Aaron Francis

Mm-hmm.

48:08

Marcel Kornacker

Which is obviously costly, but, um, that's kind of the easiest way out.

48:13

Aaron Francis

Yeah. And so talk to me about like, um, the process of updating the workflow, because let's say I've got, I don't know, 60 podcasts in there that are, you know, all more than an hour, and a lot of work has gone into like getting this data where it needs to be. And then I decide I need to add a new step, or I need to update a certain step, or I wanna, you know, change something.

48:38

What is that, um- What does that process look like in terms of kicking off reworking everything, or do I get to choose? Or like how does that go when I decide, "You know what? My pipeline kind of sucks. Let me fix it."

48:51

Marcel Kornacker

Yeah. I mean, if you just add more, let's say you add more pipeline steps, quote unquote, which would be additional computed columns.

48:57

Aaron Francis

Mm-hmm.

48:57

Marcel Kornacker

Let's say you want to try out one chunking strategy versus another.

49:01

Aaron Francis

Mm-hmm.

49:01

Marcel Kornacker

That, that would be one example. You can just have as many chunking views side by side as you want, like the system doesn't care.

49:08

Aaron Francis

Okay. Yeah.

49:09

Marcel Kornacker

You add another view, it will populate that view when you create it, and then maintain them going forward. That's, that's one example. If you wanna try a different transcription model, you can do that too. You can just add another computed column, and it will only then obviously populate-

49:24

Aaron Francis

Mm

49:24

Marcel Kornacker

... that computed column. Um, and so in that sense, it's incremental. Um, you can add more columns-

49:30

Aaron Francis

That's nice

49:31

Marcel Kornacker

... and you can also add more rows, right? And it will not have to redo the whole thing. You can even say recompute certain columns, and then it'll do-

49:39

Aaron Francis

Hmm

49:39

Marcel Kornacker

... that. And it will understand the dependencies, so you can tell it to then propagate, so it'll know, okay, well, if I recomputed column A and column B depends on it, I will also now re- need to recompute column B.

49:51

Aaron Francis

I love it.

49:52

Marcel Kornacker

And so it has a full view of the, uh, least amount of work it needs to do to accomplish the changes, and basically reflect them back in the table.

50:03

Aaron Francis

Incredible. Um, talk to me a little bit about semantic search, RAG. You know, RAG was hot for a minute, and then people are like, "Oh, no, RAG is bad." And I'm, I'm still thinking, "No, that seems pretty awesome." So like where do you stand as somebody who's deeply embedded in the industry with like semantic search, RAG, the whole, you know, context rot?

50:27

Like what are just some of your thoughts on that whole conversation?

50:30

Marcel Kornacker

Yeah. I mean, RAG is absolutely relevant, right? It, it, it works. Um, you know, you want retrieval. You wanna use retrieval in most applications. Um, we don't have full text search yet, but we will add that as well. People wanna-- There's no need to sort of say you restrict yourself to one kind of retrieval or another.

50:52

Aaron Francis

Mm-hmm.

50:53

Marcel Kornacker

People basically want everything, you know, as hybrid search, quote unquote, which is just another way of saying, "I have two types of indices. I wanna do lookups, and maybe I need some custom functionality to then coalesce the results." But this is basically custom functionality expressible as user-defined logic.

51:09

Aaron Francis

Mm-hmm.

51:10

Marcel Kornacker

And so you can add that as well, right? You can... In, in Pixeltable, you could do two types of lookups, and then add a computed column that takes the-- Like each type of lookup would be a computed column. You can also have computed columns that run queries against other tables. So this would be-

51:25

Aaron Francis

Oh

51:25

Marcel Kornacker

... a RAG, a RAG example, right, where you populate. You have your user query that's, uh, a string column, and then-

51:33

Aaron Francis

Mm-hmm

51:33

Marcel Kornacker

... a computed column would be, um, do the lookup in this other table based on the user input, and the output and the value in that column would be a, uh, a list of dictionaries, right? The matching rows from that other table. And you can do as many kinds of lookups side by side as you want. They all show up as computed columns.

51:54

And then you can have another computed column that simply references them and, and coalesces and, and filters out the best ones, right? This is called re-ranking.

52:04

Aaron Francis

Hmm.

52:04

Marcel Kornacker

Um, again, this is all just user-defined logic based on, "I did a lookup here. I need to do something more," right? Maybe there's a model involved somewhere, but in the end, a lot of it is kind of the data flows and how pieces fit together, right?

52:18

Aaron Francis

Mm-hmm.

52:19

Marcel Kornacker

So again, we're trying to get rid of the data plumbing that's inherent in this process-

52:23

Aaron Francis

Right. Right

52:24

Marcel Kornacker

... but not limit the flexibility you need with models and so forth. So there's no, no limits on your logic and-- but no flexibility. We have-- We are completely opinionated about data infrastructure, right?

52:36

Aaron Francis

Yeah.

52:36

Marcel Kornacker

So that's kind of the-

52:39

Aaron Francis

Which is an interesting, like, uh, an interesting and I, I, from the outside, I think correct choice of we're gonna be super opinionated on this thing, and this thing is like the thing that people don't wanna do, which is all the plumbing.

52:54

Marcel Kornacker

Yes.

52:54

Aaron Francis

And we're gonna be completely agnostic on this other thing, which is what people wanna do, which is mess around with models, pick the best ones for certain use cases. And so that seems to me like a good place to draw the line on opinions. I'm curious from, uh, from the people that are using it currently, besides, you know, my like 101 level podcast stuff, what are other people doing with it?

53:17

That's what I wanna hear. Like what, what are some of the coolest things that you've seen people string together from beginning to end? Um, and like what are their use cases?

53:27

Marcel Kornacker

Yeah. I mean, we basically have users fall into two camps. One is the dataset curation people.

53:33

Aaron Francis

Mm-hmm.

53:33

Marcel Kornacker

So they're basically training models. Um, they're often working in teams. When you're doing dataset curation, like I said, you iterate on the dataset, so you have shared data assets. Um, when you work with video, which is a, a challenging format to work with, just because when you blow up video, if you took video frames and tried to store them, you would get this absolutely massive space blow up.

53:57

And so it becomes completely impractical. So it, it's a real data plumbing challenge. And so you can use Pixeltable to, um, define subsets of video frames based on criteria. You can add annotations such as, you know, whatever. Let's say you have s- simple models that detect, let's say, rain or-

54:17

Aaron Francis

Mm-hmm

54:17

Marcel Kornacker

... something else. You can run that and have that be present as an annotation column, and then do selects and, and basically views, filtered views on that. So that's, that's useful. So this is the biggest-

54:30

Aaron Francis

So are you saying that I could like drop in a video, and then by the time the whole thing's done, I can say, "Give me all the, give me all the parts of this video where it's raining"?

54:41

Marcel Kornacker

Yeah, you could. So you would do a frame view. Um, if you had a cheap rain model, you could just add that as a computed column.

54:50

Aaron Francis

Okay.

54:50

Marcel Kornacker

Um, you could probably also add an embedding index using something like Clip, and then look for-- and then ask for rain. This is the, like, as in, like, run a query with the string "rain" and it will-

55:01

Aaron Francis

Mm-hmm

55:01

Marcel Kornacker

... probably find, find stuff, right? So, um, but you can have specialized models that do, you know, more specialized things, and there are a lot of domains that need specialized models.

55:12

Aaron Francis

Can we talk about this dataset curation thing? This is not-- Like, I understand those words when you put them together, but this is not something I have, you know, intimate knowledge of. So what is the situation where, like, a team is working together on dataset curation and using Pixeltable? Can you walk me through, like, what it is they're actually doing and how they're working together on that kind of stuff?

55:35

Marcel Kornacker

Yeah, yeah, yeah. So typically what you do is, um, when you train models, you have examples and annotations, right? So-

55:42

Aaron Francis

Okay

55:42

Marcel Kornacker

... um, you need to feed the model basically, um, um, examples. Let's say you're doing object detection-

55:49

Aaron Francis

Mm-hmm

55:50

Marcel Kornacker

... and you need to feed the models, uh, images and then the annotation saying this, "These are the objects that are present," right? This is kind of-

55:57

Aaron Francis

Can we, can we pick one? Like dogs. Is that, is that legit? Like, we need to find all the dogs.

56:03

Marcel Kornacker

Yeah, yeah, yeah.

56:03

Aaron Francis

Okay. So walk me through this process.

56:05

Marcel Kornacker

Or dogs or, you know, one, one company I, uh, talked to a while ago, they, um, had models for food waste.

56:14

Aaron Francis

Huh.

56:14

Marcel Kornacker

So basically image of, uh-- And, and this is interesting to, like, cruise ship operators and, and, you know-

56:21

Aaron Francis

Ah

56:21

Marcel Kornacker

... catering organizations. So they have specialized models for, uh, you know, detecting food items on a plate and so forth, right? So something where a general purpose model may not be quite good enough, and so this is-

56:34

Aaron Francis

Okay

56:34

Marcel Kornacker

... the reason why you want something. And so you have, you know, let's say video. You might have, um, you know, many hours, months, years of video and, um, you can then extract the frames, and this is basically your unlabeled dataset, right? It's raw data.

56:52

Aaron Francis

Sure. Okay.

56:52

Marcel Kornacker

Especially with video, you quickly end up with gargantuan amounts of raw data all unlabeled because nobody has time to watch all the videos and label all of them.

57:01

Aaron Francis

So we, we've got months of data from, like, the dishwashing line in a cruise ship, and it's a bunch of plates coming through, just months of it. And they're-- Then they wanna find out how much food are we wasting. Is that right-ish so far?

57:14

Marcel Kornacker

They wanna-- Let's say they wanna train a model to be able to-

57:17

Aaron Francis

Train a model

57:17

Marcel Kornacker

... categorize the items-

57:18

Aaron Francis

Okay. All right

57:18

Marcel Kornacker

... on the plate. And so now you would, you know, you would start out with something. You have to look through it, probably manually identify. So you could create a view of all of the, uh, let's say key frames in the videos.

57:32

Aaron Francis

Okay.

57:32

Marcel Kornacker

Right? That gives you a certain number of frames. You would probably pick, pick a bunch, um, and that you think are interesting, and then send them off to a labeler.

57:42

Aaron Francis

Okay.

57:42

Marcel Kornacker

Or you might have a labeling team, you might need a labeling service. And so that sending off is in itself, uh, data plumbing, right? Typically-

57:50

Aaron Francis

Mm-hmm

57:51

Marcel Kornacker

... you, let's say you use something like, uh, open source Label Studio, which is a labeling tool, or you wrote your own labeling tool. Um, a lot of companies do that because they can make the process more efficient. And so you then need to kind of get the images into this labeling tool, and the labelers then, you know, draw bounding boxes and type-

58:12

Aaron Francis

Mm-hmm

58:12

Marcel Kornacker

... the annotations. You know, this is whatever, cauliflower. And this is usually captured as JSON.

58:18

Aaron Francis

Okay.

58:18

Marcel Kornacker

You now need to associate that JSON with your original image data because that now becomes the training data, right? So you just-- And you went from a large-

58:28

Aaron Francis

I see

58:28

Marcel Kornacker

... selection of unlabeled data to a small selection, a subset of that, of labeled data, which you then use to train your model, right? That's kind of... And then you usually also have test sets and so forth. So but it has to be labeled, right? When you, um-

58:44

Aaron Francis

Mm-hmm

58:44

Marcel Kornacker

... when you train, you provide the labels, and when you then evaluate it, you compare the, the predicted label against the actual label.

58:53

Aaron Francis

Mm-hmm.

58:53

Marcel Kornacker

This is also the, the, uh, test set. And so curation means you now do this, you identify failures on the model, and you now need to look for examples of, or additional examples of these failures in your unlabeled dataset, right?

59:13

Aaron Francis

Okay.

59:13

Marcel Kornacker

'Cause you need to find more examples. Um, typically you have, like I said, very large amounts of unlabeled data, so you now, you go back and look, and this would be an example of semantic search, right? Or-

59:24

Aaron Francis

Mm-hmm

59:24

Marcel Kornacker

... you might do search based on specific criteria, right? Uh, you know, I need more things around, you know, twilight or whatever it is, right? Maybe lighting situations or this or that. And so you do-- You search your database of unlabeled items, um, you identify more, and then you again send them off to the labeling team, which creates more annotations.

59:48

And then you add that to your labeled training or test set, and this is kind of the cycle that you have, right? This is what dataset curation is, is identifying more examples, getting them labeled, and using that for training. And even labeling is in essence a data plumbing problem because you now need to put the label back with the original data, right?

1:00:10

Aaron Francis

And how do you tie, how do you tie those things? 'Cause it sounds like you're saying, um, take a big video, split it into a much smaller number of frames, and then send those frames off to, sounds like a human, to draw boxes around it. How are we getting from the human-- And that process could take, I mean, humans, it could take days, weeks.

1:00:31

How are we getting from the human drawing a box around the cauliflower back into Pixeltable?

1:00:38

Marcel Kornacker

We have-- So Pixeltable also has a concept of, um, external stores. It's not terribly well-developed, but we did actually an integration with, uh, this open source tool called Label Studio. There are other labeling- ... providers and pieces of infrastructure, and we could theoretically also integrate with that. But the idea being that we have data internally, which is your view.

1:01:01

You can now create a view of, let's say, unlabeled data, some of which you identified you want for labeling, and this is represented in the view. And you can now say, "Take that view and externalize the data into this system."

1:01:15

Aaron Francis

Hmm.

1:01:15

Marcel Kornacker

And basically do a, do a two-way sync. So basically, we then drive the Label Studio API to get the images-

1:01:24

Aaron Francis

Ah

1:01:24

Marcel Kornacker

... into that. And when they then, in Label Studio, they produce the annotations, which then outputs JSON, and we're also able to take that JSON and put it back into the Pixeltable table. And so you have this two-way sync going on. So again, the idea that we get rid of the data plumbing that is needed for this process.

1:01:46

So then-

1:01:46

Aaron Francis

Wow. So you get rid of-

1:01:47

Marcel Kornacker

And it's also, and it's also transactional

1:01:48

Aaron Francis

... you, you that's crazy. You get rid of the plumbing all the way, not only out to the labeling studio, but presumably you're, you know, polling or checking or something, and you're getting the data back in from when they draw the box and write the word cauliflower. Then you suck that back into Pixeltable, and now that may kick off y- uh, yet a, a further, you know, process because now that column is populated with the JSON blob of-

1:02:14

Marcel Kornacker

Exactly

1:02:15

Aaron Francis

... what the annotations are.

1:02:16

Marcel Kornacker

Yeah. Yeah, yeah.

1:02:17

Aaron Francis

Wow, okay.

1:02:18

Marcel Kornacker

And then, and then you can take that and externalize it as a, let's say, PyTorch dataset, and then use that for training, right? That's kind of the idea that once data is in Pixeltable, you shouldn't have to, uh, write data plumbing yourself. That's kind of, that's sort of the aspiration that we have, right? To get rid of all data plumbing that is inherent in this process.

1:02:41

Aaron Francis

Um, talk to me about, like, where the company is right now. Um, what's on the horizon? Um, just give me like, uh, first of all, how old is the company? It's only, like, a couple of years, right?

1:02:55

Marcel Kornacker

Not e- not even a couple of years. We incorporated last April, I think.

1:02:59

Aaron Francis

Wow, okay.

1:03:00

Marcel Kornacker

And we raised a seed round in, uh, 5.5 million in May of last year, May or June.

1:03:06

Aaron Francis

Okay.

1:03:06

Marcel Kornacker

And so yeah, we've been around for a little over a year. Um, currently, like I said, the only product is the open source package.

1:03:14

Aaron Francis

Mm-hmm.

1:03:14

Marcel Kornacker

We are working on a cloud service, and the-

1:03:17

Aaron Francis

Okay

1:03:17

Marcel Kornacker

... first, the first iteration of that is gonna be, uh, basically a data sharing service. So the idea that if you use Pixeltable to produce a table, your dataset locally, you need to share it with your collaborators, your teammates.

1:03:32

Aaron Francis

Sure.

1:03:33

Marcel Kornacker

And the data sharing service is kind of, you can think of it like a GitHub for tables.

1:03:37

Aaron Francis

Mm-hmm.

1:03:37

Marcel Kornacker

And, uh, that allows you, again, to incorporate video and, and, uh, multimodal data and make that part of a seamless process. And the, uh, uh, V2 or V1, whatever you wanna call it, the next iteration of that will then also include cloud execution for actually-

1:03:56

Aaron Francis

Yeah

1:03:56

Marcel Kornacker

... cloud-hosted tables, so that you can then-

1:03:58

Aaron Francis

Yeah

1:03:58

Marcel Kornacker

... have horizontal scaling, and you can do, you know, drop that stuff through, um, a Python SDK and later on also TypeScript SDK-

1:04:07

Aaron Francis

Mm-hmm

1:04:07

Marcel Kornacker

... into the cloud-hosted table and run these transformations on our infrastructure as an example.

1:04:14

Aaron Francis

Yeah.

1:04:14

Marcel Kornacker

So.

1:04:15

Aaron Francis

That, that makes a ton of sense to me. So, uh, looking out, like... So that, that is coming soon. I see we've got a wait list for it. I'll leave a link down below. Looking out, let's say, five years, I know that at that point everything is murky and nobody knows, but, like, what is your, what is your vision for what Pixeltable could come to encompass, and how far, like, into that game do you think you are at this point?

1:04:42

Marcel Kornacker

Mm-hmm. Yeah. I mean, Pixeltable really the, uh, you know, cloud execution, the point is to create a data platform, a horizontally scaling data platform that, A, can serve as a store of record for these kinds of applications.

1:04:57

Aaron Francis

Mm-hmm.

1:04:57

Marcel Kornacker

So no more need to atomize your data and to put it into other systems. So this is a store of record. Like I said, it is transactional, uh, asset compliant. Um, horizontal scale out, um, which means, you know, the flexibility to run very large workloads, um, which is what people wanna do.

1:05:18

Aaron Francis

Mm-hmm.

1:05:18

Marcel Kornacker

And also, um, as part of cloud execution, we will also have, um, emphasize the OLTP nature of that, which is often not about dataset curation. Um, OLTP here means that you have a video. Let's say, um, you don't just wanna go over your, um, you know, the, the podcast you did in the past.

1:05:39

You have videos now where you wanna do, um, a quick transcript and maybe pull out four key frames and tell a short story about it or something like that.

1:05:50

Aaron Francis

Mm-hmm.

1:05:50

Marcel Kornacker

Like, and you wanna do that as a user-facing service.

1:05:52

Aaron Francis

Mm-hmm.

1:05:53

Marcel Kornacker

So the ability to then take the processing power that is, uh, you know, you can embed in tables and be able to create, uh, serving endpoints that do this execution and, uh, basically run through this, run it in a cloud environment, and then also store the outputs and so forth, which is typically-

1:06:13

Aaron Francis

Mm-hmm

1:06:13

Marcel Kornacker

... what you wanna do. That you don't just wanna run something, you want a record of, of what happened here.

1:06:18

Aaron Francis

Sure.

1:06:18

Marcel Kornacker

And have it all basically be, um, part of one, the platform and a very simple interface. So basically being able to go from, "I am defining a workflow through this table interface," to, "I am now able to serve a single request-" Which results in a single row insert into that table through an external API endpoint, and basically pull all of that together.

1:06:42

That's kind of the, the longer term vision.

1:06:45

Aaron Francis

Mm-hmm. Wow, that's pretty compelling. Um, what are you looking for right now? So, bunch of people who love databases are listening to us talk for an hour about databases. What, what are you looking for for Pixeltable? More engineers, more open source contributors, people getting the word out? How can, how can the audience, uh, get involved with this?

1:07:08

Marcel Kornacker

Yeah. I mean, in, in many ways, you know. Uh, A, someone like yourself, become a user, try it out.

1:07:13

Aaron Francis

Mm-hmm.

1:07:13

Marcel Kornacker

Like, if you, if you are dealing with, um, you know, media data, you probably have a need for some of that. Um, that's useful. We are hiring, um, and we are, um, uh, I wanna say hybrid. We have an office in the, in San Francisco, um, and so we're doing engineering in person in San Francisco.

1:07:35

And, um, and yeah. And otherwise get, get engaged. Like, we have a Discord channel, and, uh, we'd love to hear from users. And, um, yeah. The- wait for our data sharing service and, uh, sign up for that as well.

1:07:50

Aaron Francis

Well, this is, this has been a lot of fun. I'll be honest, I felt like this was a little outside my wheelhouse, like above-- It's definitely above my pay grade. Um, but this is like, I can absolutely see myself using this. I gotta learn a little bit of Python. That's fine. I'll, maybe I'll wait around for TypeScript. But this is incredibly, uh, incredibly useful for the type of work that I'm doing, which is a whole lot of like, take this media and let's generate a bunch of other stuff from it.

1:08:20

Marcel Kornacker

Mm-hmm.

1:08:20

Aaron Francis

And I acutely feel that pain. So tell-- I'll, I'll leave links to everything down below.

1:08:26

Marcel Kornacker

Yeah.

1:08:26

Aaron Francis

But tell people where they can, they can find you and follow you, um, and learn more about you and Pixeltable.

1:08:33

Marcel Kornacker

Yeah, absolutely. Um, you know, uh, look at us on GitHub. It's called, you know, Pixeltable.

1:08:39

Aaron Francis

Hmm.

1:08:39

Marcel Kornacker

There's pixeltable.com, um, which also has links. And, uh, you know, we have fairly extensive docs with a lot of tutorials and sample applications. And there's also link-

1:08:51

Aaron Francis

Are you on-

1:08:51

Marcel Kornacker

... link in the Discord channel

1:08:52

Aaron Francis

Are you on LinkedIn? Okay.

1:08:54

Marcel Kornacker

I'm on L- Yes, I'm on LinkedIn. Um-

1:08:56

Aaron Francis

Okay

1:08:56

Marcel Kornacker

... easy to find as well.

1:08:58

Aaron Francis

Okay.

1:08:58

Marcel Kornacker

I can, uh, I can provide the link later. But yeah-

1:09:01

Aaron Francis

Perfect

1:09:01

Marcel Kornacker

... please reach out. Um, yeah.

1:09:05

Aaron Francis

Awesome. Well, this is, this has been a lot of fun. Thank you for doing this and for explaining it at, uh, at a level that is easy for everyone to understand. This is very, very cool. Um, for y'all listening, if you're listening on audio, there's video on YouTube. If you're watching on YouTube, hi, there is audio if you want RSS only. Um, please reach out to Marcel, give Pixeltable a try, um, and let us know what you think.

1:09:30

I think this was a lot of fun, and I'm super grateful for you doing this. Thank you, Marcel.

1:09:35

Marcel Kornacker

Aaron, thank you for having me.

1:09:36

Aaron Francis

Yep. All right, y'all. We will talk soon

Databases

More videos on databases

All videos

Get the next one by email

I’ll send you some more. Not too many.

Join 7,500+ other readers.

Read past issues