Skip to content
The perplexities of information retrieval episode artwork

Jun 19, 2024 46 min

The perplexities of information retrieval

from Practical AI Hosted by Daniel Whitenack and Chris Benson

Daniel & Chris sit down with Denis Yarats, Co-founder & CTO at Perplexity, to discuss Perplexity’s sophisticated AI-driven answer engine. Denis outlines some of the deficiencies in search engines, and how Perplexity’s approach to information retrieval improves on traditional search engine systems, with a focus on accuracy and validation of the information provided. Sponsors: Neo4j – Is your code getting dragged down by JOINs and long query times? The problem might be your database…Try simplifying the complex with graphs. Stop asking relational databases to do more than they were made for. Graphs work well for use cases with lots of data connections like supply chain, fraud detection, real-time analytics, and genAI. With Neo4j, you can code in your favorite programming language and against any driver. Plus, it’s easy to integrate into your tech stack. Backblaze – Unlimited cloud backup for Macs, PCs, and businesses for just $99/year. Easily protect business data through a centrally managed admin. Protect all the data on your machines automatically. Easy to deploy across multiple workstations with various deployment options. NordVPN – Get NordVPN 2Y plan + 4 months extra at nordvpn.com/practicalai It’s risk-free with Nord’s 30-day money-back guarantee. Featuring: Denis Yarats – LinkedIn, X Chris Benson – Website, GitHub, LinkedIn, X Daniel Whitenack – Website, GitHub, X Show Notes: Perplexity Perplexity | Blog Perplexity | Getting Started Upcoming Events: Register for upcoming webinars here!

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

The perplexities of information retrieval

0:00 46:06

Chapters

  1. 0:00 Welcome to Practical AI
  2. 0:44 Sponsor: Neo4j
  3. 1:50 Perplexity Denis Yarats
  4. 3:11 Perplexity's journey
  5. 10:39 Elevator pitch
  6. 13:27 Sponsor: Backblaze
  7. 15:38 Categorizing models
  8. 21:04 Balancing model tradeoffs
  9. 25:19 Prompt pain points
  10. 28:18 Sponsor: NordVPN
  11. 29:59 Preparing for new modality
  12. 32:38 Evolving UIs
  13. 36:21 Seamless interfaces
  14. 39:06 Safe retrieval
  15. 41:45 Vision of the future
  16. 44:47 Thanks for joining us!
  17. 45:19 Outro
of matches

Transcript Auto-generated, may contain errors

Welcome to Practical AI. If you work in artificial intelligence, aspire to, or are curious how AI-related tech is changing the world, this is the show for you. Thank you to our partners at Fly.io, the home of changelog.com. Fly transforms containers into micro VMs that run on their hardware in 30 plus regions on six continents, so you can launch your app near your users. Learn more at Fly.io.

What's up, friends? Do you remember when chat GPT launched? I do. It felt like the LLM was this magical tool out of the box. However, the more you use it, the more you realize that's just not the case. The technology is brilliant. Don't get me wrong, but it's prone to issues like hallucination on its own. But there's hope. There is still hope.

Feed the LLM reliable current data, ground it in the right data and context, then and only then can it make the right connections and give the right answers. The team at Neo4j has been exploring how to get results by pairing LLMs with knowledge graphs and vector search. Check out their podcast episode about LLMs and knowledge graphs throughout 2023 at graphstuff.fm. They share tips on retrieval methods, prompt engineering, and so much more. Don't miss it. Find a link in our show notes. Yes, check it out, graphstuff.fm, episode 23.

Welcome to another episode of Practical AI. This is Daniel Whitenack. I am founder and CEO at Prediction Guard, where we're safeguarding private AI models. And I'm joined, as always, by my co-host, Chris Benson, who is a principal AI research engineer at Lockheed Martin. How are you doing, Chris? Doing great today, Daniel. How's it going? It's going great. I am sometimes perplexed throughout my workday, but generally the week has gone well. And I'm really excited because hopefully our desk today will provide a lot of ways for us to navigate through the perplexity. I hope he finds that punny.

Yes, yes, of course. We have with us today, Dennis Yaritz, who is the CTO and co-founder at Perplexity. Welcome. Thanks for inviting me and great to be on the show. Yeah, yeah. Well, we've been wanting to make this one happen for a good long while. Of course, been following the things that Perplexity has been doing, really impressive and inspiring work. And yeah, just really excited to hear a little bit about that story and also this kind of space of answering, giving people knowledge with generative AI, with language models, search more generally, maybe. Could you set us up by maybe talking through

Of course, people have followed, everyone's kind of followed this surge of generative AI over the last couple of years. But there's been kind of a segment of that that has focused a lot on kind of answering questions, discovering knowledge, curiosity, exploring topics, and intersection with search more generally, I guess. So could you kind of help us understand maybe that journey, how that's kind of developed and how also you and the co-founders of Perplexity kind of came upon your approach to that? Yeah, that's definitely been like very fascinating, almost two years, I guess. I think a general web search, right? So what do you want to ultimately get is an answer to your question, right? So it's the current iteration that we had when it was Google and all the other classical search engines.

as an approximation to get to this point, right? So you have your question, you ask it as a form of query, and then you get like a bunch of documents that are very relevant, but you have to still do ultimate sort of like, you have to do like additional work to get to the bottom of it, right? So you have to scan through the documents, you have to for yourself understand what is this a true answer, it's a not true answer, kind of like have to trust the information. And as you can imagine, it's a lot of work, especially if you're trying to search for something very complicated, maybe things that are not so obvious. And would it be nice to...

kind of like avoid that step right where you just like answer a question you ask ask the question and you get an answer right away so that that's kind of like ultimate destination we're trying to get obviously uh there has been um it's been tough to get there over uh last like decade or so it's you know there's been like a lot of work but it never quite worked there's a there's like a much higher level of uh hallucinations much higher level of uh maybe not perfect synthesis of the information you kind of like basically get like a frankenstein so like a instead of like a hearing uh and a nice easily parsable readable answer you get like some just like basically extracted pieces of the information and just like incontinued it together. It's like not very pleasant. And, you know, it's funny that when we started, so one of our angel investors was Jeff Dean, it requires like no introduction. And he was saying, you know, Google actually wanted to always build something like this, but it's just because they have like such high expectations for accuracy because like, you know, millions of billions of users using Google, right? Like if you like hallucinate like 1% of the time, you're going to get a lot of unhappy people. And so they were never able to because of the...

models were like not as strong as they are right now, they were never able to get to just like 99.9% of accuracy, right? And that's why kind of like this work never pan out. But something great happened, you know, 2022, right? So we, when we started our company, we kind of, you know, both myself and Aravin, to my mic, we come from like academics, right? So we've been doing like a lot of research on like language modeling, reinforcement learning and stuff like that. And he was actually at OpenAI at that time. Like we've been very like literally following improvements of GPT models, like GPT-2 and then GPT-3. That's where it's actually got very interesting. And it was kind of like became obvious and obvious there is going to be something there, right? So this was the primarily motivation for us to start a company.

we wanted to do build an answer engine from the get-go but it was kind of like very ambitious like i remember we would go to the investors and they would say like oh we're going to build a search engine and they're like start like you know looking at you like you're crazy which just makes a lot of sense there's like oh there's google already and they had like a fair point but we still kind of weren't like very discouraged by that we knew there was like something there and we started like prototyping so we the first version of perplexity we actually created as a slug bot or like discord bot where kind of like it was a very primitive combination of a search engine plus uh at that point it was like davinci 2 model so it's still you know pre-chat gpt and it's kind of like worked much better than i expected it was like very quick like we put it up this demo like in a couple of days it was like you can already see that in certain cases it is very helpful like we because this was like the early company we like trying to we were like trying to hire like one of our first engineers so we didn't know like how to organize the insurance for him or like what and so we actually used this bot to like ask those questions about insurance because if you go to google and start asking the questions about insurance you're going to get a lot of ads and you just

I'm going to get very quickly, you know, disappointed. I've appreciated that same thing in founding a company and using these models in that way. It's been useful. Yeah, exactly. And then it was kind of like useful. So we've kind of like been trying it out and like playing with it. But then what really happened to start happening is like, I think there was like a couple of weeks before ChatGPT, they opened AI, released this DaVinci 3 model.

And I literally remember very clearly, like changed the, like literally the model name and started asking the same questions that I would ask them before. And I could see right away, just like so much better. It's just like so much better at understanding what you, of your intent, so much better at like understanding where, like, what should it say, what it should not say so much better, like synthesizing the answer. And I was just like, really like blown away. And, you know, I was like, okay, so there's like definitely something there. And then I was like, should it be happens like a few weeks after? And we're like, okay, so we have to, like our initial product was actually, because as I mentioned, we came from academic background, like our citations were like the core component because it was like.

very clear to us from the beginning, like if you want to get an answer, you want to make sure it's accurate. You want to make sure you can verify it. And so the citation was like the sort of like first class citizens in our product. And then when Chagipiti came out, it was like, okay, so one of the biggest point of feedback for them was, okay, so I don't know, like if this is accurate information, if it's not, if it's a hallucination, if it's not, how would I verify it? And that's why we like recently decided, okay, so this seems like a good opportunity to release our product. We like literally in a matter of like today's put up a website connected to our like backend that we had and just like, obviously did not expect that it's going to be.

People are going to use it and like the usage is going to grow as much as possible. But coming back to your original question, I think like what happened is just like literally this in a matter of like days or month. I mean, obviously it follows like a lot of years, many years of research, but like it was very clear step function in the quality of the generated answers. And you can like literally, if you sort of like spend some time playing with it, you can clearly see that it's now becomes very, very good. We also realized at the time because like models are only going to get better. Things are only going to get like faster and cheaper. So there's something, there's a lot of stuff to be here.

For those who are still kind of learning about your organization and what you're offering, could you step back for a second? Like if you were talking to Jeff Dean or another investor, kind of giving them the elevator pitch about what you're doing specifically and how it's differentiated from the GPTs and stuff out there, how do you define that? How do you describe yourself in terms of the specific opportunity that you're pursuing? The fastest way to get the most accurate answers to your questions. I think that's essentially like answer engine. Then we got like one of the first people who coined this term. And can you differentiate that from a search engine a little bit there? Yeah, yeah. So basically in a search engine, right? So you...

you get like all the way it's like as i mentioned before in the search engine you have to search first you get a document let's say you have like top 10 results and you have to scan through all of them and identify the information to get your answer here we kind of like we do this step for you so we take the first step of the retrieval of the relevant documents and then we synthesize them into a human readable uh nicely fermated answer that you can then like if needed if you want to get more information then you can click on the citations that are kind of like nicely attributed for each sentence and then you can like learn more information and so We kind of like wanted to do things like very simple. We were like early on identified. So there is like two things we care about. This is accuracy and then speed because this is, you know, you want to get information fast. Google trained us all to get instant search results. I think that was like very important. And early on, it was like kind of like challenging because those models were like very slow. Our like infrastructure was not very advanced to do that. So like you, I remember like very first version, you would have to wait for like three seconds or like five seconds to get an answer. It was like very slow, but because they were like, it was like such a better experience than just like looking at the search results at Google. So people still would use it.

But our ultimate goal was like, okay, so can we be as fast as possible? So yeah, so the main differentiator is just that we care a lot about quality. So we minimize the chance of things being inaccurate or like hallucinate and we want to do it as fast as possible. And so that's kind of like distinguish us from Google because, you know, Google doesn't, for example, generate the answers, even though like more recently they started doing this, which is kind of like validated our idea. And ChatGPT probably primarily focuses on like different things, you know, but I guess also more recently they started doing web search as well.

What's up, friends? I love Backblaze. I'm happy to have them as a sponsor. Backblaze makes backing up and accessing your data astonishingly easy. This is a service I personally use. Go to backblaze.com slash practical AI. You get unlimited cloud backups for Macs, PCs, businesses for just $99 a year. You can easily protect business data through a centrally managed admin, protect all the data on your machines automatically, easily deploy across multiple workstations with...

various deployment options. You can add on enterprise control, including granular access permissions, advanced single sign on group management controls and compliance support. They even offer multiple restore options, including rapid recovery in the event of data loss or ransomware. That sucks. You can access your backed up data from anywhere in the world using their web app or their iOS or Android app. You can even restore by mail. They'll give you a hard drive. All your data shipped to your door. You buy a hard drive, restore, send the hard drive back within 30 days and get a full refund.

and get one year file retention and version history. Over 55 billion with a B files restored for customers so far. Visit backblaze.com slash practical AI so they know where you came from and continue to support the show. This is a service obviously recommended by me, but also by New York Times, Inc. Magazine, Macworld, PC World, LifeWire, Wired, Tom's Guide, 9to5Mac, and just so many more. You receive a fully featured or no-risk trial at backblaze.com slash practical AI. Again, they're supporting the show. Go there, play with it, start protecting yourself from potential bad times. Start today.

So you mentioned a few things there. You mentioned web search, you mentioned retrieval, you mentioned the large language model. So at least in kind of how I think about it and maybe others categorize it differently, there's one element of information that you can get from an LLM, which is I'm going to put in a prompt and it's going to generate text. And that may contain some facts or made up facts or some text, but it may be informational, right? So there's some sort of knowledge that can be gained there. And then in a second case, there's a way to retrieve on the fly external data.

So that could be like from your company's documents. It could be from the web, whatever. And then inject that into prompts into the model, which kind of grounds it. And like you say, would give you a citation. There's also, you know, more agentic approaches to this where maybe there's multiple ways that you could get knowledge, maybe doing a web search or searching a certain database that you have access to or any handful of sources that you've kind of curated as tools and you call them.

in a more automated way. So I'm wondering from your perspective, obviously you are part of a team that have been exploring this very deeply from very early on, like you say, when these models made that jump. From your perspective now, both in terms of what you're building with perplexity and also kind of how you generally see the ability to get accurate information from these models, how do you view those kind of categories in terms of their utility and what you're relying on? for the accuracy element specifically. The way I see it's going to unfold, I think the tools and sort of like agentic behaviors, I think that's where it's going. I think it's going to be the main bottleneck for this right now is just like models are not smart enough yet to take into account and answer like reason, all of the information that is out there. But I think it's going to be like a main component. So there's going to be like models. They're like very powerful already right now. They're like trained on a lot of data, like basically internet. They have a lot of internal information, internal knowledge, and they can do like already like very good job of synthesizing information. There's like certain things that they don't do well.

Perhaps they're never going to do well. Those things, for example, computation, when you need to maybe run some code or do some sophisticated math computations, the LLM architecture as transformers is going to struggle at that. Also, because those models are so big, sometimes it's going to be very expensive to them update very frequently. So you need a way to ingest something, some new information that just happened, and it's still not part of the LLM weights. You have a way to, and this is what we sort of specialized.

Also some private documents, as you mentioned, right? So sometimes if it's like enterprise, you know, you have some of the documents that obviously the model was not trained on. And you kind of like maybe want to reason about those documents, right? So, and there's like all kinds of other tools that you can, yeah, eventually there's going to be like agents that's going to do like actions. Maybe you're going to like book a ticket, like buy a ticket or something like that and stuff like that. So I think it definitely where it's going, it's going to be like a synergy. Everything's going to come together. We just need a top level, powerful model that's going to kind of reason behind multiple things. And we'll have to need to have like a long context windows, maybe like some memory as well.

And then, you know, just like utilize those tools as much as possible. How we have perplexed to thinking about it, we are like, okay, so, and there's like multiple ways and multiple sort of like applications, multiple use cases of this general approach. We are primarily focusing on the information retrieval part of it. So kind of like initially that, that is the main component because there's like lots of things to instruct from web, but also we're thinking about how to integrate a new different data sources. Maybe like some of the different databases, maybe there's like some more complicated or like more specialized documents, like, you know, maybe there's like PDFs or something like that, or like some financial data.

things like that. The other aspect that I'm very excited about and we're working on is kind of do, you know, right now we can answer, we can do like a great job of answering like complicated questions that you can get answers on Google, but like still not something where you can ask experts and then can get an answer, right? Like what if I have like a question that is just like requires like multi-step of reasoning. So it requires like, okay, like searching web multiple times, analyzing information during the issue retrieval and then like maybe refining the search. So kind of like those things that may be going to take some time, but like if you do it yourself, you would spend like, let's say like an hour.

So here, maybe the system would spend like 30 seconds and it's going to save you a bunch of time. So kind of like those use cases that can answer very complicated questions. And we believe that there is a world for those type of questions. Technology like this is going to be useful. As people are using an answer engine like yours more and more often going forward, and you kind of alluded a moment ago to the fact that...

LLMs are not the be-all. There are things they don't do well, like mathematics and such and a variety of other things I'm sure that we could all throw out there. But they're really powerful at what they do. But clearly there is a place and a need for both the LLMs, these largest models that kind of suck up all the air in the news cycles, as well as many smaller models that are specialized, a mathematics model that you plug in. As we're looking at trying to use answer engines to retrieve information, and that information is increasingly multimodal in nature in terms of what you're asking.

how does the architectures of those come together? This is a space, it's not the first time we've asked it here, but it's evolving so rapidly. We're no longer hosting a model. You're now hosting a whole collection and they may be mixed with models that you're APIing out to and such. How does that look to you as you're building this company at this point? It's going to be always like trade-off between, like if you have like one powerful model, I mean, yes, you can do like lots of general things like super well, but like it's going to be slower. It's going to be more expensive. One of our like key principles is just like we want to do things very fast. So we can get like that answers as fast as possible. That means you have to,

design your system like orchestration system in a way where certain things will have to rely on like customized models like something that is much smaller much faster but it knows it's like a specialist model so it's not a model that like knows how to do everything but it knows how to do like one task and basically the challenge here is like how do you balance between this like general models and this like a specialist models and i think we've been doing um this like from the very beginning so like when you send the request to perplexity it's just like not one model there's like i don't know at least like 10 different models trying to um do lots of things with your request It's like all kinds of ranking models, bunch of embeddings, all different classifiers and stuff like that. And the other trade-off here is just like, it was general model, let's see, one of the big, and I think it was actually a very critical component of why a company like Perplexity in the first place became possible is, it's like the speed of iteration. You literally can change the prompt and you can just get a new product in a matter of hours. Imagine a couple of years ago, if you wanted to build something like Perplexity or whatever, either like GNI product, you have to collect data first.

have to train the model, launch the product, see if this product makes sense. Does it have market feed or not? If it has market feed, then you like start collecting data and then you just like keep improving. So what being possible is GPT models like an API is just like this kind of like flipped over. So you very quickly can build the product, see if there is any signs of life for this product. And then you start collecting data, which is I think honestly the most important thing. And once you collect data, you can like distill it. You can build like many other like smaller models and kind of like optimize the experience. So you can make the models faster. You can specialize them. I think this is the key. I think this is the...

Honestly, it was like one of the most fundamental changes in the development. And we kind of like took advantage of this thing like early on and then still using, but it's still tricky kind of like, imagine like every time you have this like specialized models and you have like, if you have tons of them, you have to then like treat each model like care about each model. So if you want to like retrain this model, so you have to spend some time on it. So you have to like evaluate it. So it becomes more difficult to manage. But on the other hand, you know, you have some great benefits.

the key is just like you don't want to go like too overboard with those models like if everything is on like customized models but also you also clearly don't want to have just like one model that's going to do everything so yeah i have a question maybe related to that which i think is a pain point a lot of people are feeling and i'm i'm guessing your teams have felt which you even mentioned this like you you can have make a small change in your prompt or create a new prompt and all of a sudden it's almost like you have a new product which is sort of like amazing in one sense and really frustrating in another sense because as you were just alluding to it's like oh maybe i have these like 17 different things chained together And they all have prompts that I've worked really hard on. And then like tomorrow, you know, llama 17 comes out or something. And now like it behaves, it has a different character of behavior than the previous model that I was using. I'd love to use it. But now I have all of this. It's almost like AI model debt that I've got in my system. Do you have any perspective on that or anything that sort of has happened in your experience in this regard? Yeah, yeah. This has clearly been a...

been a thing and it's been happening quite often. And if I would guess that's going to continue happening. One thing we like realized early on is, okay, so this is going to be the case. There's going to be like, there's not going to be like one model that rules them all. I mean, even though like sometimes it was like GPT-4, but like now we can see there's like particular like Anthropic, you know, Gemini, like Lama. There's like going to be a future where there's several frontier models, right? Because of that, we decided, okay, so like let's design our infrastructure and our system in such a way that it's going to be model agnostic, right? So, and then.

means okay so there's like a ways where you can evaluate each component independently there is a way where you can quickly um change things up to adapt for like a new model and stuff like that and that's uh it took some time to get there but it's i feel like it was like a very correct decision for us and then so for example one of the advantages we have over let's say like uh things like chat gpt or like load or like basically one model providers companies is just like we can seamlessly integrate many different models and like our users can like okay decide this is the they want to use this model already they wouldn't do that more like later on as we progress i think we can even like decide based on the complexity of the query or like the type of the query we can like route to like a particular model that does the better job for those type of queries and like, you know, minimize like maybe like some of the queries are super simple, you don't need to run like a very large model that was like to answer. So then you can like can optimize speed and things like that. So I feel like you have to just make a system in a way where it's like agnostic to the model.

What's up, friends? Have you ever had trouble accessing that favorite sporting event or that awesome show or that film even? Because it's not in your region. Well, our friends at NordVPN can help you switch to a virtual location to a country where it is available, unlocking a world of entertainment. Plus, it's not just about streaming. It's your go-to for online security. Protect your bank details, your passwords, and your entire online identity. If you're traveling, they can shield your data on public Wi-Fi, keeping you safe no matter where you're at. They also have this cool feature called threat protection. That means you can think about viruses, malware, and phishing sites because NordVPN will protect you no matter where you're at. They're one of the fastest VPNs globally. They ensure no buffering while streaming and no stops for your ISP from bandwidth rattling. It might sound costly, but think again. NordVPN costs less than a cup of coffee a month, and you can use one account on up to six devices to get the best discount off your NordVPN.

Our link will also give you four extra months on the two-year plan. There's no risk with our 30-day money-back guarantee. Once again, go to nordvpn.com slash practical AI. So to follow up on what we were talking about before the break there, I know that you were talking about really building around model agnosticism to be able to handle that. I couldn't help but wonder, occasionally as we get a new model out, it breaks new ground on modality, being added in, a whole new approach, that kind of thing. And so how do you, as a business builder who is having to try to accommodate all these different models, when you have one that jumps out and has a completely...

new thing added in that was unexpected prior to the announcement. How do you, in the organization, how do you guys kind of pivot to accommodate that and keep the agnosticism and yet provide that extra functionality that's now available? How do y'all tackle that problem? The most important thing to me is to not be caught off guard and try to anticipate what's going to happen. I think that's very important. And it's kind of like, for the most part, I wouldn't say it was like too hard to predict what's going to happen. But after that, I think it's primarily like product decision, right? So like, do you...

Does this new feature benefit your product or not? Do we want to like build something in product or not? So for example, one great example was image upload and kind of like multi-modality, right? So we knew, it was like last year, we like knew for sure that this is going to happen at some point because there was like already like some smaller models that kind of like supporting that. We knew that, you know, much better model is going to come out. And then because of that, we kind of like in advance start, first of all, like understood like, okay, so this is going to be important for our project. So we can support like this and this and that, those use cases. And we decided to build infrastructure in advance and kind of like anticipate it. Obviously we didn't fully like predict like...

exactly it's going to operate but it was like very close so it was like required like literally a couple of days to adjust uh and then we were like one of the you know very quickly can release it as a product so it's having the system that it kind of general enough that can like support those like new modalities it's very important get some great deal of uh anticipation but also you know like sometimes you know like certain features that maybe come out maybe they're like not useful for your product you don't you also don't want to like put everything into okay so like this is a cool feature let me just add a few products like that that's always not another great idea in general so only things that make sense. And if those things make sense for your product, you likely already thought about how would you implement them in advance. It just makes it a bit easier. While you were talking, I was thinking there's sort of one axis that you have to navigate here around model releases and functionality and modalities, all that stuff. There's sort of another maybe around UI and user experience. It's sort of multiple people making the comment, oh, well, like the chat interface came out with chat GPT. So everyone's sort of like focused around the chat interface. Is that the best way?

to utilize this sort of technology in the long run there's probably a lot of exploration that's still open around ui and user experience with this type of technology and certainly chat is is relevant and you know we're using it a lot already i'm wondering from your perspective especially as we see this functionality maybe more embedded in the physical world around that whether that be like in our glasses with with meta glasses or in like kiosks in airports or whatever whatever those things are What is your perspective on how important it is to explore new types of UI or user experience with this technology? I believe like, I mean, we kind of like, we're like very confident early on is just like chat interfaces is a temporary thing. It's just too limiting. It has like a lot of constraints. And that's why like, you know, we didn't follow the usual route. Like it was all of the like chatbots. They were like literally copied chat, chat, chat, and kind of like, I guess it was like chat interface. We kind of like thought a little bit more about this and we designed it. I feel like ultimately.

Right now, we're still in this early stage where people care about the model itself. So the model is the thing. But as this thing gets more advanced, as more people start using Gen AI products, I feel like the main thing is going to be product itself. What kind of things can product do? Do you do it better than this? Do you have the best UI? Do you have the best UX? And that's why we kind of early on was been thinking about those things. And we kind of designed our product in a way that is the most suitable for the things that we wanted to do. So if it's like search, it doesn't make sense. We knew that chat doesn't make sense for search. It's just like that's not how people search for information.

That was a very big factor, I think, in our success. The other thing, I guess, we also, even last year, we started prototyping and experimenting with this concept of generative UI. So something where LLM can guide what kind of UI elements you can generate. And then sometimes, one of the things in chat interface, if you want to ask a follow-up question, sometimes it doesn't make sense to ask it as a sentence. So maybe you want to show a checkbox or a button or whatever.

If there's like a, it's just like, especially on the mobile, like everybody uses phones, right? It's just like not very convenient to type, especially if you're on the run. So you'd rather like press the button. That's why like maybe speech and I guess like voice technology is going to be one of the interesting modalities for sure. I feel like an interesting interface because it's kind of, it has a lot of advantages. Obviously it has like lots of disadvantages too, but definitely going to be interesting. And I think like going forward, as we go towards like agentic behaviors and like more things are going to become possible, I think it's definitely not going to be like chat interfaces. It has to be something else.

I'm really fascinated by this topic. And it's, I think, something that both Daniel and I have some passion for just in daily use and stuff. I'm wondering, with you thinking about that kind of productization, do you think that's something that perplexity engages in in a direct way or supports other companies through that? And then... There are so many times in the course of a typical day where I'm wishing I had other ways of interfacing with these capabilities that we're talking about. And I'll give you just a, just a tried example. I will take my dog for a walk at a nearby park every day. And that's my thinking time. That's where I'm really trying to be creative and I'm walking and I have to keep walking. You know, I don't want to stand right now. I have to, I stop and I pull out my phone and it's frustrating and people are going by me. I'm trying to hold my dog. And, but I want this experience. It might be while driving, might be while walking the dog where this seamless way of utilizing these capabilities that we've grown accustomed to come about. Are you a...

how do you see yourselves being part of that next journey on the interface side and b um do you have any ideas on how to get there it's just uh that's the next thing i want definitely looking into this i think uh and we consider like multiple options either like certain things i think we can do ourselves for certain other like things we probably have to work with some some other like partners because i mean yeah but i i truly share your um kind of like experience and i think it's yeah it's just like if you sit in front of a computer i think they are by far the best interfaces uh keyboard i don't think you can do better than that but uh yeah if you you know occupy it with something else if you're driving a car maybe you're walking you there has to be something else like even like phone is you know it's it's okay maybe like even like taking notes maybe you like say a command and something like that but when you get the voice back that's already like something but it means it's like visual information so you kind of like want to add that so that that means you probably have to have some sort of like glasses on i think it's it will definitely happen and we will try it we feel for sure we like we spend a lot of time this year improving our mobile app to do uh voice to voice And we can, like, invest it a lot into, like, voice generation. So, for example, you can, yeah, ask, like, various questions. And, like, you know, like, if you need something quick, like, you walk in, you, like, I want to have, like, a quick lookup of information. So we support that. There is something, for example, for if you drive a car, we have this, you can read up, like, the stories. So, like, discover from perplexity. That's also, like, AI-generated voice. So it's kind of like you listen to a podcast or, like, so that's super important. Yeah, I think that the next step is vision. And so, like, how do you get there? Maybe one challenge that I've been thinking about this entire time while we've been talking relates to definitely a...

danger that I think people have identified as related to this new technology, which is you've already mentioned that you're kind of doing web retrieval or retrieval from certain sources as kind of a primary way of grounding answers of ensuring accuracy of citations. But I know a lot of people are concerned about and thinking about this sort of idea of data poisoning, where we're putting out actually a lot of generated content on the web, right? And that proportion of human and generated content is going to change over time, which means even for retrieval systems, especially if you're doing... web-related searches, there's a potential that you could retrieve generated content itself and get in this kind of weird loop. Of course, there's a separate problem for like the models and how they're training. And I mean, this affects a lot of different areas, but I know probably you've been doing a lot of thinking about this because it's kind of key to how you operate as a system. Any perspective on that that you feel like people should keep in mind kind of moving forward or things that you're thinking about in terms of whether that's data curation or validation, or I know a lot of people are talking about.

detecting generated content and that's maybe hit or miss. So there's all of this kind of connected stuff, but generally around this idea of data poisoning or generated content on the web. Any thoughts? To me, it's kind of like a technological problem. I feel like it's very reminiscent of like spam classifiers, right? Like just like another level or like, but let's say like 20 years ago when you like recent emails.

Yeah, you would receive a lot of spam and then eventually people develop technology that can detect it. I feel like something like this will happen. So it's always going to be a constant battle between generators and discriminators. So at some point, generators may be going to be better. It's like fighting malware. Yeah, yeah, exactly. It's the same concept. It's definitely going to be an issue for sure. But my hope is that and my belief that the good guys, the good generators are going to be just like...

For machine learning fundamentals, discrimination is a much easier problem than generation. It's much easier to tell what is good, what is not, than generate it. And usually it seems like we've been more successful in detecting this stuff. And I don't see any reasons why it's not going to continue. So this has been really fascinating. As we wind up here and have you here for one more question, as we've talked about the future and have been kind of talking about what our expectations might be and how those might be fulfilled, are there any other areas that we haven't addressed that you're interested in? And possibly as part of that,

any way of kind of summarizing your own vision without it being just answering questions that Daniel and I have thrown at you, but your own vision for what the future looks like to you and what you want it to be and what perplexity is trying to realize it as to kind of paint a picture of what we might see over whatever timeframe you want to address. Yeah, yeah. So I'm very excited basically to get to a point where, you know, I have any question, any problem I want to have and then just like go to perplexity and it's like... get an answer or like suggestion or even like perform an action for this. I already mentioned this thing where kind of like increasing the quality or like the complexity of the type of questions you can ask and then making sure that the system will be able to handle those. I think this is definitely going to be the future and I think we work hard on that. It kind of like opens up another dimension. You know, you can just, you can ask like lots of simple, simpler questions or you can just like one, have like one hard question. So it's kind of a, you know, complexity versus quality. And I think ultimately when you get information, you usually use it for some sort of like decision-making, right? And so if we can then,

take this information that we've retrieved for you and synthesize in a form of answer, can we also then do like some decision making for you? And can you perform actions on your behalf? So like imagine, I don't know, like you imagine like you're researching something, maybe you want to like research to buy like best running shoes, right? So it's a pretty painful procedure right now because there's like so much stuff in the internet, like you don't know what you trust. So that's why like, you know, if you identify, usually like running shoes, you just like stick with them forever because it's just, you trust. But like things like that. So imagine if you, somebody will do like this, like research for you, like really nails it down, like weights all the pros and cons. And then.

suggest like it's like do you want to this is the possible like variance you want to buy this stuff and then you say yes and then it goes like automatically buys it for you and then like two days later it's delivered and you you only need to type like questions once you don't have to push your credit card in and stuff like that and there's like tons of examples so kind of i would say that the future is like first you would have to make sure that you can nail um sort of like the information retrieval part and kind of like generating the most useful information the next step would be like decision making so like make decision based on this information and then third step two actions So that's where I think I would be excited to get to that point. That's great. Yeah. Thank you for being willing to take time to dig into a number of topics that I know our listeners are exploring themselves and also interested in. And certainly perplexity has been leading in a lot of these areas. So keep up the good work and thank you for the work and the perspective and taking time to talk. Appreciate it. Yeah. Thanks for the great questions and thanks for having me.

All right, that is Practical AI for this week. Subscribe now. If you haven't already, head to practicalai.fm for all the ways. And join our free Slack team where you can hang out with Daniel, Chris, and the entire ChangeLog community. Sign up today at practicalai.fm slash community. Thanks again to our partners at fly.io, to our beat freaking residents, Breakmaster Cylinder, and to you for listening. We appreciate you spending time with us. That's all for now. We'll talk to you again next time.

Frequently asked questions

How long is this episode of Practical AI?

This episode is 46 minutes long.

When was this Practical AI episode published?

This episode was published on June 19, 2024.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this Practical AI episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.