The database for all your AI needs
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.
Everything we said
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.
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.
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.
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.
But Marcel, do you wanna introduce yourself a little bit further?
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-
Aaron Francis
Mm
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
F1. I was the-
Aaron Francis
Mm
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-
Aaron Francis
Mm-hmm
Marcel Kornacker
... hybrid transactional-
Aaron Francis
Yeah
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.
It was actually the first, uh, user of Spanner internally. So Spanner-
Aaron Francis
Oh, cool.
Marcel Kornacker
Spanner, uh, was the successor to Bigtable, basically.
Aaron Francis
Mm-hmm.
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.
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.
And, um, that then led me to leave Google, and I ended up joining a company called Cloudera.
Aaron Francis
Mm.
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-
Aaron Francis
Mm-hmm
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.
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.
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.
Marcel Kornacker
Mm.
Aaron Francis
Um, uh, take us, take us back to that point.
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.
Uh, there were all the NoSQL databases-
Aaron Francis
Mm-hmm
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?
Aaron Francis
Mm-hmm.
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-
Aaron Francis
Okay
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
from, uh, Google days.
Aaron Francis
Mm.
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.
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.
Aaron Francis
So what is it about y- your, your whole career, uh, and I, I believe you have a PhD, right?
Marcel Kornacker
Yeah.
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?
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-
Aaron Francis
Mm-hmm
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.
Aaron Francis
Hmm.
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.
And, uh, I ended up, you know, he ended up, uh, you know, recognizing that I did good work, and I ended up-
Aaron Francis
Hmm
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-
Aaron Francis
Hmm
Marcel Kornacker
... for MIT. But, uh, Joe Hellerstein, who actually arrived a semester after me at Berkeley.
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.
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.
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?
What did you observe, and what was missing from the existing offerings?
Marcel Kornacker
Yeah. Yeah. I was, um, I was an EIR at a venture firm in-
Aaron Francis
Okay
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.
Aaron Francis
Mm-hmm.
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.
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-
Aaron Francis
Mm-hmm
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.
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.
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?
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.
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.
Aaron Francis
Mm-hmm.
Marcel Kornacker
And then you have a whole bunch of scripts that kind of tie them together, obviously-
Aaron Francis
Okay. Mm-hmm
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.
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?
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.
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?
Aaron Francis
Mm-hmm.
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."
Aaron Francis
Mm.
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.
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-
Aaron Francis
Mm
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.
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-
Aaron Francis
Mm.
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?
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.
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.
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
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-
Marcel Kornacker
Yeah
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"?
Marcel Kornacker
Yeah. I mean, it wasn't me trying and failing, but it was-
Aaron Francis
Mm-hmm
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-
Aaron Francis
Mm-hmm
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.
Aaron Francis
I see.
Marcel Kornacker
And as one manager put it, um, it-- "I, I need to write more code to pull them all together," right? They-
Aaron Francis
Mm-hmm.
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?
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-
Aaron Francis
Mm
Marcel Kornacker
... not trivial. So-
Aaron Francis
Mm
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.
Aaron Francis
Okay.
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-
Aaron Francis
Okay
Marcel Kornacker
... these people don't wanna be in the business of-
Aaron Francis
Right
Marcel Kornacker
... building large-scale data systems. So-
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.
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-
Marcel Kornacker
Mm-hmm. Mm-hmm
Aaron Francis
... how would you describe what the actual technology of Pixeltable is? What would you compare it to?
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.
Aaron Francis
Okay.
Marcel Kornacker
It is an OLTP ACID-compliant database system.
Aaron Francis
Mm-hmm.
Marcel Kornacker
Uh, so it has a tabular interface. It is multi-user. Um, you can do single row insert, update, delete.
Aaron Francis
Okay.
Marcel Kornacker
Um, we don't position it as such because the practitioners in the space are not looking for a database system.
Aaron Francis
Mm-hmm.
Marcel Kornacker
So we don't say, "Hey, we have another database system for you."
Aaron Francis
Right.
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-
Aaron Francis
Mm-hmm
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-
Aaron Francis
Cool
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-
Aaron Francis
Mm-hmm
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.
Aaron Francis
Okay.
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-
Aaron Francis
Mm
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-
Aaron Francis
Okay
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-
Aaron Francis
Okay
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.
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.
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?
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?
Marcel Kornacker
Um, at a technical level, so like I said, we have extended data types, uh, let's say document and video.
Aaron Francis
Mm-hmm.
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.
Aaron Francis
Hmm.
Marcel Kornacker
So that's one-
Aaron Francis
Cool
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-
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?
Marcel Kornacker
Yeah. So like I said, we do, uh, transparent downloads and caching locally.
Aaron Francis
Uh-huh.
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?
Aaron Francis
This is, by the way, literally what I want to do.
Marcel Kornacker
Okay.
Aaron Francis
It's funny you picked that example, 'cause that is exactly what I want to do.
Marcel Kornacker
Right.
Aaron Francis
I take podcasts, I download them-
Marcel Kornacker
Okay
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.
Marcel Kornacker
Right.
Aaron Francis
So you're speaking my language. Okay.
Marcel Kornacker
Okay.
Aaron Francis
So that is what I wanna do. So tell me how to do that-
Marcel Kornacker
Yeah. Yeah, yeah
Aaron Francis
... in Pixeltable.
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.
Aaron Francis
Mm-hmm. Mm-hmm.
Marcel Kornacker
And in Pixeltable, there's also a concept of, um, user-defined iterators. So this you can think of-
Aaron Francis
User-defined iterators.
Marcel Kornacker
Iterators.
Aaron Francis
Okay.
Marcel Kornacker
So you can think of it as a table-generating function.
Aaron Francis
Okay.
Marcel Kornacker
So for instance, if you need to do something with the, um, the frames of a video.
Aaron Francis
Mm-hmm.
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.
Aaron Francis
Mm-hmm.
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-
Aaron Francis
Mm-hmm
Marcel Kornacker
... which you can also define as a view, so through this iterator concept. And so when you are-
Aaron Francis
Okay. So hold on a second. We have three-
Marcel Kornacker
Yes
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-
Marcel Kornacker
Yeah
Aaron Francis
... you know, a nicety. Um-
Marcel Kornacker
Yeah.
Aaron Francis
Are, are these three things, uh, discrete, or are we using them somehow interchangeably in some areas? The, the, uh, user-defined-
Marcel Kornacker
They are discrete
Aaron Francis
... iterator. Okay.
Marcel Kornacker
They are discrete-
Aaron Francis
They're all discrete
Marcel Kornacker
... and, and, um, can be fully combined, so-
Aaron Francis
Okay
Marcel Kornacker
... orthogonal in that sense. So in your use case here where you have a video-
Aaron Francis
Mm-hmm
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.
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.
Aaron Francis
Mm-hmm.
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.
Aaron Francis
Mm-hmm.
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.
Aaron Francis
Sure.
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.
So now you have a single row- Of a chunk per, um, that is broken down basically through that iterator.
Aaron Francis
Right.
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.
Aaron Francis
Mm-hmm.
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,
uh, put data into Postgres, populate a pgvector index, and so forth. And all of that is done transactionally. That's the important part.
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.
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?
Marcel Kornacker
Yes, we are.
Aaron Francis
Okay.
Marcel Kornacker
So the-- So Pixeltable, like I said, it uses, in the single node version, uses Postgres under covers.
Aaron Francis
Mm-hmm.
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.
And so there's-
Aaron Francis
Mm-hmm.
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
are, what can be overlapped in terms of parallelism. So let's say-
Aaron Francis
Mm-hmm
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.
Aaron Francis
Mm-hmm. Mm-hmm.
Marcel Kornacker
And, um, it can run all of those using asyncio and with maximum parallelism, basically. So it's-
Aaron Francis
Okay
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.
Aaron Francis
Right.
Marcel Kornacker
And so here you just, you know, have another computed column. That's kind of the thinking.
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?
Marcel Kornacker
Acyclic graph. Yeah, exactly.
Aaron Francis
Is that right? Acyclic graph?
Marcel Kornacker
Yeah, yeah. Acyclic, yes.
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.
Let's run them at the same time." Is that correct?
Marcel Kornacker
Yes.
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?
Marcel Kornacker
That's correct, yeah.
Aaron Francis
Okay.
Marcel Kornacker
Yeah.
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.
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.
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?
Talk to me about that kind of, like, in-between process while we're waiting for these APIs to do their work.
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.
Aaron Francis
Mm-hmm.
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-
Aaron Francis
Okay
Marcel Kornacker
Uh, uh, it would fail and then you would lose the work. That's-
Aaron Francis
Okay
Marcel Kornacker
... that's actually correct, yes.
Aaron Francis
Okay.
Marcel Kornacker
So, um, we might re-engineer that later, but today, especially for single row transactions, it's-
Aaron Francis
Mm-hmm
Marcel Kornacker
... typically not that bad. Um, you often don't have, uh, things that run for minutes or, or longer than that.
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?
Marcel Kornacker
Yeah.
Aaron Francis
And so that's kind of the decision that you made there in the beginning?
Marcel Kornacker
Exactly. Exactly. So, you know, like you said, um, you know, um, ACID guarantees-
Aaron Francis
Mm-hmm
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-
Aaron Francis
Mm-hmm
Marcel Kornacker
... you don't have to do, like, cleanup at the end. That's, that's-
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.
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?
Marcel Kornacker
It would, yes.
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.
Marcel Kornacker
Yeah, yeah. Sure. Um, so the iterator, like I said, is basically like a table generating function.
Aaron Francis
Mm-hmm.
Marcel Kornacker
So you would define it against the data item. So in this case, you could define it against text or JSON.
Aaron Francis
Okay.
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-
Aaron Francis
Mm
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-
Aaron Francis
Mm. Cool
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?
Aaron Francis
Mm-hmm.
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.
Let's say if you have a document-
Aaron Francis
Mm-hmm
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.
The view is populated automatically and transactionally, and then you can define either more computations on the chunks or-
Aaron Francis
Mm-hmm
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-
Aaron Francis
Mm-hmm
Marcel Kornacker
... but I wanna say adapted to a multimodal environment to deal with the new data types in a meaningful way.
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.
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.
Marcel Kornacker
Mm-hmm.
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
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.
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-
Marcel Kornacker
Yeah
Aaron Francis
... RAG against, that kinda deal?
Marcel Kornacker
Exactly, yeah. Yeah. That's kind of-
Aaron Francis
Okay
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.
Aaron Francis
Mm-hmm.
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-
Aaron Francis
Incredible
Marcel Kornacker
... again, is treating all of that data just as data.
Aaron Francis
Mm-hmm.
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-
Aaron Francis
Right, right, right
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.
Aaron Francis
Oh, okay.
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-
Aaron Francis
Oh
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-
Aaron Francis
Mm-hmm
Marcel Kornacker
... for the clip. So, you know, typically it's a multi-stage process-
Aaron Francis
Mm-hmm
Marcel Kornacker
... that can get very complicated if you have to do it that way.
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.
Marcel Kornacker
Mm-hmm.
Aaron Francis
And I guarantee they're like- ... "No, we're gonna chunk this up. We're, we're gonna cut this apart."
Marcel Kornacker
Yeah, yeah. They, they absolutely, yes.
Aaron Francis
Yeah.
Marcel Kornacker
They will absolutely do that.
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-
Marcel Kornacker
Mm-hmm
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-
Marcel Kornacker
Yeah. Yeah, yeah
Aaron Francis
Tell me about that, that story there.
Marcel Kornacker
Yeah. Yeah. Let me actually go back and, and mention one thing.
Aaron Francis
Yeah.
Marcel Kornacker
If you did it with Pixeltable, so you, you give, you know, your one hour of audio to-
Aaron Francis
Mm-hmm
Marcel Kornacker
... ElevenLabs and you get something back, they will chunk it internally.
Aaron Francis
Mm-hmm.
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.
Aaron Francis
There you go.
Marcel Kornacker
So you would probably get a lot lower latency if you did it that way, is my guess.
Aaron Francis
Okay.
Marcel Kornacker
But yeah.
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?
Marcel Kornacker
But the-- Typically, when you update a video, you basically rewrite the file, right?
Aaron Francis
Okay.
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.
Aaron Francis
Right. Right.
Marcel Kornacker
That'll just basically have to rerun through the, um, run through the whole thing again. But you do get a-
Aaron Francis
And this is where-
Marcel Kornacker
You do get a differential version
Aaron Francis
... we get that transaction. Yeah. That's, that's my question.
Marcel Kornacker
You get a new version. And if you cared about snapshots, which, uh, which teams that do train models do-
Aaron Francis
Uh-huh
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.
Aaron Francis
Mm-hmm.
Marcel Kornacker
But you know, like I said, in some environments you do want, uh, snapshot facilities.
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.
Um-
Marcel Kornacker
Exactly. And it will also update the index critically. So let's say you-
Aaron Francis
Mm-hmm
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.
Aaron Francis
Right.
Marcel Kornacker
Which is, you know, every, every RDBMS will do that for you.
Aaron Francis
Mm-hmm.
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.
Aaron Francis
Mm-hmm.
Marcel Kornacker
So, yeah.
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.
Marcel Kornacker
Yeah.
Aaron Francis
Um-
Marcel Kornacker
Or, or you run a batch pipeline later on to update-
Aaron Francis
Mm-hmm
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?
Aaron Francis
Mm-hmm.
Marcel Kornacker
Which is obviously costly, but, um, that's kind of the easiest way out.
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.
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."
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.
Aaron Francis
Mm-hmm.
Marcel Kornacker
Let's say you want to try out one chunking strategy versus another.
Aaron Francis
Mm-hmm.
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.
Aaron Francis
Okay. Yeah.
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-
Aaron Francis
Mm
Marcel Kornacker
... that computed column. Um, and so in that sense, it's incremental. Um, you can add more columns-
Aaron Francis
That's nice
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-
Aaron Francis
Hmm
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.
Aaron Francis
I love it.
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.
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?
Like what are just some of your thoughts on that whole conversation?
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.
Aaron Francis
Mm-hmm.
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.
Aaron Francis
Mm-hmm.
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-
Aaron Francis
Oh
Marcel Kornacker
... a RAG, a RAG example, right, where you populate. You have your user query that's, uh, a string column, and then-
Aaron Francis
Mm-hmm
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.
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.
Aaron Francis
Hmm.
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?
Aaron Francis
Mm-hmm.
Marcel Kornacker
So again, we're trying to get rid of the data plumbing that's inherent in this process-
Aaron Francis
Right. Right
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?
Aaron Francis
Yeah.
Marcel Kornacker
So that's kind of the-
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.
Marcel Kornacker
Yes.
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?
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?
Marcel Kornacker
Yeah. I mean, we basically have users fall into two camps. One is the dataset curation people.
Aaron Francis
Mm-hmm.
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.
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-
Aaron Francis
Mm-hmm
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-
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"?
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.
Aaron Francis
Okay.
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-
Aaron Francis
Mm-hmm
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.
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?
Marcel Kornacker
Yeah, yeah, yeah. So typically what you do is, um, when you train models, you have examples and annotations, right? So-
Aaron Francis
Okay
Marcel Kornacker
... um, you need to feed the model basically, um, um, examples. Let's say you're doing object detection-
Aaron Francis
Mm-hmm
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-
Aaron Francis
Can we, can we pick one? Like dogs. Is that, is that legit? Like, we need to find all the dogs.
Marcel Kornacker
Yeah, yeah, yeah.
Aaron Francis
Okay. So walk me through this process.
Marcel Kornacker
Or dogs or, you know, one, one company I, uh, talked to a while ago, they, um, had models for food waste.
Aaron Francis
Huh.
Marcel Kornacker
So basically image of, uh-- And, and this is interesting to, like, cruise ship operators and, and, you know-
Aaron Francis
Ah
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-
Aaron Francis
Okay
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.
Aaron Francis
Sure. Okay.
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.
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?
Marcel Kornacker
They wanna-- Let's say they wanna train a model to be able to-
Aaron Francis
Train a model
Marcel Kornacker
... categorize the items-
Aaron Francis
Okay. All right
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.
Aaron Francis
Okay.
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.
Aaron Francis
Okay.
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-
Aaron Francis
Mm-hmm
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-
Aaron Francis
Mm-hmm
Marcel Kornacker
... the annotations. You know, this is whatever, cauliflower. And this is usually captured as JSON.
Aaron Francis
Okay.
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-
Aaron Francis
I see
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-
Aaron Francis
Mm-hmm
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.
Aaron Francis
Mm-hmm.
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?
Aaron Francis
Okay.
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-
Aaron Francis
Mm-hmm
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.
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?
So-
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.
How are we getting from the human drawing a box around the cauliflower back into Pixeltable?
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.
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."
Aaron Francis
Hmm.
Marcel Kornacker
And basically do a, do a two-way sync. So basically, we then drive the Label Studio API to get the images-
Aaron Francis
Ah
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.
So then-
Aaron Francis
Wow. So you get rid of-
Marcel Kornacker
And it's also, and it's also transactional
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-
Marcel Kornacker
Exactly
Aaron Francis
... what the annotations are.
Marcel Kornacker
Yeah. Yeah, yeah.
Aaron Francis
Wow, okay.
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.
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?
Marcel Kornacker
Not e- not even a couple of years. We incorporated last April, I think.
Aaron Francis
Wow, okay.
Marcel Kornacker
And we raised a seed round in, uh, 5.5 million in May of last year, May or June.
Aaron Francis
Okay.
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.
Aaron Francis
Mm-hmm.
Marcel Kornacker
We are working on a cloud service, and the-
Aaron Francis
Okay
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.
Aaron Francis
Sure.
Marcel Kornacker
And the data sharing service is kind of, you can think of it like a GitHub for tables.
Aaron Francis
Mm-hmm.
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-
Aaron Francis
Yeah
Marcel Kornacker
... cloud-hosted tables, so that you can then-
Aaron Francis
Yeah
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-
Aaron Francis
Mm-hmm
Marcel Kornacker
... into the cloud-hosted table and run these transformations on our infrastructure as an example.
Aaron Francis
Yeah.
Marcel Kornacker
So.
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?
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.
Aaron Francis
Mm-hmm.
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.
Aaron Francis
Mm-hmm.
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.
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.
Aaron Francis
Mm-hmm.
Marcel Kornacker
Like, and you wanna do that as a user-facing service.
Aaron Francis
Mm-hmm.
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-
Aaron Francis
Mm-hmm
Marcel Kornacker
... what you wanna do. That you don't just wanna run something, you want a record of, of what happened here.
Aaron Francis
Sure.
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.
That's kind of the, the longer term vision.
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?
Marcel Kornacker
Yeah. I mean, in, in many ways, you know. Uh, A, someone like yourself, become a user, try it out.
Aaron Francis
Mm-hmm.
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.
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.
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.
Marcel Kornacker
Mm-hmm.
Aaron Francis
And I acutely feel that pain. So tell-- I'll, I'll leave links to everything down below.
Marcel Kornacker
Yeah.
Aaron Francis
But tell people where they can, they can find you and follow you, um, and learn more about you and Pixeltable.
Marcel Kornacker
Yeah, absolutely. Um, you know, uh, look at us on GitHub. It's called, you know, Pixeltable.
Aaron Francis
Hmm.
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-
Aaron Francis
Are you on-
Marcel Kornacker
... link in the Discord channel
Aaron Francis
Are you on LinkedIn? Okay.
Marcel Kornacker
I'm on L- Yes, I'm on LinkedIn. Um-
Aaron Francis
Okay
Marcel Kornacker
... easy to find as well.
Aaron Francis
Okay.
Marcel Kornacker
I can, uh, I can provide the link later. But yeah-
Aaron Francis
Perfect
Marcel Kornacker
... please reach out. Um, yeah.
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.
I think this was a lot of fun, and I'm super grateful for you doing this. Thank you, Marcel.
Marcel Kornacker
Aaron, thank you for having me.
Aaron Francis
Yep. All right, y'all. We will talk soon