This is a free preview of a paid episode. To hear more, visit refactoring.fm
Today's guest is Denis Yarats.
Denis is co-founder & CTO at Perplexity, one of my favorite products and one of the most successful AI startups today. Perplexity was founded less than two years ago and has just raised $250M in venture capital, at a $2B+ evaluation.
With Denis, we talked about the state of AI products and his vision of where they're going. Then we talked about Perplexity as a company, how the team is organized, how engineers work, and how they use AI themselves.
I apologize for the extremely low quality of my audio on this one 🙏 I didn’t realize the recording picked up my headphones’ mic, instead of the proper high quality one. We’ll fix it for next time. Sorry again 🙏
🎙️ Episode
You can watch the full episode on Youtube:
Or listen to it on Spotify, Apple, Overcast, or your podcast app of choice.
🥇 Interview Summary
If you are a 🔒 paid subscriber 🔒 you will find my own summary of the interview below.
It’s the 10-minute, handcrafted takeaways of what we talked about, with timestamps to the relevant video moments, for those who don’t have time to sit through the 1-hour chat.
Let’s dive in 👇
1) From SQL to the Web 🔀 (video)
A little known story about Perplexity as a product is that it didn’t start with generic, web search.
Founders focused on structured search first, creating an engine that would translate natural language queries into SQL. However, they quickly realized that unstructured search provided broader utility, and pitoved to it.
The pivot was enabled by the founders’ technical background in search and language models, and the timing was fortuitous as well, as the rise of ChatGPT increased the public interest in AI, and provided the perfect moment to launch such a product.
However, Denis recounts how the team initially met challenges in raising capital. Investors were skeptical about the viability of a new search company, given Google's dominance. The team had to develop robust tech and a fairly polished product before they could confidently introduce it to the market. Their persistence paid off, as users’ adoption immediately went through the roof.
2) Saving time ⏱️ (video)
Today, Denis believes Perplexity’s strength is in complex queries that would require a lot of navigation and summarization. Perplexity focuses on speed and accuracy, with the goal of making people save time vs using Google.
Perplexity is (in part) a paid product, while Google is free, but Denis believes the time saving makes Perplexity’s cost worth it for a large number of users.
As we moved to talk about how Denis’ team works, we first discussed hiring:
3) Trial periods ⏳ (video)
Perplexity employs a unique hiring process that involves trial periods instead of traditional interviews.
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_01And you can argue that the most valuable resource is actually time, especially people who work in the industry, like knowledge workers, people who actually use Google and tools like Perplexity for their day-to-day life where they're trying to do useful things. In that, if you look at those users actually, you know, yes, Google is free, but you're paying Google with your time.
SPEAKER_03Yeah.
SPEAKER_01And so basically there is an opportunity where, okay, so like, yes, I'm going to save my time, but I'm probably going to pay a little bit more for that. And as long as you can provide this service where, you know, it's still like net benefit for people.
SPEAKER_00Yeah.
SPEAKER_02Today's guest is Denis Iaraz, who is CTO at Perplexity, one of my favorite products and one of the most successful AI startups today. With Denis, we talked about the state of AI products and his vision about where they're going. Then we talked about Perplexity as a company, how the team is organized, how engineers work, and how they use AI themselves. So let's dive right into the action after a short word from our sponsors.
SPEAKER_02Many of you who work in larger companies or have gone through due diligence have had to keep track of how much open source is in the code. So what's coming next now is having to keep track of how much GenAI code is in your code. A company called Syma led by Matt, who is a long time refactoring member, is building the AI code monitor to help. What you see on this screen is using the AI Code Monitor to measure GenAI composition during a code review.
SPEAKER_02If you want to try it, Refactoring members get two extra few weeks. You can learn more at simasoftware.com and you can find the link in the podcast notes. Hey, Denis, welcome here and thank you so much for being here with us today.
SPEAKER_01Hello, I'm glad to be here and thanks for having me.
SPEAKER_02So, Denis, you are a CTO at Perplexity, which is one of my favorite products and one of the most successful AI startups today. You also recently announced a massive 250 million round by some incredible investors. So, first of all, congratulations.
SPEAKER_01Thank you. I guess we haven't announced this publicly yet, so that's probably the rumors.
SPEAKER_02I've read the rumors, so I took it for granted, but it's in the rumors, let's say. So, The first thing I would love to talk about is your journey, right? Because I've seen other interviews of yours and with Arvin. And what's really interesting to me is how you didn't exactly start with web search. Like you tried different things and you ended up here. So how did it go? It's really interesting.
SPEAKER_01Yeah, I mean, yeah, to be frank, I think this is kind of like a strategic point. We always wanted to do search, but it was just, you know, if you go to investors and you tell them, I want to build a search company, that was in 2022, they would tell you, okay, there is Google already, so maybe you want to do something else. But we, you know, I have background in search and LLMs. I've been doing this for all my professional career and kind of like always wanted to do that.
SPEAKER_01And so we decided, OK, so let's, you know, let's sort of like tell that we're going to do something else and like try out things. But also kind of like on the back end, work on the stuff that we actually want to do, which is search. So yes, we have a sort of like initial idea was, okay, so let's do maybe structured search. Maybe it's a little bit easier. So we'll do search over like databases and we kind of like use the older generations of the model. So the idea would be, you know, you take a query, translate it to SQL,
SPEAKER_01run a query and then sort of like analyze the result. Um, so that that's been, you know, going okay, but it kind of like also prototyped during that time, uh, unstructured search and sort of like using search real web search engines. And that, that was one, that one was working way better and it was like way more useful and just like wide has like wider, um, audience. And so we just needed to have this like a moment. We just didn't know like how to, uh, roll it out, like how to introduce it because like.
SPEAKER_01people would just not use it, you know, because there's Google. But we were in the right moment in the right time. You know, ChatGPT happened. That opened up a lot of eyes and people became like very more receptive to AI. And so, but we already have like everything that we need. And within like days, we launched our product. And, yeah, people were very happy to use it. And, you know, it was, like, very interesting to see. You know, we kind of, like, been trying to sort of,
SPEAKER_01like, advertise or, like, have customers use this, like, text-to-SQL product. And it was just, like... People were not super excited. They would try it, but then it just doesn't work. They were just, okay, maybe I'll try it next day. But you clearly did not see a lot of tractions. But with this search, it was just very clear right away. And then very quickly, within a week or two, we kind of decided, okay, this is exactly what we want to do. Let's just focus on it full time.
SPEAKER_02And at that point, I guess, you could maybe more easily talk with investors, I suppose, through just having the idea on paper.
SPEAKER_01Yeah, that helped a lot because that was around like very close to Christmas break. And we were like, OK, so we still were like not certain. We were like, OK, let's see what happens over. Maybe it's a fad. Maybe it's like a week away. One week after, maybe after the Christmas holidays, traffic is going to drop. But to our surprise and excitement, it did not drop. It actually continued to grow. And so that was a very clear signal to us that there is something in it and we should just continue it because it's very rare when you launch something and it
SPEAKER_01just keeps going right away.
SPEAKER_02Yeah, like instant product market fit, basically. So I'm going back to what you said at the beginning that it would have been hard to go to investors straight away and say, we're going to do web search, right? Because when you think about it, this is one of the most heavily guarded use cases in tech, right? So a company, a product like Perplexity, made by a small startup, by some accounts,
SPEAKER_02it shouldn't even exist, right? So how is Perplexity winning users over Google? Myself included, by the way. It's my default search engine on the browser. So what makes Perplexity special to you?
SPEAKER_01Yeah, I think it's exactly the same idea what made Google so successful in the early days. It's just we have a very strong alignment with what users actually want to see from search. So they want to get the answers that they can trust. that they can rely on. They want to get them very fast and something that's going to improve their productivity. So Google over time, it started like that,
SPEAKER_01but because of many, many iterations from the ranking system and then the obviously ad system, that target function is sort of like slightly different than what users want. It's more like what makes money. And so that's sort of like this divergence, I think, is an important factor. And I think something that our product does well. But also, I think, you know, it's kind of like also allows you to add on top of the classical search engine
SPEAKER_01where it sort of like simplifies a lot of workloads. And now, like, instead of you going and clicking on all the links and then kind of like reading... information by yourself and then making your research, you can ask on this like very powerful technology that only recently emerged, which is an LLM, do this work for you. And like, obviously going forward, this is just going to be much more advanced as we, as the models become better, as we, uh, improve products. So it's, it kind of like goes way beyond, uh, the general like search capabilities.
SPEAKER_01Yeah. So it's more like answer engine and eventually it's going to be even more than that.
SPEAKER_02Yeah. You know, I'm thinking there is like this big debate where people are wondering how startups will be able to win over incumbents in this AI shift, right? Because many say AI is very expensive, you know, running your own models or creating your own models. So it needs, you know, compute and it's a lot of money. So how do you think AI startups like you can eventually win. So it would be because you can go places that big tech cannot go or it's like low
SPEAKER_02speed and quality of execution. How do you see this like long term?
SPEAKER_01Yeah, yeah, that's that's a very good point. I mean, it's for sure like our cost per query is way much higher than Google's. But on the other hand, I think we can do much more complicated things. And you can argue that the most valuable resource is actually time, especially people who work in the industry, like knowledge workers, people who actually use Google and tools like Perplexity for their day-to-day life, where they're trying to do useful things.
SPEAKER_01In that, if you look at those users, actually, you know, yes, Google is free, but you're paying Google with your time.
SPEAKER_03Yeah.
SPEAKER_01And so basically there is an opportunity where, okay, so like, yes, I'm going to save my time, but I'm probably going to pay a little bit more for that. And as long as you can provide this service where, you know, it's still like net benefit, for people, I think they're just going to use it. So it's just like, yeah, definitely will require like rethinking the, what is the monetization strategy here, you know, like, and what are the other ways, but it's like clearly sort of like the extra dimension.
SPEAKER_01So you, and it's kind of like proportional also to the complexity of the tasks. Like, obviously if you do something simple, like some navigational query, yes, you can do it like very cheaply. In Google, it's kind of like all types of queries is like the same, right? So it's just like the same level of complexity. So you either find it or not. Here, you kind of like the cost of the query is going to be proportional to the compute. And so more expensive, more complicated queries will require more compute, but they're also going to save you more time.
SPEAKER_01And so there is this like nice equilibrium where you trade enough compute for time and like compute is going to be the currency of the future. So, and people are just going to be.
SPEAKER_02Yeah, and for what it's worth, it's exactly the value proposition that works for me. I mean, saving time, especially on complex queries, saving really a ton of time on those. And I think one of the things that makes perplexity peculiar is that it sits on top of the existing model, AI models, and users can even choose what to use, can swap them. So do you think this is the model that for AI startups that will eventually win,
SPEAKER_02like with standard AI models embedded into all kinds of products made by startups as opposed to, I don't know, vertical user experience? models like OpenAI and the likes.
SPEAKER_01Yeah, this is a very strategic decision that we made early on. We kind of like realize that there is going to be, there's not going to be too many models, but there is going to be several very like frontier models. And then, you know, and also like over time, only a few organizations will be able to deliver frontier models because it's just like, it is very expensive. And, you know, if we decided, okay, so we were like a small startup,
SPEAKER_01we decided we were going to build our foundational model first, and then we launched the product. we would have absolutely zero chance. And so, but like what LLM and LLM API sort of like enabled, which was not possible, let's say like a couple of years ago, is you can start your product, you can build a new product right away. And then if you see there is a strong market feed, then you can sort of like you know, start the product and then re-engineer, like, build infrastructure later.
SPEAKER_01So, I mean, like, our bet was just the product is still going to be the most important thing. So, yes, LLM is useful. You know, it's very essential to what we do. But in the end, people need product. People don't, like... They didn't want to have access directly to LLM and just figure out what to do. And so we designed our product and our infrastructure in a way that we can support several models. So it's not trivial to make it work with different models seamlessly, so we can switch that very easily.
SPEAKER_01Also, for some other cases, as open source pre-trained model emerged and they became more capable, we also invested a lot in our infrastructure where we can serve those models internally, you know, very cheaply, very fast. And so they power like a lot of use cases. But, you know, yeah, we decided that we're not going to be in a position where we sort of like go after like frontier models, at least like for now. And we kind of like made it strategic bet. So we will just
SPEAKER_01be uh very good at like utilizing different models from different providers but also um you know taking advantage of the open source models as well yeah and
SPEAKER_02speaking of open source models do you think eventually open source models are going to catch up with proprietary models and that is the destiny as it was with open source software which we can say eventually won or is it a different thing
SPEAKER_01Yeah, this is going to be definitely very interesting to see. I'm not sure right now. I don't have a good answer. I think I can see it evolving in either ways where, you know, open source model is going to be, you know, very capable, but they still going to lag behind the frontier models. On the other hand, you know, yeah, who knows? Maybe there is going to be like very capable and very comparable models to the Frontiers one.
SPEAKER_01So I don't know yet. I think we will see this unfolding. But we're kind of like preparing for both outcomes.
SPEAKER_02Yeah, I think that's the most sensible thing to do. And do you think we should still expect like big gains from new generations like GPT-5 and the like. So do you think we are going to see like diminishing returns, at least with the current LLM architectures?
SPEAKER_01I think, I don't think so. I think we like still, I think we still have a lot of room to grow just, I mean, even like a good example was even GPT-4. So the model actually was trained, finished training like almost two years ago. But we've seen incredible improvements on top of the space model through better post-training techniques, better data. And now it's clear that not only post-training matters a lot,
SPEAKER_01but pre-training matters a lot, but post-training as well. And then more recently, the synthetic data is going to matter a lot. So I think we're probably still far away from saturating that growth.
SPEAKER_02That's exciting. Yeah, that's very exciting to hear. So you obviously live and breath AI. And the very interesting thing to me is that not just from a technical point of view, but you run a company where you have to be thinking all the time about what people may do with it and how people may want to use it. So how is it for your team? How do you use AI at Perplexity?
SPEAKER_01Yeah, I think we use it everywhere. Basically, that's another big advantage with the tools that you have right now. You can have a much smaller team. We can achieve much more than it used to be before just because superior tools. I think we're trying to use LLMs in everything we do. uh you know prototyping you know like doing the uh whatever if you want to like do like something like a new model so that's always you kind of like um can use a lot
SPEAKER_01of uh bigger models for like data annotation for example like evaluations and stuff like that so it's just uh I think the rule of thumb I do, before we start using humans for any task, we better first figure out if we can use an LLM for that. If it's not, and in most cases it is actually true, Yeah, it saves a lot of time, saves a lot of money. And yeah, so far we've seen a lot of very successful applications of that.
SPEAKER_01And I think as models become even more smarter and more capable, I think it's going to open up even more opportunities.
SPEAKER_02Yeah, I love the mindset. First, you try to use an LLM for that. And then if it fails, you try to go with a human. So you said that Basically, one of the things that allows you to do is to having a smaller team than would be otherwise being able to achieve great things. So what does your product engineering team look like and how do you work?
SPEAKER_01Yeah, we have a pretty small team still, I think maybe around like 60, 60 people, 60, 70 people. We have like very flat organization. Primarily, yeah, have like a very capable engineers who can operate in a lot of uncertainty with just like very high level sort of like directions or like instructions, right? And then, you know, you just, yeah, have like curious people who want to try like different things.
SPEAKER_01And they also, I think it's prerequisite that they're also very excited about AI and they're very excited about like trying these new technologies. And then they sort of like, because this is a brand new, right? So there is no like right answers. We don't know yet. So you have to try a lot of things. You have to see what works, what doesn't work. And sort of like think you need to have this mindset where you think not about like what is possible right now, but what's going to be possible in six months or a year.
SPEAKER_01I think this is very important because this field moves as fast as I've seen anything moving. If you're basically not thinking about this, that means you're already behind.
SPEAKER_02Basically, what you're saying is that engineers have a lot of autonomy. Is it like they own full parts of the product and they go autonomously after new features and how does it work?
SPEAKER_01Yeah, yeah. We usually try to have everyone have like a sort of like a piece of a product or infrastructure that they own. And then they're like, you know, they have like some high level vision where it needs to go, what needs to be done. And yeah, they then autonomously like operate. So there is like usually we try not to have big teams on any projects like couple people, Max, I think because, again, that comes back to the level of tooling we have right now where we are very talented,
SPEAKER_01but a small team of like two to three engineers can do a lot of things and a lot of stuff done. So the advantage of this approach as well is that You don't have to waste time and energy on coordination. Those people can just, you know, organize themselves very well. And yeah, things just happen. It is obviously, I think a lot of, it took us some time to get here. It's not like magically happens, but I think it's a function of hiring the right people and sort of like empowering
SPEAKER_01them and sort of like establishing this culture and operation mode.
SPEAKER_02Yeah, so what you said hiring the right people, what kind of people are you looking for? Is there something about the attitude, the potential or other skills?
SPEAKER_01Yeah, yeah. So definitely, I think we, as we start, like, when we only started, we kind of like, had this way of hiring people where we just don't have a normal interview, but we would have a trial period. And so first 10 to 15 people, I think we're like hired through that period. And so basically what it entails, we get a potential candidate. We have them to work with us for like a couple of days on like a project. And the way we try, we kind of like during that period, we like try to emulate the real world scenario.
SPEAKER_01So we actually give them a real world product and then see if they can make progress in like three days. And like the best people usually can. And then so once we identify those people, then we like trying to hire. And that was like, obviously right now we cannot do this for like various reasons. Just like, but it was a very... useful thing for us to do and i think it was like fundamental uh what enabled us to hire like the very strong core of people and then the good thing about this is just
SPEAKER_01then those people will sort of like have this exactly the same mindset as the founder said and then they would like bring similar people as well and so that's kind of like deeply propagates into the culture into the way we operate And yeah, so I think for people, for the candidates, I think what we value, I think it's actually more important to... sort of like recognize the curiosity they like drive rather than,
SPEAKER_01you know, we would always prefer like candidates who are maybe just like less experienced, but they just like super passionate. They can work hard. They would like think about the future. They're like very excited about what we do over like people who are like, you know, like a typical engineer from Google who'd been there like eight years. just work on some feature and then it just doesn't know anything outside of Google. Those people are not going to work well in our company.
SPEAKER_02That's very interesting. I love the work trials. How do you run it? Basically, you have to keep some backlog of things that are suitable for these first timers. How long do the trials last?
SPEAKER_01Yeah, this was very early in the development of our company. I think at that time we have very few people and we have way more tasks than our projects that we wanted to work on than people. So it was a very natural way. We literally would invite somebody and we'll just give them something that we would like to work on and then we'll see if they can perform on it or not. And, uh, yeah, so, and then, yeah, they, they would like come in, like they would come into the office,
SPEAKER_01they would, uh, sort of like we, we sit together and then, you know, we, yeah, basically the, uh, idea is just like it's kind of like they're already like part of the company and kind of like and we would like see can we work with them together because i think like for startup it's also super important to make sure you know uh that you also perfectly align on the vision on the like culture uh on like attitude right so because that's especially for the for the initial stages of the company that's very
SPEAKER_01important so you you want to like have a very a small, but like super aligned, um, um, group of people. So then you can like push, move very fast and actually like create things.
SPEAKER_02Yeah. Yeah. And you also have like managerial roles, like engineering managers, tech leads or tech managers. So basically everything that is not strictly engineers.
SPEAKER_01Yeah. Until actually we were like, until very recently, we didn't have any engineering manager. we were like very flat company. I think only, you know, I had like a lot of reports like half of the company that johnny another co-founder had like the other half of the company was you know very uh uh sort of like we just work together we just like don't care about the um like the work structure or anything so just uh use things and we actually to this day even though like now we're like
SPEAKER_01almost 70 people that's how we operate we only recently hired the engineering manager And, uh, we have a few, uh, sort of like, uh, uh, product managers, uh, as well, but yeah, I think like engineers, a lot, a lot of, uh, uh, power and they like decide a lot. We just trying to add like a little bit more like organization as we, as we scale, but yeah, it's still very flat. And I think, you know, so far worked out for us very well.
SPEAKER_02Yeah, I think it ties back to what you said before that now with AI and better tooling, there's all this conversation around that you can go a lot further without formal management, without layering and things like that. So you said you just started hiring managers. So did you see some kind of tipping point or duties that you needed engineering managers for that make you say, okay, I have to start hiring engineering managers?
SPEAKER_01Yeah, yeah. Basically, I mean, it was just like became kind of impossible to just meet with everyone, like even like for 15 minutes every week. You just like to see what... And so that's mostly of that nature. But I think, yeah, I think we still sort of like, we'll try to preserve this kind of like a flat structure, not too many layers. I think it's, yeah, it's still, you can push it like pretty far, I'm pretty sure.
SPEAKER_02Yeah, so I'm very curious about, I asked many questions about how teams like you operate, because from the outside, you move very fast, these incredible things. So it's like you're at the frontier of how small startups can operate at elite level, right? So it's great already to hear about how you're trying to stay flat, how engineers have a lot of ownership. So with this kind of flat organization with a lot of bottom-up input, how do you plan work?
SPEAKER_02Do you have like a long-term vision and roadmap and maybe also some bottom-up input? How do you reconciliate this?
SPEAKER_01Yeah, we do. We're trying to be strategic about what things we work on. And so we have a plan for not too far away, but at least six months and the top-level directions. And then those top-level directions then translate into quarterly and monthly projects. And then, yeah, a lot of those projects are being led by engineers. Some projects probably... led by like PMs, for example, and, and, or myself or Johnny.
SPEAKER_01So that, that type of stuff, but it's, uh, uh, yeah, it's been basically, um, kind of, uh, uh, self uh self-organized you know yeah so we we just have like okay so this is a high level goals this high level directions this is what we want to do this is the projects that we're going to go after let's see let's figure out how we can go after them and like what what needs to be done and we usually also not trying to overthink and over engineer a lot we just okay so let's what is the most uh
SPEAKER_01what is the minimal thing we can do here okay let's just get it done let's see how it works if it shows like any promise then we'll continue so instead of like investing a lot into something and then realizing oh actually maybe it wasn't that that a creative idea so it's very important to be sort of like transparent and like evaluate at each stage of the project and so like making sure it's still the most important thing that you need to do so i think like maybe, especially in this field of AI, things changing so rapidly.
SPEAKER_01That's why sometimes you have to be very agile and you have to adapt very quickly. Um, just because, yeah, there's like a bigger powers, external powers that, uh, you, you cannot control. Like for example, if like a new model drops and has like much better capabilities and so then you have to, uh, uh, adapt for that. Uh, but, um, yeah, so that's, that's very important to sort of like self reflect and then, and see is, and ask these questions. This is the most important thing you're working on right now.
SPEAKER_01Should, should you do something else?
SPEAKER_02Yeah, and I think this kind of agility, this ability to, let's say, a new model comes out, you drop everything and make it supported and flexible. It's one of those things that are an asset for you versus big tech, right? You can afford to drop everything and go after the very best thing you should be doing right now, even if you have just figured it out because you're not compelled to follow a year-long plan at all costs, I believe.
SPEAKER_01Yeah, yeah, exactly. Right. This is like the main, I would say like the, the, the biggest advantage of a, of a smaller startups compared to the bigger organizations could, you can basically change the, uh, um, your direction on a dime.
SPEAKER_02Yeah.
SPEAKER_01Yeah.
SPEAKER_02So. and you you said you have like 60 to 70 people which my experience is that size where you're still like a small company but it's that side that's where things may start to break like organizational wise it's not like everybody works on everything all the time so you have like small teams that are like durable working and always on the same things or you assemble like feature teams for when something has to be developed and then people rotate on different
SPEAKER_01things so that how does it work yeah it's a it's a mix mix of both there is a more like long-term projects that are sort of like more like on the infrastructure so for example like we we build like training infrastructure we build insurance infrastructure search infrastructure uh so those are much longer horizon projects and you know people sort of like tend to stay there for like longer and work on those. But there is also like some of the, maybe like some of the things that are kind of like,
SPEAKER_01okay, so like maybe a couple of weeks or like a month's long project. So then for those who like usually mix and match, somebody who maybe have, maybe they want to work on this, maybe they like have a... more interest in this project. So then they would go and work on it. So yeah, it's, it's also, I think it's important to make it interesting for people. So they have like different challenges. Uh, so, so they just don't do exactly the same thing, but like, yeah, like enough, it's just, there's like so much, uh,
SPEAKER_01exciting stuff to do. So we never have a, We always have like way more stuff to do than we have resources for. So that's never been a problem.
SPEAKER_02Yeah, and it definitely feels from the outside that you have always plenty of exciting things to do. I mean, you ship a lot of things. So I mean, from the outside, it looks like top engineering team, which always fires from all this sun in there, pushing out new features. So I'm wondering, what's the developer experience? I mean, how often you ship? Do you have like intermediate environments, like staking? How do developers work and the whole life cycle of
SPEAKER_01Yeah, we're trying to shift things fast, but we also care a lot about quality. So we tend to spend a lot of time testing things, evaluating, making sure if we launch them, they're going to work properly as expected. So to that, yeah, we have to build a lot of... infrastructure and a lot of tooling to make sure we can test the features before it goes to production.
SPEAKER_01There's benchmark and evaluation sets where we can test the quality. There is obviously some regression and performance benchmarks as well. There is stages where we have a human in the loop. Sometimes humans will go ahead and check the quality of certain features. There is, I guess, LLM as well. Sometimes it goes and checks if things work as expected. And then, yeah, like the staging, like A-B testing.
SPEAKER_01So all of that kind of like more classical stuff. But yeah, each feature goes through the, especially now that we've got bigger, we've got like more responsibilities for our users. And so we try to sort of like only put the best work out. So we don't want to like, maybe like very, very early on when we have like three people working on it, we kind of like, would ship like things a little bit faster just because, uh, you know, we, we could afford it. So now we just still trying to ship as fast as possible,
SPEAKER_01but also care a lot about the quality because eventually this is builds into your brand and like people, you know, when they always go to, when they go to perplexed, they expect it always works. There is no box. It works as expected, works fast, gives you accurate answers, high quality. Yeah.
SPEAKER_02Yeah. Uh, I appreciate it because I think that this is a kind of culture that stems from the type of product that you're building. I mean, one of the biggest value propositions of perplexity is the actual user experience that it provides. So it makes sense to me that you build a culture around sweating the details of that kind of user experience and making it good, right? Making sure that it stays good.
SPEAKER_01Yeah, I think it's very important. I think it takes a lot of time to build that and build this trust, but it's very easy and it's very fast where you can tear it down. We have to be very careful about that. We also try to keep things simple. The main two objectives is, can we deliver fast and very accurate answers? I feel like if we deliver on those two dimensions,
SPEAKER_01delightful user experience, these two, three dimensions, if we can deliver, uh that's ultimately what's what's going to matter like yeah you can build all the features but if you sort of like don't do well on those two three dimensions then
SPEAKER_02you have no chance yeah and you said fast and accurate answers and i actually think what what surprised me the most about perplexity the first time that i used it was how fast it was because i i think I had already seen and tried LLMs navigating the web and searching for things, but it was always a very slow experience. It only made sense to me for the most complex queries where you were actually saving a lot of time. But I think perplexity hit that kind of threshold of being that fast that it made it viable for
SPEAKER_02a wider range of searches for each other with a gun to Google. So do you have like a secret sauce for making it so fast? How do you pull this off?
SPEAKER_01Yeah, basically, yeah, we spend a lot of time sort of like optimizing this. I think it's basically we will have to, you know, inspect every single component of our stack and like see where is the bottlenecks. I think like optimization itself is this like, you have to go after the most expensive things first. It doesn't matter to optimize things that only take like 2% of total request time.
SPEAKER_01So if you optimize like 50%, that thing is only going to be just 1%. So it doesn't really matter. But if you optimize something that takes like 80% of your time and you optimize by 10%, you're gonna have a big improvement so we have to be very methodical about that and very careful and so i initially had to build a lot of tooling to like really see what is going on where uh where time goes for each request once we had this like very clear picture a very clear map of what's going on then
SPEAKER_01we then, okay, identified this is the things that we need to work on to improve latency. And we just went and sort of, like, work on that and then, like, build things. That's why it's very important to kind of... control the end-to-end experience. Because once you do that, there is like so many interesting ways where you can optimize things. Like if you,
SPEAKER_01you know, if you just only control like LLM or you only control search, there is, you know, kind of makes it a little bit harder because you essentially like operating on the black box. But yeah, if you have an end-to-end product and you know exactly how people use it, what people need, you can be very creative and you can optimize things a lot. Exactly the same process goes to the quality. You just need to have a very accurate, very telling evals and kind of like really understand what's going on.
SPEAKER_01Because this is like even a much harder problem than latency. You know, it's much easier to measure latency here. Like you have to measure quality. which is a very subjective thing, but it's silly. You can do a lot of strides towards that direction. And I think that's, that's something also we sort of like haven't, haven't solved this problem, but like we're trying to do our best and like every day making progress towards it. I think it's, you know, it's very important to what we do.
SPEAKER_02Yeah. I'm curious about this very last thing that you said, because I agree that, I mean, latency may be hard, but it's at least very, pretty much measurable. But how do you measure the fact that perplexity answers are actually improving in terms of accuracy? Maybe they're more concise, maybe, or just, you know, people love them more. I mean, how do you work to make sure that you're actually improving on that?
SPEAKER_01Yeah, it's a very, very hard problem. I think you basically have to utilize all the signals and all the tools that you have. Yes, you want to collect all the implicit, explicit signals that user provides. You have to rely a lot on the, you know, human evals, like where you actually have like real humans who like provide results and like evaluate the different answers and they say which answer is better. They have like very... clear guidelines, how is the good answer should look like,
SPEAKER_01how is the bad answer should look like, what things they should focus on. more as as models become more capable i think a lot of this stuff can be automated with the even more powerful llms and so you can kind of like have different llms that kind of like judge different aspects of answers so for example they can tell oh is this citation that you've done is it actually you know accurate citation or not so you can have like a model that like only sort of knows how to do that.
SPEAKER_01And then you use that to guide humans. Essentially, your goal is to minimize the involvement of humans as much as possible. And so you just use them as the final judge and try to do all the work automatically. And so then they actually have to make a decision. They have all the information in place and then they can very quickly say okay this is good this is not good and then just provide like a holistic evaluation so yeah we had to build a lot of tools for that we had to like train a
SPEAKER_01team of evaluators and then human in the loop and yeah kind of like also employ a lot of like sort of like different other metrics you know the more like classical like non-parametric metrics Um, yeah, but yeah, it's, it's, uh, it's, it's work in progress and there's like so much stuff to do here.
SPEAKER_02Well, this is such an interesting part of the stack of the development process because, you know, QA and end-to-end testing, everything that tests for quality from the user perspective is so expensive right now. And, you know, in engineering teams, those kind of tests are expensive. If you run it through an external service with real humans, it's expensive. It's also not exactly reliable. You get a lot of flaky tests.
SPEAKER_02A lot of teams struggle with that to the point where they either don't do end-to-end regression tests at all or they only test their key workflows. so the idea that you can automate these or part of these by making introducing llms but keeping humans in the loop uh should be very powerful i mean thinking about about the future you can probably spin off another product just from that yeah yeah
SPEAKER_01i think that's i think that's clearly where it's going you know i i'm pretty sure like A lot of the human annotation firms already sort of like doing a lot of stuff like that. This just becomes not only sort of like improves margins for this business, but also more importantly makes the quality of the output is much higher. Because, yeah, you just want to automate as many things as possible and, you know, only have humans for the most important stuff.
SPEAKER_02Yeah. And so you're saying that in some, in some cases, this is kind of already working for you. You have LLMs doing some parts of QA.
SPEAKER_01Yeah, absolutely. I think this is a, it's been like bread and butter.
SPEAKER_02Wow, that's amazing, really. And so thinking about the future, thinking about these rumors of the next funding, which is not confirmed, let's say you take funding in the future, let's take it for granted. What are the next steps and your challenges for Perplexity, for as a product, as a team? So what's your mind thinking about as a CTO and a founder?
SPEAKER_01We're definitely going to use new funding for just improving our team, hire best people, and then spend a lot of the money or funding on building even better infrastructure, I think. There is just so much stuff to do. As we scale, as our product grows, there is so many features we want to deliver. Clearly where things are going is going to be this agentic behaviors where you will be able to answer very complicated questions and then maybe those agents not only
SPEAKER_01going to give you an answer, but also perform actions. based on the results of the research. So that type of stuff. There is certain verticals I think that's going to be very interesting where we can look into personalization, where we can look into maybe some of the shopping experience and stuff like that. I think those things are going to be very interesting to reimagine with this new technology. Um, yeah, so I think, yeah,
SPEAKER_01like the, just, uh, and, and, and obviously like the things that are sort of like going to be always there, as, as I mentioned, quality and like latency, intellectual user experience that, that also like need, need, needs resources to maintain and get better. So we intend to fully invest it into, uh, making our product better. make it so people are happy using it and just keep adding new capabilities that are going to make it even more valuable.
SPEAKER_02Yeah, totally. And I was thinking that in the past, thinking of the past decade, current big tech generation of companies, when some company announced around 200 million type of rounds, they would enter this kind of hyper growth story where, you know, headcount would double every six months or so, you know, the Uber of the world. So do you think about, you know, a similar trajectory for perplexity or as we said before,
SPEAKER_02since, you know, with each generation, tooling gets better, companies get leaner, you're thinking about keeping a much smaller team maybe?
SPEAKER_01Yeah. Yeah. I definitely think it's going to be possible. I think like, you can do much more with the fewer people now than used to be, maybe even a couple of years ago. We definitely try to stay as lean as possible. Obviously, I think basically our strategy for hiring people is just, okay, so we have something that we want to work on, but we don't have enough headcount for this. And we kind of anticipate this is going to happen maybe in a couple of months. Let's see if we can get somebody who can help us to do that.
SPEAKER_01So it's not like, you know, we're just like hiring people without knowing what they're going to do. But yeah, we, I feel like, you know, you're just focusing on quality rather than quantity. And then if you now with the tools that out there, people can be way more productive. And so, yeah, we will see, I think like one of the sort of like this first companies of the, maybe like the next generation of the companies that kind of like can do a lot of stuff with fewer people. And yeah, we'll see how this is going to play out, but I'm very excited about this.
SPEAKER_02Yeah, I feel that in a way you're paving the road even for others, right? I'm thinking about many things that we discussed like automating and with QA with LLMs or using LLMs in the development process. And this is part of what makes companies able to operate with less engineers, right? So other companies will look at how Perplexity does things and will get inspired and will be able to do more with less, I believe.
SPEAKER_01Yeah. Yeah. A hundred percent. I think my bet is that in maybe five to 10 years, there's going to be like a one person company that is going to be very successful.
SPEAKER_02Yeah. Yeah. Probably. I don't remember who said that, but we are almost ready, you know, for 1 billion, one person company. You probably see that. So, Denis, thank you so much for this chat. It was awesome. I took so many notes. We covered a lot of ground. So thank you again for coming to the show and for being here with us today.
SPEAKER_01Thank you so much for having me. It was a lot of fun to talk about these things. Thanks. Thank you.
SPEAKER_02Thank you so much for listening. If you found this chat valuable, you can subscribe to the show on YouTube, Apple Podcasts, Spotify, or your favorite podcast app. Also, please consider giving us a rating or leaving a review as that really helps other listeners find the show. You can find all past episodes and learn more about the show at refactoring.fm. See you in the next episode.
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now: YouTube | Apple | Spotify Today’s episode is brought to you by: TRM Labs Criminals are scaling with AI. Build the technology that...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify - Today’s episode is brought to you by: TRM Labs Criminals are scaling with AI. Build the technology that...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify Today’s episode is brought to you by: TRM Labs Criminals are scaling with AI. Build the technology that...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify Today’s episode is brought to you by: Notion Learn more about Notion’s Developer Platform today at...
This is a free preview of a paid episode. To hear more, visit refactoring.fm Listen now:YouTube | Apple | Spotify Today’s episode is brought to you by: Notion Learn more about Notion’s Developer Platform today at...