AI-powered Search for the Enterprise — with Deedy Das of Glean
22 Apr 2023 · 64 min
Deedy Das of Glean discusses building enterprise search that works like Google's internal systems. The company combines traditional search with vector embeddings, integrates with tools like GitHub, and uses large language models for retrieval-augmented generation while managing latency and cost tradeoffs.
Chapters
Foreign. Welcome to the Latent Space podcast. This is Alessio, partner and CTO in residence at Decibel Partners. I'm joined by my co host, Swix brother and editor of Latent Space.
Yeah. Awesome. And today we have a special guest. It's Didi Das from Blean. Do you go by Didi or Debargia?
I go by Didi.
Okay. It's a little bit easier for the rest of us to spell out. And so what we typically do is I'll introduce you based on your LinkedIn profile and then you can fill in what's not on your LinkedIn. So you graduated your Bachelor's and Master's in CS from Cornell, then you worked at Facebook and then Google on Search, specifically Search and also leading a sports team, focusing on cricket. That's something that we can dive into. And then you moved over to Glean, which is now a search unicorn in building intelligent search for the workplace. What's not on your LinkedIn that people should know about you?
Firstly, guys, it's a pleasure, pleasure to be here. Thank you so much for having me. What's not on my LinkedIn is probably everything that's non professional. I think the biggest ones are I'm a huge movie buff and I love reading, so I think I get through. Usually I like to get through 10 books ish a year, but I hate people who count books, so I should say that number. And increasingly I don't like reading nonfiction books. I actually do prefer reading fiction books purely for pleasure and entertainment. I think that's the biggest omission from my LinkedIn.
What's something that caught your eye for fiction? Stuff that you would recommend People.
Oh, I recently started reading the Three Body Problem and I finished it and it's a three part series. And well, my controversial take is I did not really enjoy the second part and so I just stopped. But the first book was phenomenal. Great concept. I didn't know you could write alien fiction with physics so well. And Chinese literature in particular has a very different cadence to it than Western literature. It's very less about the let's describe people and what they're all about and their likes and dislikes. And it's like, here's a person, he's a professor of physics. That's all you need to know about him. Let's continue with the story. And I enjoy it. It's a very different style from what I'm used to reading.
Yeah, I heard it's very highly recommended. I think it's being adapted to a TV show, so looking forward to that.
So you spent now almost four years at Gleam. The company is now a unicorn, but you were on the founding team and LLMs and text interfaces are all the rage now. But you were building this before it was cool, so to speak. Maybe tell us more about the story, how it became and some of the technological advances you've seen because I think you started the company started really close to some of the early GPT models. So you've seen a lot of it from day one.
Yeah, well, the first thing I'll say is Glean was never started to be a technical product looking for a solution. We always wanted to solve a very critical problem first that we saw not only in the companies that we'd worked in before, but in all of the companies that a lot of the founding team had been in past their time at Google. So Google has a really neat tool that already kind of does this internally. It's called MoMA. And MoMA sort of indexes everything that you'd use inside Google because they have first party API access who has permissions to what document and what documents exist and they rank them with their internal search tool. It's one of those things where when you're at Google you sort of take it for granted, but when you leave and go anywhere else, you're like, oh my God, how do I function without being able to find things that I've worked on? Like, oh, I remember this guy had a presentation that he made three meetings ago and I don't remember anything about it. I don't know where he shared it, I don't know if he shared it, but I do know that it was something about X and I kind of want to find that now. So that's the core information retrieval problem that we had set out to tackle. And we realized when we started looking at this problem that enterprise search is actually, it's not new. People have been trying to tackle enterprise search for decades. Pre 2000s people have been trying to build these on prem enterprise search systems. But one thing that has really allowed us to build it well is A, you now have, well, you have distributed elastic. So that really helps you do a lot of the heavy lifting on core infra. But B, you also now have API support that's really nuanced on all of the SaaS apps that you use. So back in the day it was really difficult to integrate with a messaging app. They didn't have an API, it didn't have any way to sort of get the permissions information and get the messaging information. But now a lot of SaaS apps have really robust APIs that really let you index everything that you'd want. So that's two. And the third sort of big macro reason why it's happening now and why we're able to do it well is the fact that the SaaS apps have just exploded. Like every company uses know 10 to 100 apps. And so just the urgent need for information, especially with, you know, remote work and work from home, it's just so critical that people expect this almost as a default that you should have in your company. And a lot of our customers just say, hey, I don't, I can't go back to a life without internal search. And I think, we think that's just how it should be. So that's kind of the story about how Glean was founded and a lot of the LLM stuff. It's neat that all a lot of that's happening at the same time that we are trying to solve this problem, because it's definitely applicable to the problem we're trying to solve. And I'm really excited by some of the stuff that we're able to do with it now.
I was talking with somebody last weekend, they were saying the last couple of years we're going from the web used to be syntax driven. You know, you have SQL for information retrieval going into a semantics driven where the syntax is not as important. It's like the how you actually explain the question. And we just asked Sarah from CKI on the previous episode and instead of doing natural language and things like that for enterprise knowledge, it's more for business use cases. So I'm curious to see the enterprise of the future, what that looks like. Is there going to be way less dropdowns and kind of like SQL queries and stuff like that. And it's more this virtual almost like person that embodies the company. That is like an LLM in a way. But how do you do that without being able to surface all the knowledge that people have in the organization? So something like Glean is super useful for that.
Yeah, I mean already today we see these natural language queries as well. I will say at this point it's still a small fraction of the queries you see. A lot of the queries are, hey, what is, you know, just a name of a project or an acronym or a name of a person or something? Someone you're looking for?
Yeah, I think actually the Glean website explains Glean's features very well. When I can follow the video Actually video wasn't that informative. Video is more like a marketing video. But the actual website was showing screenshots of what you see there. In my language is an employee portal that happens to have search because you also surface collections which proactively show me things without me searching anything. You even have go links which you copied I think from Google. In my mind it's like this is ex Googlers missing Google internal stuff. So they just built it for everyone else.
Well, I can comment on that. So a I should just plug that. We have a new website as of today. I don't know how, how it's received. I saw yesterday so let me know. I think today we just launched. I don't know when we launched the new one. I think today.
Yeah, yeah, it's new. I opened it right now. It's different than yesterday.
Okay, well it's today and yeah, so one thing that we find is that search in itself, this is actually, I think quite a big insight. Search in itself is not a compelling enough use case to keep people drawn to your product. It's easy to say Google search is like that, but Google search was also in an era where that was the only website people knew. And now it's not like that. When you're a new tool that's coming into a company, you can't sit on your high horse and say yeah, of course you're going to use my tool to search. No, they're not going to remember who you are. They're going to use it once and completely forget. To really get that retention, you need to sort of go from being just a search engine to exactly what you said, Sean, to being sort of an employee portal that does much more more than that. And yeah, the golinks thing, I mean yes, it is copied from Google. I will say there's a complete other startup called golinks IO that has also copied it from Google and everyone misses golinks. It's very useful to be able to write a document and just be like go to go this. And that's where the document is. And so we have built a big feature set around it. I think one of the critical ones that I will call out is the feed just being able to see not just so documents that are trending in your sub organization, documents that we think you should see or a limited set of them as well as now we've launched something called Mentions which is super useful, which is all of your tags across all of your apps in one place in the last whatever time. So it's like all of the hundred Slack pings that you have, plus the JIRA pings, plus the email, all of that in one place is super useful to have.
Do you do GitHub?
Yeah, we do GitHub too. We do GitHub too. All of the mentions.
Oh my God, that's amazing. I didn't know you had it, but this is something I wish for myself. It's amazing.
It's still a little buggy right now, but I think it's pretty good and we're going to make it a lot better as we go.
This is not in our preset list of questions, but I have one follow up which is I've worked in quite a few startups now that don't have employee portals and I've worked at Amazon which had an employee portal, but it wasn't as beautiful or as smart as Gleaning. Why isn't this a bigger norm in all companies?
Well, there's several reasons. I would say one reason is just the dynamics of how enterprise sales happens is I wouldn't say broken. It is what it is. But it doesn't always cater to employees being happy with the best tools. What it does cater to is there's different incentive structures, right? So if I'm an IT buyer, I have a budget and I need to understand that for a hundred of these tools that are pitched to me all the time, which ones really help the company? And the way usually those things are evaluated is does it increase revenue and does it cut cost? Those are the two biggest ones. And for software like Glean or a search portal or employee portal, it's actually quite difficult when you're in generally bucketed in the space of productivity to say, hey, here's a compelling use case for why we will cut your cost or increase your revenue. It's just a softer argument that you have to make there. It's just a fundamental nature of the problem versus if you say, hey, we're a customer support tool. Everyone in SaaS knows that customer support tools is just sort of the last thing that you go to when you're looking for ideas because it's easy to sell. It's like, here's a metric. How many tickets can your customer support agent resolve? We've built a thing that makes it 20% better. That means it's $100,000 cost savings. Pay us 50k, call it a deal. That's a good argument. That's a very simple, easy to understand argument. It's very difficult to make that argument with search, which you're like okay, you're going to get see about 10 to 20 searches. That's going to save about this much time a day and that results in this much employee productivity. People just don't buy it as easily. So the first reaction is, oh, we work fine without it. Why do we need this now? It's not like the company didn't work without this tool and only when they have it do they realize what they were missing out on. So it's a difficult thing to sell in some ways. So even though the product is in my opinion, fantastic, sometimes the buyer isn't easily convinced because it doesn't increase revenue or cut cost.
In terms of technology, can you maybe talk about some of the stack and you see a lot of companies coming up now saying oh we help you do enterprise search and it's usually you know, embeddings to then do context for like a LLM query mostly. I'm guessing you started like closer to like the vector side of things maybe? Yeah, talk a bit about that and some learnings you've had. And as founders try to build products like this internally, what should they think about?
Yeah, so actually leading back from the last answer, one of the ways a lot of companies who are in the enterprise search space are trying to tackle the problem of sales is to lean into how advanced the technology is, which is useful. It's useful to say we're AI powered, LLM powered, vector search, cutting edge, state of the art, yada yada yada, put in all your buzzwords, that's nice. But the question is how often does that translate to better user experience is sort of a fuzzy area where it's really hard for even users to tell, to be honest. Like you can have one or two great queries and one really bad query and be like, I don't know if this thing is smart. And it takes time to evaluate and understand how a search engine is doing. So to that I think one of the things that we learned from Google, a lot of us come from an ex Google search background. And one of the key learnings is often with search, it's not about how advanced or how complex the technology is. It's about the rigor and intellectual honesty that you put into tuning the ranking algorithm. That's a painstaking long term and slow process at Google until I would say maybe 2017, 2018, everything was run off of almost no real AI, so to speak. It was just information retrieval at its core. Very basic from the 70s, 80s and a bunch of these ranking components that are stacked on top of it that do various tasks really, really well. So one task in search is query understanding. What does the query mean? One task is synonymy. What are other synonyms for this thing that we can also match on? One task is document understanding. Is this document itself a high quality document or not? Or is it some sort of SEO spam? And admittedly Google doesn't do so well on that anymore, but there's so many tough sub problems that it breaks search down into and then just gets each of those problems right to create a nice experience. So to answer your question, also vector search we do, but it is not the only way we get results. We do a hybrid approach, both using, you know, core IR signal synonymy, query accentuation with things like acronym expansion, as well as stuff like vector search, which is also useful. And then we apply our level of ranking understanding on top of that, which includes personalization understanding. If you're an engineer, you're probably not looking for Salesforce documents. You know, you're probably looking for documents that are published or co authored by people in your team, in your immediate team. And our understanding of all of your interactions with people around you, our personalization layer, our good work on ranking is what makes us good. It's not sort of, hey, drop in LLMs and embeddings and we become amazing at search. That's not how we think it works.
Yeah, I think there's a lot of polish that makes into quality products. And that's the difference that you see between hacker news demos and Glean, which is actual, you know, search and chat unicorn. But also, is there a Glean chat coming? What do you think about the chat form factor?
I can't say anything about it, but I think that we are exper. My politically correct answer is we're experimenting with many technologies that use modern AI and LLMs and we will launch what we think users like best.
Nice. You got some media training again.
Yeah, very well handled. We can move off of Glean and just go into Google Search. So you worked on Search for four years. I've always wanted to ask what happens when I type something into Google. I feel like you know more than others and obviously there's things you cannot say, but I'm sure Google does a lot of the things that Glean does as well. How do you think about this Google versus ChatGPT debate? Let's maybe start at a high level based on what you see out there. And I think you see a lot of misconceptions.
Yeah. So, okay, let me, let me start with Google versus ChatGPT. First, I think it's disingenuous if I don't say my own usage pattern, which is I almost don't go back to Google for a large section of my queries anymore. I just use ChatGPT. I am a paying plus subscriber and it's sort of my go to for a lot of things that I ask. And I also have to train my mind to realize that, oh, there's a whole set of questions in your head that you never realize the Internet could answer for you and that now you're like, oh wait, I could actually ask this and then you ask it. So that's my current usage pattern. That being said, I don't think that ChatGPT is the best interface or technology for all sets of queries. I think humans are obviously very easily excited by new technology, but new technology does not always mean the previous technology was worse. The previous technology is actually really good for a lot of things and for search in particular. If you think about all the queries that come into Google search, they fall into various kinds of query classes, depending on whatever taxonomy you want to use. But one sort of way of understanding broad generally the query classes is something that is information seeking or exploratory. And for information for exploratory queries, I think there are uses where Google does really well. Like for example, let's say you want to just know a list of songs of this artist in this year Google will probably be able to at a hundred percent tell you that pretty accurately all the time. Or if you want to say understand like what showtimes of movies came out today. So fresh queries, another query class, Google will be really good at that. ChatGPT not so good as that. But if you look at information seeking queries, you could even argue that if I ask for information about Donald Trump, you know, maybe ChatGPT will spit out a reasonable sounding paragraph and it makes sense, but it doesn't give me enough stuff to like click on and go to and navigate to and a news article here. And I just kind of want to see a lot of stuff happening. So if you really break down the problem, I think it's not as Easy as saying ChatGPT is a silver bullet for every kind of information need. There's a lot of information needs, especially for tail queries. So for long unbeforeseen queries like hey, tell me the cheat code in Doom 3. This level, this boss chatgpt is going to blow it out of the water on those kind of queries because it's going to figure out all of these from these random sparse documents and random Reddit threads and assemble one consistent answer for you where it takes forever to find this kind of stuff on Google. For me personally, coding is the biggest use case for anything technical. I just go to ChatGPT because parsing through stack overflow is just too mentally taxing and I don't care about even if ChatGPT hallucinates a wrong answer. I can verify that, but I like seeing a coherent nice answer that I can just kind of good starting point for my research on whatever I'm trying to understand.
Yeah, did you see the statistic that the all in guys have been saying, which is stack overflow traffic is down 15%?
Yeah, I did see that makes sense.
But I don't know if it's only because of ChatGPT, but yeah, sure, I believe it.
Now the second part was just about if some of the enterprise product search moves out of Google, that's obviously a big adwords revenue driver. What are some of the implications in terms of the business there?
Okay, so I would split this answer into two parts. My first part is just talking about freshness because the query that you mentioned is specifically the issue there is being able to access fresh information. Google just blanket calls this freshness. Today's understanding of large language models is that it cannot do anything that's highly fresh. You just can't train these things fast enough and cost efficiently enough to constantly index new sources of data and then serve it at the same time in any way that's feasible. That might change in the future, but today it's not possible. The best thing that you can get that's close to it is what you know. The fancy term is retrieval augmented generation, but it's a fancy way of saying just do the search in the background and then use the results to create the actual response. That's what Bing does today. So to answer the question about freshness, I would say it is possible to do with these methods. But those methods all involve using search in the backend to sort of get the context to generate the answer. The second part of the answer is, okay, so if you talk about ad revenue, a lot of Google's ad revenue just comes from the fact that over the last two decades it's figured out how to put ad links on top of a search result page that sometimes users click on. Now, the user behavior on a chat product is not to click on anything. You don't click on stuff, you just read and you Move on. And that actually, in my opinion, has severe impacts on the web ecosystem, on all of Google and all of technology and how we use the Internet in the future. And the reason is one thing we also take for granted is that this ad revenue, where everyone likes to say Google is bad, Google makes money off ads, yada yada yada, but this ad revenue kind of sponsored the entire Internet. So you have Google Maps and Google Search and Photos and Drive and all of this great free stuff basically because of ads. Now, when you have this new interface, sure it comes with some benefits, but if users aren't going to click on ads and you replace the search interface with just chat, that can actually be pretty dangerous in terms of what it even means to have to create a website. Like, why would I create a website if no one's going to come to my website? If it's just going to be used to train a model and then someone's going to spit out whatever my website says, then there's no incentive. And that kind of dwindles the web ecosystem. In the end, it means less ad revenue. And, and then the other existential question is, okay, I'm okay with saying the incumbent Google gets defeated and there's this new hero, which is, I don't know, OpenAI and Microsoft now reinvent the wheel. All of that stuff is great, but how are they going to make money? They can make money off, I guess, subscriptions. But subscriptions is not nearly going to make you enough money to replace what you can make on ad revenue. Even for Bing. Today Bing makes $11 billion of ad revenue. It's not a sidey product. Like it's a huge product and they're not going to make $11 billion of subscriptions, I'll tell you that. So even they can't really replace search with this with chat. And then there are some arguments around, okay, what if you start to inject ads in textual form? But you know, in my view, if the natural user inclination is not to click on something with chat, they're clearly not going to click on something no matter how much you try to inject click targets into your result. So that's my long answer to that question. I don't really know. I just smell danger in the horizon.
You mentioned the information augmented generation as well. Presumably that is literally Bing is probably just using the long context of GPT4 and taking the full text of all the links that they find, dumping it in and then generating some answer. Do you think speed is a concern or are just people willing to Wait for smarter answers.
I think it's a concern. We noticed that every single product I've worked on there's almost a linear, at least for some section of it, a very linear curve, a linear line that says the more the latency, the less the engagement. So there's always going to be some drop off. So it is a concern, but with things like latency, I just kind of presume that time solves these things. You optimize stuff, you make things a little better and the latency will get down with time. And it's a good time to even mention that Bard, which just came out today, Google's LLM for Google's equivalent. I haven't tried it, but I've been reading about it and that's based off a model called lambda. And Lambda intrinsically actually does that. So it does query what they call a toolset and they query search or a calculator or a compiler or a translator, things that are good at factual deterministic information. And then it keeps changing its response depending on the feedback from the toolset, effectively doing something very similar to what Bing does. But I like their framing of the problem where it's just not just search, it's any given set of tools, which is similar to what a Facebook paper called Tool Former, where you can think of language as one aspect of the problem and language interfaces with computation, which is another aspect of the problem. And if you can separate those two, this one just talks to these things and figures out how to phrase it. So it's not really coming up with the answer. Their claim is like GPT4 for example. The reason it's able to do factual accuracy without search is just by memorizing the facts. And that doesn't scale. It's literally somewhere in the whole model it knows that the CEO of Tesla is Elon Musk. It just knows that. But it doesn't know that this is a computation. It just knows that usually I see CEO Tesla Elon. That's all it knows. So the abstraction of language model to computational unit or tool set is an interesting one that I think is going to be more explored by all of these engines. And the latency, you know, it'll get better.
I think you're focusing on the right things there. I actually saw another article this morning about the memorization capability. You know how GPT4 is a lot of marketed on its ability to answer SAT questions and GRE questions and bar exams, and we covered this in our Benchmarks podcast, Alessio. But I forgot to mention that all these answers are out there and were probably memorized and if you change them just a little bit, the model performance will probably drop a lot.
It's true. I think the most compelling proof of that, of what you just said, is the codeforces one where somebody I think tweeted about the 2021 everything before 2021, it solves everything after it doesn't. And I thought that was interesting.
It's just dumb. I'm interested in two former and I'm interested in REACT type patterns. Zapier just launched a natural language integration with LangChain. Are you able to compare and contrast what approaches you like when it comes to LLMs using tools?
I think it's not boiled down to the science enough for me to say anything that's useful. I think everyone is at a point of time where they're just playing with it. There's no way to reason about what LLMs can and can't do. And most people are just throwing things at a wall and seeing what sticks. And if anyone claims to be doing better, they're probably lying because no one knows how these things behave. You can't predict what the output is going to be. You just think, okay, let's see if this works. This is my prompt. And then you measure it and you're like, oh, that worked versus this didn't. And things like React and Toolformer really cool. But those are just examples of things that people have thrown at a wall that stuck. Well, I mean it's provably. It works. It works pretty well. I will say that one of the things it's not really of the framing of what kind of ways can you use LLMs to make it do cool things. But people forget when they're looking at cutting edge stuff is a lot of these LLMs can be used to generate synthetic data to bootstrap smaller models. And it's a less sexy space of it all. But I think that stuff is really, really cool. Where for example, I want to tag entities in a sentence. That's a very simple classical natural language problem of ner. And what I do is I just before I had to gather training data, train, model, tune model, all of this other stuff. Now what I can do is I can throw GPT4 at it to generate a ton of synthetic data which looks actually really good. And. And then I can either just train whatever model I want to train before on this data, or I can use something called low rank adaptation, which is distilling this large model into a much smaller cost effective fast model that does that task really well. And in terms of productionizable natural language systems, that is amazing. This is stuff you couldn't do before. You would have teams working for years to solve NER and that's just what that team does. And there's a great Reddit viral thread about Are all the NLP teams at Big Tech doomed? And yeah, I mean to an extent now you can do this stuff in weeks, which is huge.
What about some of the other kind of like AI, native search, things like Perplexity Elicit? Have you played with any of them? Any thoughts on it?
Yeah, I have played with Perplexity and Niva, everyone. I think both of those products sort of try to do again search result synthesis. Personally, I think Perplexity might be doing something else now, but I don't see any of those companies or products disrupting either OpenAI or ChatGPT or Google, Bing, whatever prominent search engines with what they do because they're all built off basically the Bing API or their own version of an index. And their search itself is not good enough and there's not a compelling use case enough I think to use those products. I don't know how they would make money. A lot of Niva's way of making money is subscriptions. Perplexity I don't think has ever turned on the revenue dial. I just have more existential concerns about those products actually functioning in the long run. So I think I see them as they're nice, they're nice to play with. It's cool to see the cutting edge innovation, but I don't really understand if they will be long lasting, widely used products.
Do you have any idea of what it might take to actually do a new kind of type of company in this space? Google's big thing was PageRank. Right. That was one thing that kind of set them apart. People tried doing search before. Do you have an intuition for what the native PageRank thing is going to be to make something like this exist? Or have we kind of hit the plateau when it comes to search innovation?
So I, I talked to so many of my friends who are obviously excited about this technology as well, and many of them who are starting LLM companies. You know how many companies in the YC batch of, you know, winter 23 are LLM companies? Crazy Half of them. Right, right. It's, it's ridiculous. But what I always, I think everyone's struggling with this problem is what is your advantage? What is your moat? I don't see it for a lot of these companies and it's unclear. I don't have a strong intuition. My sense is that the people who focus on problem first usually get much further than the people who focus solution first. And there's way too many companies that are solutions first, which makes sense. It's always been the big Achilles heel of the Silicon Valley. We're a bunch of nerds that live in a whole different dimension which nobody else can relate to, but nobody else. The problem is nobody else can relate to them. And we can't relate to, to their problems either. So we look at tech first, not problem first a lot. And I see a lot of companies just, just do that. Where. I'll tell you one, this is quite entertaining to me. A very common theme is, hey, LLMs are cool. That's awesome. We should build something. Well, what should we build? And it's like, okay, consumer. Consumer is cool. We should build consumer. Then it's like, now, man, consumers. Consumer is pretty hard. It's going to be a clubhouse, going to blow up. I don't want to blow up. I just want to build something that's like, you know, pretty easy to be consistent with. We should go enterprise. Cool, let's go enterprise. So you go enterprise. It's like, okay, we brought LLMs to the Enterprise. Now what problem do we tackle? And it's like, okay, well, we can do Q and A on documents. People know how to do that, right? We've seen a couple of demos on that. So they build it. They build Q and A on documents and then they struggle with selling. Or they're like. Or people just ask, hey, but I don't ask questions to my documents. Like, you realize this is just not a flow that I do like. I ask questions in general, but I don't ask them to my documents. And also, like, what documents can you ask questions to? And they'll be like, well, any of them. They'll say, can I ask them to all of my documents? And they'll be like, well, sure, if you give them. Give us all your documents, you can ask anything. And then they'll say, okay, how will you take all my documents? Oh, it seems like we have to build some sort of indexing mechanism. And then from one thing to the other, you get to a point where it's like, we're building Enterprise Search and we're building an LLM on top of it, and that is our product. Or you go to like, ML Ops and I'm going to help you host models, I'm going to help you train models, and I don't know it's it seems very solution first and not problem first. So the only thing I would recommend is if you think about the actual problems and talk to users and understand what this can be useful for. It doesn't have to be that sexy of how it's used, but if it works and solves the problem, you've done your job.
I love that whole evolution because I think quite a few companies are independently finding this path and going down this route to build a glorified search bot. We actually interviewed a very problem focused builder, Mickey Friedman, who's very, very focused on product placement image generation and she's not focused on anything else in terms of image generation, just focus on product placement and branding and I think that's probably the right approach. And if you think about Jasper, out of all the other GPT3 companies, when GPT3 first came out they built focusing on writers on Facebook, didn't even market on Twitter, so most people haven't heard of them. I think it's a timeless startup lesson, but it's something to remind people when they're building with language models. I mean, as an investor, you are an investor, you're a scout with me. Doesn't that make it hard to invest in anything? Because mostly it's just the incumbents will get the innovation faster than startups will find traction. Really.
This is going to be a hot take too. But investing with people, especially early, is often for me governed by my intuition of how they approach the problem and their experience with the technology and pretty much solely that I don't really pretend to be an expert in the industry or the space. That's their problem. If I think they're smart and they understand the space better than me, then I mostly convinced as if they've thought through enough of the business stuff. If they've thought through the the market and everything else, I'm convinced I typically stray away from just what I just said. Founders who are like LLMs are cool and we should build something with them. That's not usually very convincing to me, but I don't concern myself too much with pretending to understand what this space means. I trust them to do that. If I'm convinced that they're smart and they've thought about it, well, then I'm pretty convinced that that they're a good person to back.
Cool, kind of like super novel idea that you want to shout out.
There's a lot of interesting explorations going on. Okay, so I'll preface this with anything in enterprise. I just don't think is cool. It's like, including, like, it's just. You can't call it cool, man. You're building products for business.
Glean is pretty cool. I'm impressed by Glean.
This is what I'm saying. It's cool for the Silicon Valley. It's not cool. You're not going to go to a dinner party with your parents and be like, hey, Mom, I work on enterprise search. Isn't that awesome?
And they're look all my notifications in one place.
Whoa. So I will. I'll start by saying in my head, cool means like, the world finds this amazing and it has to be somewhat consumer. And I do think that the ideas that are being played with, like Quora is playing with po. It's kind of strange to think about and may not stick as is, but I like that they're approaching it with a very different framing, which is, hey, how about you talk to this, this chatbot? But let's move out of this. This world where everyone's like, it's not WhatsApp or Telegram, it's not a messaging app. You're actually generating some piece of content that now everybody can make use of. And is there something there? Not clear yet, but it's an interesting idea. I can see that being something where people just learn or see cool things that GPT4 has said or chatbots have said that's interesting. In the image space, very contrasted to the language space, there's so much I don't even begin to understand the image space. Everything I see just blows my mind. I don't know how midjourney gets from six fingers to five fingers. I don't understand understand this. It's amazing. I love it. I don't understand what the value is in terms of revenue. I don't know where the markets are in image, but I do think that's way, way cooler because that's a demo where. And I tried this. I showed GPT4 to my mom and my mom's like, yeah, this is pretty cool. It does some pretty interesting stuff. And then I showed the image one and she is just like, this is unbelievable. There's no way a computer could write through this and she just could not digest it. And I love when you see those interactions. So I do think image world is a whole different beast. And in terms of coolness, a lot more cool stuff happening in image. Video Multimodal I think is really, really cool. I haven't seen too many startups that are doing something where I'm like, wow, that's amazing. Oh, 11 labs. I'll mention 11 labs is pretty cool. They're the only ones that I know that are doing.
Oh, the voice synthesis. Have you tried it?
I've only played with it. I haven't really tried generating my own voice, but I've seen some examples and it looks really, really awesome.
I heard that the script is coming up with some stuff as well to compete because yeah, this is definitely the next frontier in terms of podcasting.
One last thing I will say on the cool front is I think there is something to be said about a product that brings together all these disparate advancements in AI and I have a view on what that looks like. I don't know if everyone shares that view, but if you bring together image generation, voice recognition, language modeling, tts and all of the other image stuff they can do with Clip and Dream Booth and putting someone's actual face in it, what you can actually make, this is my view of it, is the Harry Potter picture come to life where you actually have just a digital stand where there's a person who's just capable of talking to you in their voice, in understandable dialogue. That is how they speak. And you could just sort of walk by, they'll look at you, you can say hi, they'll say hi back. They'll start talking to you, you start talking back to it. That's sort of my, that's my, my wild science fiction dream. And I think the technology exists to put all of those pieces together and the implications for people who are older or saving people over time are huge. It could be a really cool thing to productionize.
There's one more part of you that also tweets about numbers and math. AI math, essentially, is how I'm thinking about it. What gets you into talking about costs and math and just first principles of how to think about language models.
One of my biggest beefs with big companies is how they abstract the cost away from all the engineers. So when you're working on a Google search, I can't tell you a single number that is cost related at all. I just don't know the cost numbers. It's so far down the chain that I have no clue how much it actually costs to run search and how much these various things cost, aside from what the public knows. And I found that very annoying because when you are building a startup, particularly maybe an enterprise startup, you have to be extremely cognizant about the cost because that's your unit economics. Like your primary cost is the money you spend on infrastructure, not your actual labor costs. The whole thesis is the labor doesn't scale, but the infra does scale. So you need to understand how your infra costs scale. So when it comes to language models, given that these things are so compute heavy, but none of the papers talk about cost either. And it's just bothers me, I'm like, why can't you just tell me how much it cost you to build this thing? It's not that hard to say. And it's also not that hard to figure out. They give you everything else, which is, you know, how many tpus it took and how long they trained it for and all of that other stuff, but they don't tell you the cost. So I've always been curious because all everybody ever says is it's expensive and a startup can't do it and an individual can't do it. So then the natural question is, okay, how expensive is it? And that's sort of the background behind why I started doing some more AI math. And one of the tweets that probably the one that you're talking about is where I compare the cost of Llama, which is Facebook's LLM to Palm, with my best estimates. And the only thing I'll add to that is it is quite tricky to even talk about these things publicly because you get rammed in the comments because by people who are like, oh, don't you know that this assumption that you made is completely BS because you should have taken this cost per hour because obviously people do bulk deals and Yeah, I have 280 characters. This is what I could have said, but I think ballpark, I think I got close. I'd like to imagine, I think I was off maybe by 2x on the lower side. I think I took an upper bound and I might have been off by 2x. So my quote was 4 million for llama and 27 for palm. In fact, later today I'm going to do one on Bard. So. Oh, the exclusive is that it's 4 million for Bard too.
Nice, Nice. Which is like, do you think that's like, don't you think that's actually not a lot? Like it's a drop in the bucket for these guys.
One of the valuable things to note when you're talking about this cost is this is the cost of the final training step. It's not the cost of the entire process. And a common rebuttal is, well, yeah, this is your cost of the final training process. But in total it's about 10x this cost. Because you have to experiment, you have to tune hyperparameters, you have to understand different architectures, you have to experiment with different kinds of training data. And sometimes you just screw it up and you don't know why and you have to spend a lot of time figuring out why you screwed it up. And that's where the actual cost buildup happens, not in the one final last step where you actually train the final model. So even assuming like a 10x on top of this, I think is fair for how much it would actually cost a startup to build this from scratch, I would say how do you think.
About open source in this then? I think a lot of people's big 2023 predictions are an LLM, you know, open source LLM that has comparable performance to the GPT3 model. Who foots the bill for the mistakes. When somebody opens a pull request that is not good. It doesn't really cost people much outside of a GitHub Actions run as people try and train these things separately. Do you think open source is actually bad because you're wasting so much compute by so many people trying to do their own things? And do you think it's better to have a centralized team that organizes these experiments or. Yeah. Any thoughts there?
I have some thoughts. I think the most easy comparison to make is to image generation world where you had midjourney and Dall E come out first and then you had IMAD come out with stability, which was completely open source. But the difference there is, I think stability you can pretty much run on your machine and it's okay, it works pretty fast. So the entire concept of open sourcing it worked and people made forks that fine tuned it on a bunch of different random things and it made variants of stability that could do a bunch of things. So I thought the stability thing agnostic of the general ethical concerns of training on everyone's art, I thought it was a cool addition to the sort of trade offs in different models that you can have in image generation for text generation. We're seeing an equivalent effect with llama and alpaca, which llama being Facebook's model, which they didn't really open source. But then the weights got leaked and then people cloned them and then they tuned them using GPT4, generated synthetic data and made alpaca. So the version I think that's out there is only the $7 billion one. And then this crazy European C God came and said, you know what, I'm going to write this entire thing in C so you can actually run it locally. And not have to buy GPUs and a combination of those. And of course a lot of people have done work in optimizing these things to make it actually function quickly. And we can get into details there. But a function of all of these things has enabled people to actually run semi good models on their computer. I don't have that much. I don't have any comments on, you know, energy usage and all of that. I don't really have an opinion on that. I think the fact that you can run a local version of this is just really, really cool, but also, also supremely dangerous because with images, conceivably people can tell what's fake and what's real, even though there's some concerns there as well. But for text, it's, you know, like you can do a lot of really bad things with your own text generation algorithm. You know, if I wanted to make somebody's life hell, I could spam them in the most insidious ways with all sorts of different kinds of text generation indefinitely, which I can't really do with all images. I don't know. I find it somewhat ethically problematic in terms of the power is too much for an individual to wield. But there are some libertarians who are like, yeah, why should only OpenAI have this power? I want this power too. So there's merits to both sides of the argument. I think it's generally good for the ecosystem. Generally it will get faster and the latency will get better and the models may not ever reach the size of the cutting edge. That's possible, possible. But it could be good enough to do 80% of the things that bigger model could do. And I think that's a really good start for innovation. I mean, you can just have people come up with stuff instead of companies and that always unlocks a whole vector of innovation that didn't previously exist.
That was a really good conclusion. I want to ask follow up questions, but also that was a really good place to go to end it. Was there, was there any other sort of AI topics that you wanted to touch on?
I think RunwayML is the one company I didn't mention and that one's one to look out for, I think doing really cool stuff in terms of video editing with generative techniques. So people often talk about the OpenAI and the Googles of the world and anthropic and cohere and midjourney, all the image stuff. But I think the places that people aren't paying enough attention to that will get a lot more love in the next couple of years is better whisper, so better streaming voice recognition, better TTS, so some open source version of 11 labs that people can start using. And then the frontier is sort of multimodality and videos. Can you do anything with videos? Can you edit videos? Can you stitch things together into videos from images? All sorts of different cool stuff. And then there's sort of the long tail of companies like Luma that are working on like 3D modeling with generative use cases and taking an image and creating a 3D model from nothing. And that's pretty cool too. Although the practical use cases to me are a little less clear. So that kind of covers the entire space in my head at least.
I like using the Harry Potter image, like the moving and speaking images as an end goal. I think that's something that consumers can really get behind as well. Super cool. Okay, so to double back a little bit before we go into the lightning round, I have one more thing which is relevant to your personal story, but then also relevant to our debate, which is a nice blend. You're concerned about the safety of everyone having access to language models and the potential harm that you can do there. My guess is that you're also not that positive on watermarking techniques in terms of languages, maybe randomly sprinkling weird characters so that people can see that this is generated by an AI model. But also you have some personal experience with this because you found manipulation in the Indian exam board, which maybe might be a similar story. I don't know if you have any thoughts about just watermarking manipulation, ethical deployments of generated data.
Well, I think those two things are a little separate. One, I would say is for watermarking text data, there are a couple of different approaches. I think there is actual value to that because from a pure technical perspective, you don't want models to train on stuff they've generated. That's kind of bad for models. And two is obviously you don't want people to keep using ChatGPT for I don't know if you want this, to use it for all their assignments and never be caught. Maybe you do want it, maybe you don't. But it seems like it's valuable to at least understand that this is a machine generated text versus not just ethically. That seems like something that should exist. So I do think watermarking is net a good direction of research and I'm fairly positive on it. I actually do think people should standardize how that watermarking works across language models so that everyone can detect and understand Language models and not just OpenAI does its own models, but not the other ones and so on. So that's my view on that. And then sort of transitioning into the exam data. This is a really old one, but it's one of my favorite things to talk about. I love it in America, as you know, usually the way it works is you take your SAT exam, you take a couple of APs, you do your school grades, you apply to colleges, you do a bunch of fluff, you try to prove how you're good at everything and then you apply to colleges and then it's a weird decision based on 100 other factors. And then they decide whether you get in or not. But if you're rich, you're basically going to get in anyway. And if you are a legacy, you're probably going to get in. And there's a whole bunch of stuff going on. And I don't think the system is necessarily bad, but it's just really complicated. And some of the things are weird in India and in a lot of the non developed world people are like, yeah, okay, we can't scale that. There's no way we can have enough people like non rigorously evaluate this because there's going to be too much corruption and it's going to be terrible at the end because people are just going to pay their way in. So usually it works in a very simple way where you take an exam that is standardized and sometimes you have many exams, sometimes you have an exam for a different subject, sometimes it's just one for everything and you get ranked on that exam and depending on your rank, you get to choose the quality and the kind of thing you want to study, which the kind of thing always surprises people in America where it's not like, oh, it's glory land where you walk in and you're like, I think this is interesting and I want to study this. Like no, in the most of the world it's like you're not smart enough to study this, so you're probably not going to study it. And there's like a rank order of things that you need to be smart enough to do. So it's different. And therefore these exams are much more critical for the functioning of the system. So when there's fraud, it's not like a small part of your application going wrong, it's your entire application going wrong. And that's why, that's just me explaining why this is severe. Now one such exam is the one that you take in school. It's called a Board exam. You take one in the 10th grade, which doesn't really matter for much, and then you take one in the 12th grade when you're about to graduate. And that decides where you go to college. For a large set of colleges, not all, but a large set of colleges. And based on how much you get on your top five average, you're sort of slotted into a different stream in a different college. And over time, because of the competition between two of the boards that are a duopoly, there's no standardization. So everyone's trying to like give more marks than the other person to attract more students into their board because that means that you can then claim, oh, you're going to get into a better college if you take our exam and don't go to a school that administers the other exam. So it's. And that's, that's. Everyone knew that was happening. Ish. But there was no data to back it. But when you actually take this exam, as I did, you start realizing that the numbers, the marks make no sense because you're looking at this kid who's also in your class and you're like, dude, this guy's not smart. How did he get a 90 in English? He's not good at English. He can't speak it. You cannot give him a 90. You gave me a 90. How did this guy get a 90? So everyone has their anecdotal, this doesn't make any sense moments with this exam, but no one has access to the data. So. So way back when, what I did was I realized they have very little security surrounding the data where the only thing that you need to put in to get access is your role number. And so as long as you predict the right set of role numbers, you can get everybody's results. So unlike America, also, exam results aren't treated with a level of privacy. In India, it's very common to sort of the entire class's results on a bulletin board and you just see how everyone did and you shame the people who stupid. That's just how it works. It's changed over time, but that's fundamentally a cultural difference. And so when I scraped all these results and I published it and I did some analysis, what I found was a couple of very insidious things. One is that if you plot the distribution of marks, you generally tend to see some sort of skewed but pseudo normal distribution where it's a big peak and a fall falls off on both ends. But you see two interesting patterns. One, that is just the Most obvious one, which is grace marks, which is the pass grade, is 33. You don't see nobody got between 29 and 32. Because what they did for every single exam is they just made you pass. They just rounded up to 33, which is okay. I'm not that concerned about whether you give grace marks. It's kind of messed up that you do that, but I. Okay, fine. You want to pass a bunch of people who deserve to fail, do it then. The other more concerning thing was between 33 and 93, right? That's about 60 numbers. 61 numbers. 30 of those numbers were just missing. As Nobody got 91 on this exam in any subject in any year. How. How does that happen? You. You don't get a 91. You don't get a 93. 89, 87, 85, 84. Some numbers were just missing. And at first when I saw this, I'm like, this is definitely some bug in my code. There's no way that, like, there's 91 never happened. And so I started. I remember I asked a bunch of my friends, I'm like, dude, did you ever get a 91 in anything? And they're like, no. And it just unraveled that. This is obviously problematic because that means that they're screwing with your final marks in some way or the other and they're not transparent about how they do it. Then I did the same thing for the other board. We found something similar there, but not, not, not the same. The problem there was there was a huge spike at 95. And then I realized what they were doing is they'd offer various exams and to standardize, they would blanket add like a, a, a raw number. So if you took the harder math exam, everyone would get plus 10 arbitrarily. No one. This is not revealed or publicized. It's randomly. That was the harder exam. You guys all get plus 10, but it's capped at 95. Life. That's just this stupid way to standardize. It doesn't make any sense. They're not transparent about it. And it affects your entire life because this is what gets you into college. And if you add the two exams up, this is 1.1 million kids taking it every year. So that's a lot of people's lives that you're screwing with by not understanding numbers and not being transparent about how you're manipulating them. So that was the thesis, in my view, looking back on it 10 years later. It's been 10 years at this point. I think the media never did justice to it because to be honest, nobody understands statistics. So over time it became a big issue then. And then there was a big Supreme Court or High Court ruling which said, hey, you guys can't do this. But there's no transparency, so there's no way of actually ensuring that they're not doing it. They just added a level of password protection, so now I can't scrape it anymore. And they probably do the same thing and it's probably still as bad, but people aren't raising an issue about it. It's really hard to make this people understand the significance of it because people are so compelled to just go lean into the narrative of exams are bullshit and we should never trust exams. And this is why it's okay to be dumb. And it's not. That's not the point. Like the point. So I think the response was lackluster in retrospect, but that's what I unveiled in 2013.
That's fascinating. In my finance background, the similar case happens with the Madoff funds because if you plot the statistical distribution of the Madoff funds, you could see that they were just not a normal distribution and therefore they were probably made up numbers. And we also did the same thing in my first job as a regulator in Singapore for hedge funds returns, which is watermarking. This is a watermark of a human or some kind of system making it up. And statistically, if you look at the distribution, you can see this violates any reasonable assumption, therefore something's wrong.
Well, I see what you mean there. In that sense, yes. That's really cool that you worked on a very similar problem and I agree that it's messed up. It's a good way to catch liars.
In Madoff's case, they actually made it a big deal, but I don't see how this wasn't a bigger deal in India. But anyway, that's a conversation for another overdrinks perhaps. So now we're going to go into the lightning round just to cap things off with an overview. What are your favorite AI people and communities? You mentioned Reddit, so let's be specific about which subreddits.
I actually don't really use Reddit that much for AI stuff. It was just a one off example. Most of my learnings are Twitter and I think there are the obvious ones, like everyone follows Riley Goodside now and there's a bunch of like the really famous ones. But I think amongst the lesser known ones there are, let me say just my favorite one is probably AI Pub because it does a roundup of everybody else's stuff regularly. I know Brian who runs AI Pub as well and I just think I find it really useful because often it's very hard to catch up on stuff. And this gives you the entire roundup of last two weeks. Here's what happened in AI.
Good, good, good. And any other communities like Slack communities, scores. You don't do that stuff.
I try to, but I don't because it's too time consuming. I prefer reading at my own pace.
Yeah, yeah, yeah. Okay. So my learning is start a Twitter weekly recap of here's what happened in AI. I mean it makes sense, right?
It'll do very well.
It'll do very well.
A year from now. What do you think people will be the most surprised by in AI?
I think they're going to be surprised at how much cheaper they're able to bring out down the cost to and how much faster that these models get. I'm more optimistic about cost and latency more than I am about just quality improvements at this point. I think modalities will change, but I think quality is near about like a maxima that we're going to achieve.
So this is a request for startups or request for side projects. What's an AI thing that you would pay for if somebody else built it?
Aside from the Harry Potter image one which I would definitely, I would pay a lot of money to have like a floating, I don't know, Bill Clinton in my room just saying things back to me whenever I talk to it, that would be cool. But in terms of other products, if somebody built a product that would smartly, I know many people have tried to build things like this that would smartly autorespond to things that it can autorespond to. And for the things that are actually important, please don't autorespond and just tell me to do it. And that distinction I think is really important. So somewhere in between the automate everything and the just suggest everything hybrid that works well, I think that would be really cool.
Yeah, I've thought about this as well. Even if it doesn't respond for you, it can draft an answer for for you to edit. Right? So that you at least get to review.
I actually built that this morning. If you guys want it, you just oauth with Gmail and then it pre drafts every email in your inbox. Really? Yeah, you have to change the prompt because my prompt says like you know, I'm a software engineer, I'm a venture capitalist, this is where I work, blah blah Blah, blah. But you can modify that and then it works. It works.
Are you going to open source it?
I probably will, but sometimes it's like it cares too much about the prompt. So for example, in the prompt I was like, if the person is asking about scheduling, suggest the time. And I put like the calendar, my calendar, or give this calendar link in every email, it will respond. And if you ever want to chat, here's my calendar. Like no matter what the email was, every email, it would tell them to schedule time. So there's still work to be done.
You're just very helpful. You're just very, very helpful. Well, so actually I have a GitHub version of this which I actually would pay someone to build, which is read somebody who opened a GitHub issue and check if they have missed anything for resolutions and then generate a response to request for resolution. And then if they haven't answered in 30 days, close the issue.
Absolutely. And one thing I'll add to that is also the idea of the AI just going in and making PRs for you, I think is super complex, compelling that it just says, hey, I found all these vulnerabilities. Patchman.
Yeah, yeah, we got a stealth company doing it. So. Hello. Yeah, I'll let you know more. Didi, thank you so much for coming on. I think to wrap it up, is there any parting thoughts? Kind of like one thing that you want everyone to take away about AI and the impact that's going to have?
Yeah. I think my parting thought is I have always been a big fan of people, of bridging the gap between research and the end consumer. And I think this is just a great time to be alive where if you are interested in AI or if you're even remotely interested, of course you can go build stuff, of course you can read about it. But I think it's so cool that you can just go read the paper and read the raw things that people did to make this happen. And I really encourage people to go and read research for. Follow people on YouTube who are explaining this. Andrej Karpathy has a great channel where he also explains it. It's just a great time to learn in this space and I would really encourage more people to go and read the actual stuff. It's really cool.
Thank you so much, Didi for coming on. It was a great chat. Where can people follow you on Twitter? Any other thing you want to plug?
I think Twitter is fine. And there's a link to my website for my Twitter too. It's my first name, Debargho underscore. Das is my Twitter and debargotas.com is my website. But you can also just Google DD Das and you will find both of those links.
Awesome. All right, thank you so much.
Thank you.
Thanks, guys.
More from Deedy
214: Building from the Ground Up: From Overcoming Immigration Hurdles to Glean to Global Tech Leadership with Deedy Das
Deedy Das: founding team at Glean ($2.2B), investor at Menlo Ventures, and former from Google Search engineer
Is search dead? Google vs ChatGPT, from Google Search to enterprise search at Glean, machine learning in search, tech layoffs - Deedy Das - The Data Scientist Show #061