Vector databases for machine learning
22 Jun 2021 · 42 min
Ido Liberty, founder of Pinecone, explains vector databases as the infrastructure for similarity search on embeddings. He breaks down how neural networks extract features while vector databases handle retrieval, and walks through use cases like semantic search, recommendations, and fraud detection.
Chapters
I personally try to push the boundary and try to figure out what's the next huge milestone we as a society can hit for Pinecone specifically for us as a community. I think that really starting to think about not only the model that I trained and how do I put it in a container and ship it to some place in my app, but rather like okay, we now have this complete wealth of data that we can now use and how do we integrate intelligence data with compute and memory and storage? How do we make that behave a lot more like a brain and not like neural net?
Big thanks to our partners Linode, Fastly and launchdarkly. We love Lino. They keep it fast and simple. Check them out@lino.com changelog our bandwidth is provided by Fastly. Learn more at fastly.com and get your feature flags powered by LaunchDarkly. Get a demo at launchdarkly.com.
With advancements in AI and deep learning evolving at lightning pace, it's more important now than ever to research the best options suited to your unique needs. This is particularly true when building custom systems and those systems that are GPU heavy. Not only do the applications running on the system matter, but your AI infrastructure and budget constraints need to be front of mind as well. PSSC Labs, which is an HPC and AI custom solutions provider based in California, has been creating high performance computing systems to meet their clients unique enterprise computing challenges for more than 25 years. And with cloud computing costs growing at astronomical rates, plus companies increasingly losing control of their data security, it is no wonder that enterprises and government agencies need to continually look for ways to take back control of their data. Solutions from PSSC Labs provide a cost effective, highly secure and performance guarantee that organizations need to reach their AI and machine learning goals. For more information and a free consultation, Please visit pssc labs.com PracticalAI Once again, that's pssc labs.com PracticallyAI. Welcome to Practical AI, a weekly podcast that makes artificial intelligence practical, productive and accessible to everyone. This is where conversations around AI, machine learning and data science happen. Join the community and slack with us around various topics of the show@changelog.com community and follow us on Twitter. We're Racticalai FM.
Welcome to another edition of the Practical AI Podcast. My name is Chris Benson. I am a tech strategist at Lockheed Martin. Sadly, my co host Daniel Whitenack is not with me today, but we have a really, really good show lined up today. We're going to be talking about how AI is changing the nature of the Data that we have and what we might need to do about that. With me today, I have Ido Liberty, who is the founder and CEO of Pinecone. Welcome to the show.
Thank you. Happy to be here.
Hey, I'm glad to have you. I'm really excited about our conversation here today because I think I'm going to learn a little bit about it. Wondering if you will start us off instead of doing the normal bio that we do with everyone. Tell me something interesting, really cool that kind of led you into this. What's the kind of thing that you'd want listeners to know that's kind of a cool thing about your background that's kind of helped you get where you're at today?
I can tell you in kind of what got me into big data. I know big data, that's definitely kind of not cool to say anymore. But it was 2005, I was working on what's called hyperspectral images. So those are Images instead of RGB, you'd have 150 different spectra, so different wavelengths. And so you can analyze them much more deeply with computer vision, even though to our naked eye, of course, they look the same because we only have three spectra to consume images with in our eyes. But each image itself was about a gigabyte and our computers had 512 megabytes of memory. So one image was already big data and we had like a thousand of them. And so as a PhD student, we kind of like even, like just even a few images worried like big data. So even to do basic computer vision, you already had to think about algorithms on how to get more from less with computers. I ended up doing my PhD in theoretical computer science and working on algorithms and numerical linear algebra. But it's funny, how I got there was really just trying to figure out how to do basic computer vision on a single image. But the machine was too small and you just kind of had to figure out better algorithms and just loading everything into memory.
So it sounds like that was almost if you were working on that. It sounds like the move into kind of the current deep learning phase, coming out of past winters and stuff really fit well. It sounds like you were really well situated for that in terms of what you had been doing in school.
Yes and no. So the beginning of my PhD was maybe like, or maybe unlike other PhDs, was like a period about almost two and a half or two plus years where I experimented with different topics. Almost every few months. I would dive into functional analysis and then really into computer vision and then nlp and then go into numerical linear algebra and come back to whatever. And then it felt really chaotic and very wasteful in terms of resources, to be honest. But funny enough, over the years, as I became a director at Yahoo and then at Amazon, I actually found it to be incredibly useful because I could talk to all of these people. I could talk to the computer vision folks and I could talk to the NLP folks and I could talk to the algorithmicians and I could talk to the engineers. And so it was fun. So all this time wasted somehow came back in a different life and served me really well. So it's kind of like maybe a lesson to the ages with PhD students. Time wasting is not necessarily a bad thing.
That's true. When you mentioned aws, do I recall that you had something to do with SageMaker while you were there?
Correct. I was the research director in charge of SageMaker. We built that platform. I led the big creation of all the algorithms components in that and kind of spearheaded most of the effort there.
Very cool. And were you doing AI stuff at Yahoo?
Correct. I was heading the scalable machine learning algorithms group. That was the group in charge of the infrastructure that supported spam, classification, ad ranking, everything like personalization, ranking, threat detection, everything. Everything kind of was led by machine learning. It was done with a centralized group that was in charge of that infrastructure. Yahoo at the time was a real pioneer in machine learning. I don't know if people know that, but used to be a real powerhouse.
Gotcha. I guess as you went through those experiences at first, Yahoo and AWS and they kind of shaped where you were going and the way that you would be thinking about AI. I alluded at the beginning of the episode about changing nature of data. Can you share some of your thoughts along those lines and kind of how the world is evolving and how AI and the tools that we use in and around AI are starting to affect that 100%.
So I kind of give a historical tour on machine learning. I think maybe the listeners would appreciate that.
Absolutely.
We have been doing machine learning basically on vectors as input. So this like array of numbers and we used to think about them as features that we would handcraft like you would take. Feature number one is whatever the ratio between the volume and the price, and feature number two is the number of minutes it's been on the website and so on. As time progressed since deep learning gained more and more traction, more and more centrality in the AI world, crafting those features became in and of itself a machine learning problem.
Yes.
And so now you have embeddings. So these embeddings are these like auto generated features, like semantically deep features for objects, not only for like images and free text that we are kind of used to with NLP and computer vision models, but it's also kind of the lingua franca now for all data. So like user behavior and threat vectors on some network and so on. So this is how we generate features this way like nowadays. And so suddenly when you look at the world of just kind of what data infrastructure is able to digest, we used to think about databases and search engines kind of being kind of the main workhorses of data in the data infrastructure, in companies, in applications in general. But they really know how to deal with tabular data or text and like terms and documents, but they're very limited and nothing really knew how to deal with that. Just blob of numbers, this embedding, this feature vector, and still nothing knows how to deal with it. And here's kind of the amazing thing to me, and one of the main things that led me to start Pinecone was that if you look at any projection in any current statistic already on data in the world, the vast majority of it is not in tables, the vast majority of it is not schematized, it doesn't fit in the database, you can't run SQL for it. The vast majority of it is audio and video and free flowing text and user behavior, which is very amorphous. A lot of unstructured data, but it's much more than unstructured. It's really unstructured, it's really unruly. But today with these deep learning tools, we can actually featurize them, we can represent them as these high dimensional vectors and suddenly we have something to work with. Like we have an object.
Can you dive into that a little bit in terms of like as we made this transition out of the tabular data world, you know, kind of where you had a database at the, you know, center of every website and all that. And it was, you know, we look back, it was very quaint. And these days, as you're talking about that huge volume of unstructured data, how have we adjusted to meet that as we've moved into the modern era of machine learning?
We haven't yet. We are at just the beginning of the journey, I think, on that front. So let me maybe take you on a short detour on basically how our visual system, our human visual system works. Sounds good in a very simplified way. And maybe by analogy that would explain where we are today and what systems exist. So in a very, very schematized way, when you look at the world, you. Chris, all right, light hits your retina, activates a few neurons, a lot of neurons. That signal is sent back through a few channels and organs, like neural organs in your brain. But the main one, that right there in the back of your neck, just above the back of your neck, is your visual cortex. Six layers of neural processing that you can think about as a very, very sophisticated computer vision model. It really does look like a convolutional neural net in some sense. It was kind of the motivation or maybe the inspiration to create neural nets the way they are. It takes local neighborhoods and aggregates them and takes averages and activations. And every layer builds on the layer above. And at the output of that, you have an activation surface of a few million of several million neurons. And that processing is identical. No matter if you read a book or drive a car or look at your children, it does the same thing. It's pre processing, right? It's the hardware. Okay. When I think about where computer vision is today, we are mostly focused on that layer. How do we build a better visual cortex? How do we process images such that the semantic representation, that activation enables me to do all these different tasks, Right. What nobody is really doing yet is looking at how do we do the rest of the brain. So looking at stuff doesn't end there. You know, the output of the visual cortex actually flows most of the temporal lobes just kind of above your ear, both ears, where you do things like remember that when you see your children, you know them, they're your children, you know, you don't see it.
Yeah, it helps.
They're not just a person, and you know that because you've seen them before. And so a huge part of what it means to like live in the world is memory.
Yes.
It's inference, it's analogy, it's association, it's things that have to do with the storage and retrieval and analysis of those high dimensional vectors and all the billions of those that you've accumulated over your entire lifetime. Right. And so it's not about processing, it's not about classification, it's about how do I store everything that I've ever seen and make it accessible to me as a person. When I see something, I know what to do with it because I've seen it before. I might have seen it last time 20 years ago, but I still know what it is. I still know what it is. Right.
Let me ask a quick question. Because we tend to talk about deep learning in terms of compute all the time, in terms of the processing and stuff like that. And as you're reframing it there in terms of it's a memory, it's a memory problem, It's a memory thing to be thinking about. Are we looking at it the wrong way or am I mixing two things up inappropriately?
No, 100%. I think that I kind of broke the processing into two main steps. Right. There is the crunching of the raw signal to bring it to a semantic representation that your brain knows how to work with. Maybe surprising or maybe unsurprising to you, by the way, everything that you see and remember and know kind of is those novel representations. Your brain doesn't have access to your retina directly. Like, you never actually remember the actual image. The actual image is the vector representation of it. Right. All I'm saying is that once you've done the kind of hardware processing of that which is very like, you know, compute heavy.
Yeah, Right.
But it's stateless. Okay. Once you're done with that, you have the rest of the brain to care about. You have memory, you have things like analogy and retrieval and search and comparison and things that have to do a lot more with kind of how a database works or what you would expect from a database of data of that kind. The reason why I started Pinecone was because no database like that existed. Like, nobody knew what the hell to do with it.
So it sounds like before we dive into Pinecone, though, that we're still developing the tools and infrastructure that we need to be able to handle that, evolving that changing nature of data. And as we get better at doing that, as we start accounting for the fact that we have this memory paradigm that we're trying to get used to, we need tools, infrastructure that will address that. Am I on the right track?
Exactly.
This episode is brought to you by Snowplow Analytics. Snowplow is the behavioral data management platform for data teams. Maximize the value of your behavioral data using Snowplow Insights, a managed data platform that's built on leading open source tech leveraged by tens of thousands of users. Capture and process high quality behavioral data from all your platforms and your products and deliver that data to your cloud destination of choice. When marketing needs to make data informed decisions, when product needs next level understanding, and when analytics needs rich and accurate data. Snowplow is a solution for data teams who want to manage the collection, processing and warehousing of data across all their platforms and products. Get started and experience no plow data for yourself@Snowplow Analytics.com Again, Snowplow Analytics.com.
Okay, so, you know, I know that Pinecone. When I look at the very front page of your website, it talks about managed vector similarity search. And I'm assuming this is how you're approaching the issues that we were just discussing a few minutes ago. Can you start us off by telling me what is vector similarity search and where does it apply? What does it mean to my world?
Sure. Tying back to the end of the last segment, we painted a very grand picture. But when you need to work with infrastructure, you need an API, you need something very, very crisp. Right. One of the things that we started working on was, say, what's the most basic thing? Let's say I have a very large collection of those vectors, say, billion embeddings of all the pieces of content on Facebook or all of the web pages in the world, all the images that I've ever seen. What's the most basic thing you would expect to be able to do with that? Okay, and the most immediate thing is retrieval, Right. Basically answering the question, have I seen this before? Right? It's a very basic question, right? Sure. Now, unlike strings or some IDs, they're not identically matching ever, right?
Right.
Nothing they've ever seen is an identical photon to photon match. I mean, it's not. It's a different, you know, it's slightly different. So what does kind of the same mean? You know, so when you translate to these semantic vectors, you have the semantic similarity in the world. Okay. What we humans experience as this is the same thing, right? Just translates to proximity of those vectors. They are, on average, the values are close, they're not identical. But if you sum up all the differences, the differences are not large.
So as an example of that, we were talking about recognizing our children earlier. So if I'm looking at my daughter at any given point and I have the array of values that represent all of those activations that are occurring, and then I look at her another time and those are not the same, and yet I still am recognizing her to be my daughter. Is that a practical example?
That would be a yes, exactly. Okay, 100%. And if you look at the neural activation of the output of that network, whether it be a computer vision network that you trained for facial recognition, or whether it be your actual neural network in your brain, the output is going to be similar in the sense that most of the neurons are going to have roughly similar activations still, some of them are going to have Very different activations because maybe the background is different. You know, many of them are going to. Even those that match are not going to match exactly. But on average it's going to be very. It's going to be close. Ish. Right.
Okay.
And so the very first thing you have to be able to do is take a very, very large collection of vectors, billions of them maybe. Right. And take a new vector and say, okay, give me everything that just correlates with this.
Okay.
Okay. Has a high correlation with it or has a low, what's called Euclidean norm. So I sum up all the squared differences and take the square root of that.
Okay, Right. So you're normalizing it essentially.
Yeah. Or maybe just think about it as a ball in space. So think about a high dimensional vector. You can think about a two dimensional vector as two numbers, right?
Okay.
So two numbers I can put on an x, y axis, I can plot them on a piece of paper. Right? So a three dimensional vector would be like a point in a three dimensional space. A four dimensional vector is going to be in four dimensional space. Becomes a little, kind of hurts your brain to think about it. But the math is the same, you know, and you can take four to five to a thousand.
Right.
And that is exactly the same. So you can think about Euclidean distance. Thinking about a ball in two dimensions is a circle.
Yep.
A ball in three dimensions, a sphere. And a ball in a thousand dimensions is a ball in a thousand dimensions. It's all the points in distance less than something from the center. Okay. And you can ask yourself what are all the points that are in this sphere? Okay. Which is all the points whose distance to the image that I'm looking at right now is smaller than some threshold.
Okay.
Which if you remember, proximity of those vectors translates to similarity in the real world. And so looking at your daughter again, this would be converted to a neural signal. Okay. You will then go to a very large bank of everything you've seen before and say, give me everything that looks like this, that is similar to this, close to this. What you would retrieve are mostly your daughter's face, which is the answer in some sense to what am I looking at?
So there's a very different architecture in the sense of just to draw a comparison. If we look at this vector database concept that you're discussing, and for a moment we look back for a moment at the relational databases and you talked about having those strings as IDs and stuff, clearly we have a significantly different way of retrieving data across those. Rather than having an exact match with a specific record. You're looking at generalizing across those billions of different records in the vector database for that kind of commonality, even if none of them are exact matches. Correct. Right, correct. Okay, and how do you approach that? How do you architect such a thing?
Good. So retrieving or solving this problem efficiently is incredibly challenging. And it's also like, it's a very well known and hard problem because there are tens of open source solutions for it. Each one of them has many different algorithms with tens of internal parameters and so on. And they all excel at different regimes and dimensionalities and statistics of the data. And they trade off like, how often do you miss stuff and how fast it is and so on. It's a really gnarly problem. For me as a scientist. That's exciting because that means we have hard problems to solve, but for practitioners, that's often daunting. And so when you work with something like Pinecone, we can alleviate that. We can at the very least delegate that to the experts and just say, hey, just do the right thing for my data. I just need to build an application right now. Maybe down the line, I would want to choose exactly which algorithm does what and I would want to fine tune the parameters. But for now, just give me kind of the plain vanilla. Give me just something that works usually. Right. So, yeah, the algorithms themselves are, like I said, I'm happy to dive as deep as you want, like all the way down to the nuts and bolts. I don't know how much you want.
To go there because I don't think we've said it explicitly. Is it fair to say Pinecone is a vector database for machine learning?
It is fair. I think technically that's the right thing to say. I think it's also like a search engine. It's its own thing. I think if you call it a database, it's in some sense an analogy. It's also like a search engine.
Can you differentiate what those two labels saying, database or search engine? Can you talk about what the implications are for each of those and how it fits in? And I will forecast, you don't have to kind of explain the concepts, but I'll also ask you about some kind of use cases on where you might use those in a moment. So if you can kind of conceptually address it and then let's dive into something really practical about how you might do that.
Sure. So I think that as a whole, when you tell somebody when just the word database is loaded, usually with concepts like joins and Analytical workloads and like transactivity and consistency and we don't do any joins, but we do care about consistency and persistence and so on. So we have, you know, it requires some properties of a database, but it isn't really a database. It's definitely not an SQL engine in any way. Gotcha. A search engine usually is more focused on retrieval of relevant items quickly, small set of relevant items quickly, which is much more aligned with what we do right now. But search engines are also confusing because people really strongly associate them just with text.
Right?
So people assume, oh, it's a search engine, it's a text. You put in like text queries and.
You know, another loaded term really.
Right, exactly. We're just so branded to think about Google and Bing and whatnot. So I think both those terms in terms of infrastructure we overlap a lot and we have to provide the same primitives in terms of just terminologies. They're both bad. Equally bad and equally good.
By the way, if you're willing actually dive into that a little bit. I'm really curious. I'm fascinated by this because it's something I don't know much about. How do you store the data? We've talked about the storage a little bit and we've talked about retrieval. What does that look like? As you said that you can kind of dive a little bit. Dive for us a little bit and tell us. Because I think when people think databases and search engines, as you just pointed out, they have a preconceived idea in their mind. How do you implement those terms? When you're taking the phrase database and the phrase search engine and you're saying it's not the way you were thinking before, what's different about it? Tell us a little bit about what that looks like.
So first of all, because of the nature of the data, basically the only way to implement this efficiently is to have everything in memory. Okay. So first of all, we're an in memory database.
Okay.
The second thing is that retrieval. Okay, so this like similarity search or nearest neighbor search, it's also called this retrieval of close vectors or correlated vectors from a very large collection is a very compute heavy operation. Okay. You really have to oftentimes touch and do some basic computation on very large portions of your data. So this is a compute heavy process. Of course, the goal of the infrastructure is to make it as lightweight as possible, but it still is significantly more tasking. So let me kind of maybe explain very roughly how you'd even approach such a thing.
Okay.
I'm Going to try to convince you that you can think about a thousand dimensional space like a three dimensional space right now.
Okay, I'll buy into it. I'll try.
You know, I'm going to put warning signs where the math doesn't work. But for most concepts, the math kind of the intuition is actually. Okay. Okay. So the first thing you want to do is to be able to just carve out chunks of space and to say, oh, if I'm here, then my close neighbors are usually within the same part of the space. Right. So think about partitioning the universe into like galaxies and you know, like solar systems and so on. So you say, oh, you know, maybe it's good to start searching for my nearest star in my galaxy.
Right, sure.
It's a good guess. Right. So usually you'd have a partitioning of the whole set of points into these like clusters. Right. Such that in real time you have to figure out, oh, I'm not going to search everything, I'm just going to search through these subsets of clusters. These are the areas of space that are going to more likely contain my memories. Like the thing that. Like the closest neighbors, right, sure. Within those clusters you have a more compute heavy process that actually kind of combs through everything. Right. And figures out what's close. But it does that very efficiently. It doesn't actually compute everything. It kind of has very, very efficient rules to kind of discard things that are not really close. Right. So you kind of have to raise the flag when you see something that's suspicious, like, oh, this is like maybe highly correlated. But you have to rule out things that are not relevant very, very quickly. So you have this second comb of everything that rules out everything that's impossible, that's irrelevant and just leaves a small look, an even smaller candidate set. And then you have a final layer that just goes over that and really fine combs through and really does compute all the distances and say, oh, you know what, from those here are the actual like 10 or 100 most relevant points. Now if that process sounds like lossy to you that you might actually have missed something, you're absolutely right. It's not foolproof. And so that's one of those properties that people kind of are confused about or surprised about with the analogy to the database. What do you mean it's not always accurate?
Yeah, you're missing, you know, in that relational world which is addressing a different problem, you don't have that exactness that you have Exactly. With those IDs tied to something. It's A different thing you're trying to achieve here.
Right. And so you kind of have trade off between how quickly you need to retrieve the results versus how accurate you want them to be. Right. Because I can just find, comb through everything. Like I can just decide to just brute force that just. And I search my entire memory front to back. That will take an hour, but it would be 100% accurate. Or you can be very, very picky and say, I'm going to set all my thresholds really high. I'm not going to touch anything unless it's very likely a good match. Well, you might miss some stuff, but it's going to be very fast. And not only not getting to the point that there are like 5,000 different ways to do each one of those three stages. Yeah, I think that's maybe as deep as we want to go, but you can see how that is very, very different than like a key value lookup or a B tree. It's just a whole different thing.
That was a really good explanation. I truly have that now in my head as to what the difference is. I know that there's lots of different ways to apply that in the real world to get productive solutions. Could you talk a bit about different areas that you can take this technology that you have at Pinecone, the vector database technology and the retrieval, and where will we put that to get value out of it in the world and to help us solve our other problems.
So, interesting enough, we can talk about very concrete situations, very concrete solutions. Some of them built with Pinecone, some of them built by big companies building their own technologies. And frankly, we, as consumers of technology, we use these algorithms all the time. If you use Facebook, your feed is ranked by the embedding that Facebook has of you as a user. All of your tendencies and interests and everything are encoded as a high dimensional vector. And the topics and contents of a piece of content, whatever it be, like a piece of text or an image or whatnot, is encoding the same way. And the ranking is decided based on the similarity of those encodings. The same is true for pretty much every social network out there. It's the same way in LinkedIn and so on. If you search on Google, if you just search any long query that doesn't match directly word to word, you might be looking for an answer to something that the right page that contains the. So you typed a question, but oftentimes the answer doesn't contain the question verbatim. Right. It just contains the answer. And so text search doesn't make Any sense, you shouldn't be looking for the words in the query. So what should you be looking for? And what you're looking for is an encoding of the query with NLP models into a high dimensional vector. And you're searching through the web where each paragraph was also encoded into high dimensional vectors, such that it's still close if the paragraph might have contained the right information or the answer to that query. And same as retail recommendation for shopping, same as threat detection, anomaly detection, you name it. In some sense, all of it works this way nowadays.
I'm going to kind of throw something in kind of randomly. Could you think of it as a proxy for identifying intent? Possibly in some of these cases, by comparing high dimensional vectors to where what Facebook wants to know or what Google wants to know is what is my intent with my search, less about the exact words I'm using and more about what is Chris Benson trying to get to? What is that thing that he's trying to unlock? Is intent one of the possible things that it's proxying for there?
So the main question is basically what do your embeddings represent? You train those models. You know, we talked about vision a lot in this session. You know, that probably encodes like visual similarity. But when you do feed ranking, then yeah, I mean you would encode for intent and interest. When you do for maybe search, it would be more intent maybe and feed ranking is more like interest or maybe also intent. I'm not even sure. Yeah, so yeah, I mean, those are. You can encode a lot of semantically deep properties of the object that you're using, whether it be, you know, person's actions on your website or an image or a piece of text. I mean, it's the same in some sense.
Okay, let me ask you another question. With a lot of folks listening to us here being practitioners and, you know, in their day job, they're maybe creating convolutional neural networks. They might be involved in nlp. Like my co host Daniel is, you know, deeply all the time. Are there certain algorithmic approaches within deep learning that vector databases and retrieval lend themselves to more than others, or is it more it can be used across any of these different algorithms. Should people always be thinking about it or are there certain areas where it will be more productive than others?
I think they can be applied pretty widely, but there are patterns. So you said Daniel is an NLP practitioner. I saw you interviewed the folks from Hugging Face, for example. So a pattern that we see is people use models like Hugging Face, like Bert and Others to transform their text to high dimensional vectors and maybe just produce semantic search on top of the corpus of documents with an engine like Pinecone. Right. So they would say I would, instead of encoding, taking the tokens and putting them in elasticsearch, I would convert them to high dimensional vectors and put them in Pinecone and search through the vectors themselves. And then I'll be searching through the semantic meaning of the document rather than the words themselves. Right. That is very common. Now, usually if you do just that, exactly what I just said, you don't get the best results. You probably want to tweak your algorithm or retrain it or you might need to do a few extra steps. But even if you do just that, you already get something interesting which is very different than traditional text search.
Can you also maybe give us what your kind of your classical or whatever feels right to you, but kind of a classical workflow? So if somebody is out there and they're using TensorFlow or PyTorch or whatever, the tool that they want to use, and they're listening to this and they're starting to think, oh, I definitely need to incorporate this into my workflow. How do they do that? How do people start to get Pinecone and take advantage of that in doing whatever they're doing? What does it look like? In a very fingers on the keyboard.
Practical sense, it's incredibly simple. So we offer Pinecone as a fully managed service. And so all it takes is asking for an API key on the website, which is free, and you get it a minute later in your inbox. And after that you can literally go to our tutorial section and run notebooks and go play with all the APIs and all the capabilities that are open to you. After a few weeks, you'll probably decide whether that's the right tool for you to use. Right. Most projects end up being very cheap to be able to run. Sustained workload even.
Gotcha.
Usually less than 100 bucks a month is typical for most non enterprise users. And yeah, I mean, it's right there and it's available to you. You can use it as a microservice in your application or as a part of your developer pipeline. Yeah, all the APIs are open, they're all documented. They're pretty simple in my opinion. Very cool.
So I'm curious, I want to go back for a moment. You were talking about some of the social media applications with Facebook. Are there any other areas specific to call out that are really notable for using these technologies? Are there any Things that people might go, oh, I hadn't thought about the fact that this makes sense to use there any other use cases to call out.
So we definitely see text embeddings a lot, especially because the models for embedding text are quite easy to get a hold of and they're pretty good already. We do see that with images searching for images, searching for near duplicates of images for fraud, for social networking and so on. So people upload maybe slightly more of images you might already have in your network and you just want to flag that. Right. So think about like I've seen this before function, right, but it's not the same file, it's just a slightly distorted or slightly intentionally changed image. Right. We see that with fraud analytics and like kind of fraud and anomaly detection are very heavy use cases where you encode some normal behavior and then like in real time you'd retrieve, you know, out of 100 million events that I've seen. Does this kind of look like a good thing or a bad thing? What does this look like and should I be looking at this now? Should I flag this to my analysts or whatnot? I think those are the main patterns and recommendation, by the way, and I forgot to say recommendation and personalization are a big thing for shopping for social networks and so on. I think those are kind of the main for if I had to guess, but I'm probably missing something.
Sounds good. As we wind up here, I want to take us back for a moment to something you said early on and you talked about how we were early on in the stage as we're starting to move into this new way of approaching technology solutions. And you know, this is early days and as someone who is working in this field, you know, all day every day and building your company based on these technologies, where do you think it will go and what would you like to see and how will this set of technologies evolve in the years ahead in your view? When you're thinking, when you're laying at bed at night before you go to sleep and you're thinking that's the thing I'm aiming for down the road, what does that look like?
It's a fantastic question. I think that it's hard to pinpoint exactly. Again, I was trained as a scientist. We started off by talking about my meandering trip through my PhD. I think my professional life is sort of like a scaled out version of the same. You know, I personally try to push the boundary and try to figure out what's kind of what's the Next huge milestone we as a society can hit for Pinecone specifically, you know, for us as a community, I think that really starting to think about not only the model that I trained and how do I put it in a container and ship it to some place in my app, but rather like, okay, we now have this complete wealth of data that we can now use, and how do we integrate intelligence with compute and memory and storage? How do we make that behave a lot more like a brain and not like neural net? And I think that we are many years away from. From that. One of my favorite books on AI has this quote that says that saying that humanity is getting close to a general AI is like saying a monkey climbing a tree is getting close to the moon.
I hadn't heard that.
That's good. You know, I agree. It's true. It's true technically. So I don't know if we're as hopeless as that monkey climbing the tree in getting to the moon, that is. But we are very, very far away. It's far away when we look at application. When you really dig in and you try to solve even very basic problems, you understand how little we know. Like, we don't even know how to train all nets.
So I'm going to spin that in a way that I think that that's going to make for a lot of great episodes for us to talk about. We'll have to have you back on the show to discuss some of those steps along the way there.
I'm happy to do that.
Well, Ido, thank you so much for coming on Practical AI. It's been a really fascinating conversation. I have learned a lot personally and I appreciate you answering all these questions I have for you. So thanks, and I hope to have you on again sometime.
It's a lot of fun. Thank you, man.
Thank you for listening to Practical AI. We appreciate your time and your attention. If you enjoyed this episode, help us out by spreading the word. Think of a friend, think of a colleague, somebody who would benefit from listening to it and send them a link. We'd really appreciate it. Practical AI is hosted by Chris Benson and Daniel Whitenack. It's produced by Jared Santo with music by Breakmaster Cylinder. Thanks again to our sponsors, Fastly Linode and launchdarkly. That's our show. We hope you enjoyed it and we'll talk to you again next week.
Sa.
More from LARRUZ


Ep 881: Faster AI Agents, Fewer Human Coworkers: The Overly Productive Future of Managing Agents? (Replay)


Ep 879: New: OpenAI Presence. Has The AI Customer Service Takeover Finally Arrived? (Replay)


Ep 878: What’s Coming Next: 5 AI Trends, Problems and Opportunities around the Corner (Replay)




