Ga naar hoofdinhoud

High Performance Generative AI Applications with Ram Sriharsha, CTO at Pinecone

Richie and Ram explore common use-cases for vector databases, RAG in chatbots, static vs dynamic data, choosing language models, knowledge graphs, implementing vector databases, the future of LLMs and much more.
· 42 min lezen
Ram Sriharsha

Gast

Ram Sriharsha

Ram Sriharsha is the CTO at Pinecone. Before this role, he was the VP of Engineering at Pinecone and previously served as Vice President of Engineering at Splunk. He also worked as a Product Manager at Databricks. With a long history in the software development industry, Ram has held positions as an architect, lead product developer, and senior software engineer at various companies. Ram is also a long time contributor to Apache Spark.

Richie Cotton

Host

Richie Cotton

Richie helps individuals and organizations get better at using data and AI. He's been a data scientist since before it was called data science, and has written two books and created many DataCamp courses on the subject. He is a host of the DataFramed podcast, and runs DataCamp's webinar program.

Chat with AI Richie about every episode of DataFramed - all data champs welcome!

Key Quotes

Even from simply putting language models with vector DBs together in a very simple workflow, you can already get substantially far with AI. We've seen customers do that a lot. It's really important that you start getting into this generative space and start really leveraging it and build your ability to iterate and the ability to think about your data differently. Think about labeling. Think about actually measuring quality and so on. All of this is really only developed by doing. So the faster you can get to doing that, the better.

You can take GPT-3, GPT-3.5, you could take all the data that it was trained on, just put that data into a vector database, and use GPT-3.5 along with that vector database. And ultimately, you have better groundedness and better retrieval capability than GPT-4, which means that a weaker model with a powerful vector database, even just retrieving on data that the model was already trained on, can still do at least as good, if not better, than the state-of-the-art models.

Key Takeaways

  1. Select a vector database that can handle both static and dynamic data efficiently, supports your scalability needs, and integrates seamlessly with your chosen LLM.

  2. Achieve cost efficiency by using less powerful LLMs in combination with well-structured vector databases, leveraging the strengths of both to maintain high performance at a lower cost.

  3. Invest time in collecting and preprocessing your data accurately, including parsing documents and handling metadata, to ensure high-quality embeddings and retrieval results.

Transcript

Richie Cotton: Hi Ram. Thank you for joining me on the show. Hey, thanks a lot for having me. Yeah, great to have you. So, uh, just to begin with, uh, can you talk me through what are the most common use cases for vector databases? 

Ram Sriharsha: So there is a few big use cases. Uh, one, uh, people might, uh, might not be familiar with is RAG, uh, Retrieval Augmented Generation.

So lots of generic, practically every generic application needs access to knowledge. This access to knowledge comes through interacting with vector databases as part of retrieval in a flow that's called RAG, Retrieval Augmented Generation. That's one large set of use cases. Another one is semantic search, and anytime you're searching and you want to retrieve content based on articles or documents or whatever, what have you, based on semantic relevance between query and document, you use vector databases.

Increasingly, we also see it used for labeling and classification use cases, where, you know, you have a, you know, something that you want to label, and you want to look at neighboring points in this vector space, and use the labels, dominant label of that neighboring set of documents or neighboring set of data.

what have you, to be able to label this thing. So these are the three big set of use cases, but there's broadly, uh, in some sense, uh, vectors of the lingua franca of machine learning, and we are discovering new use cases every day. 

Richie Cotton: Okay, that's cool. So we got Retri

Onderwerpen

Gerelateerd

podcast

[AI and the Modern Data Stack] Adding AI to the Data Warehouse with Sridhar Ramaswamy, CEO at Snowflake