transcribe

Pinecone 2.0 — Edo Liberty, Pinecone

AI Engineer · 19m · transcribed 4d ago
More from AI Engineer Business
𝕏 Share ▶ YouTube 📥 PDF 🤖 .md

Section Insights

# 0:00

Understanding Theory of Mind

What is theory of mind and why is it important?

Theory of mind is a psychological concept that refers to our ability to understand the mental states of others, which is crucial for social interactions. The speaker uses a humorous anecdote about Yahoo Answers to illustrate how people often misjudge the capabilities of AI, similar to how they misjudge the capabilities of a Q&A forum.

  • Theory of mind is essential for socialization and understanding others.
  • People often have misconceptions about the capabilities of AI.
  • Understanding the limitations of AI is crucial for effective use.
# 3:54

The Need for a Knowledge Layer

Why do AI agents need a knowledge layer?

AI agents often operate like new hires who lack understanding of company goals and processes. A knowledge layer is necessary to provide persistent and specialized information that helps agents perform their tasks effectively.

  • AI agents currently lack contextual understanding of their environment.
  • A knowledge layer can provide persistent and specialized information.
  • Improving AI's contextual awareness can enhance its effectiveness.
# 7:49

Components of the Knowledge Layer

What are the key components of a knowledge layer?

The knowledge layer consists of connectors, context, tasks, and queries. Connectors bring data into the system, while context provides a comprehensive view of relevant information. Tasks define actions that can be taken with the data, and queries specify how information is retrieved.

  • Connectors are essential for data integration in enterprises.
  • Contextual information is crucial for understanding specific topics.
  • Tasks and queries define how data can be manipulated and accessed.
# 11:43

Functions of the Knowledge Layer

What functions does the knowledge layer perform?

The knowledge layer performs functions such as importing new information, curating existing data, and facilitating search operations. It also utilizes a NoQL system to specify how information is retrieved, allowing for more flexible and efficient data access.

  • Importing and curating data are critical functions of the knowledge layer.
  • Search functions simplify access to information for agents.
  • NoQL enhances flexibility in retrieving data from the knowledge layer.
# 15:38

The Role of NoQL in Data Retrieval

How does NoQL improve data retrieval for agents?

NoQL allows agents to specify their information needs in a flexible manner, reducing the amount of prompting required. This leads to more efficient interactions with the knowledge layer, enabling agents to complete tasks with less overhead.

  • NoQL simplifies the process of retrieving information.
  • It reduces the need for extensive prompting, making interactions more efficient.
  • Flexible data retrieval enhances the overall functionality of AI agents.

Transcript

0:13 All right, welcome everyone. I want to tell you a little bit about the new the new knowledge layer and I'll start with telling you a little bit about theory of mind. how many of you know what theory of mind is? All right, so a few folks. It's a term in psychology about our capacity to understand and have a mental state or a model of a mental state for other people. What do they know? What do they believe in? How do they act? That's what allows us to socialize. That's what allows us to lie to each other and so on. but it's a crucial developmental stage for humans. in a necessary function. I'll I'll sort of explain it in the best possible way with a funny story just to break the ice. about 15 16 years ago I worked at a company called Yahoo that had a product called Yahoo Answers which was sort of like a Q&A forum. we used then AI which is the stone age of AI you know it's like NLP and other statistical models to answer questions. But the funny thing is people would come to Yahoo and ask questions like am I fat?

1:28 Which is funny because obviously you know Q&A forum would wouldn't have any clue whether you're you're too fat or not. but this is a funny way to say yeah people have a very bad theory of mind on sort of what the products that they use what information they have and what they don't have. And I want to argue that in some sense we are making that mistake with AI today in a more subtle and less sort of like silly way but in a just as fundamental of a mismatch. And so I will categorize roughly three kinds of knowledge. I think there there are many more but you know in broad stro in broad broad strokes this is not a bad way to categorize. First of is general knowledge.

2:15 Think about that is what's available in the public domain. Things that models are trained on and we expect an LLM to just know out the gate. things about just you know improving your Rust code asking you like you know explaining stuff about the legal terms or sort of exploring use cases for for products. we know how to do that. Models are really good at that. When we use our agents they have that information. there is specific knowledge the companies of course the models wouldn't have any clue about whether we've implemented something specific in our codebase what a contract of a specific customer has of course this is information that's private to the company but we know how to deal with that and rag and search and of course pine cone veto dbs and so on solved these problems a long time ago there's still a lot to go but we by and large know how to do it and then I would say there is tribal knowledge. Okay, tribal knowledge is the sort of general knowledge inside the company. This is the kind of information that an employ a seasoned employee has that a new hireer does not. Okay, it's roughly how we do things, what our processes are, who's in charge of what, what are the guiding principles, what are the you know sort of how we get stuff done in this company. Okay. that is not a that's not general knowledge because it's it's specific to your company but it's also not a specific piece of knowledge because you can't just get it by searching. You can't just get it by plucking it off one place and say yes this document says that this is our culture. It's the sum total of a lot of things. and so if our theory of mind of most of our agents in big companies today should be something like a new hire. They're brilliant. They have tools. They have we have very high expectations of them. But they are by and large clueless. Okay. They have no idea about your company's goals, culture, priorities, processes. they have to read a bunch of documents to be able to get any semblance of understanding of where they are in the world. and really they start most tasks from scratch. Okay. they really start kind of wake up and every time you start your your session, they're like a new hireer on their first day on the job.

4:47 So, I would argue that what they need is not necessarily to be smarter, to have better tools, but to have something new, which I would call a knowledge layer going forward. and I have to explain to you what I think a knowledge layer has to actually do. But just I'll define it generally before explain to you what we do. so at the very least it needs to be persistent. We talked about this is the company knowledge, processes, capabilities and goals and so on. It has to be persistent. it sure it feels like putting this thing together is going to be a monumental effort. So you want to do it once or at least very rarely. and of course all your agents in company need to have access to this thing. The second thing is that you would argue that this knowledge layer needs to be highly specialized. If your agent is in charge of HR practices or optimizing your your kernels in your codebase or resolving customer issues that they would care about different things they would want to you know address they would want to have different information available to them. and I would argue irrelevant of of specifically how it's created, I would argue that it's a good practice to have the domain experts in the company own those and have being able to interact with them and make sure that they actually are aligned with what the company wants to do.

6:14 And finally, which is the hardest thing is they need to stay up to date and they need to stay concurrent constantly because companies change and you need to make information deprecated. When it becomes deprecated, if the company replaces its CEO, the very next day, everybody in the company knows who the CEO is. Okay? Even though 9,000 documents going from, you know, a day before yesterday to the last 10 years say it's somebody else.

6:45 This has become common tribal knowledge immediately. And everything else, even you know, every rag search will tell you otherwise. This is now the overriding fact. Okay. I will argue before we move on that I'm not suggesting that this knowledge layer should replace everything else we're doing. Our agents are already very capable and should keep being very capable. they have access to LLMs of course tooling local files search of course like rag vector search text search and so on. And I would argue that the knowledge layer needs to be a separate entity that all these agents have access to as as I explained why this is sort of a fundamentally different kind of data source.

7:35 So I want to tell you more about Nexus. Nexus is a product that we're of course it's a knowledge layer but I need I want to explain to you what it does. of course so the the four parts are roughly connectors what I would call context tasks and queries I'll explain each one of them now so connectors of course do the obvious things there's nothing much to talk about them they bring data into the platform respect access rights and and control and so on very dull as a topic of discussion but incredibly important in enterprises, incredibly important to do right. and everybody who's built that knows how painstaking it is to get this thing to work well.

8:34 the interesting sort of the first properly interesting part is the context. So the context think about that as the the sum of assets that the that Nexus or this knowledge layer saves about a specific topic. Think about this as a context for HR, for operations, for engineering and so on. Okay, of course it has the sources, the connections to the data and so on. But then it has the manifest. Okay, the manifest is the first truly novel idea and and a important entity. Okay, the way that we today give context to our agents is with skills and plugins and commands and sort of markdown files we write ourselves.

9:27 In a knowledge layer, you don't do that anymore. Okay? You tell the you tell the knowledge layer, you tell Nexus what you care about in a manifest. You say what kind of tasks you're you want to complete, what entities you want to track, what kind of information you care about, and it's it's the knowledge layer's work to keep track of those files. Okay? And and organize its own data. and then it has the knowledge files themselves. So think about the manifest is the meta knowledge file or set of files. and then there's the knowledge the knowledge itself. think about this as five types of contents. One of them the the first kind is a semantic map. Okay, this is a file that organizes the catalog of where everything else is, the key schemas, the glosseries, all the information that you need to be able to operate this context.

10:27 Then there are of course a bunch of markdown files that contain information, decisions, memories, all sorts of unstructured information. If you've who here has heard about LLM wiki okay so LLM wiki is this idea that Andre Karpathy suggested to have agents basically manage some stash of markdown files to sort of keep their own notes of stuff. This is a very similar idea. Okay, sort of on steroids but similar concept but that's not enough. Context contains also a bunch of SQL tables for tabular data for aggregation for facts that they need to memorize. a vector database to be able to semantically search and text search and filter a bunch of information and all the information that it itself decides is necessary to keep and and remember and graph entities and graphics to remember again entities relationships causal chains and so on. Okay. And all of that is managed and created for you.

11:35 You don't touch any of this. You don't have to know how any of this is created. It's all maintained through the manifest. So these are this is the context. Now what are the tasks? What are the actions? These are the nouns. What are what are the verbs? What can we do with those objects? first of all is of course import which is bring new information to the system, new files, new events, new concepts. curate is probably the most and most elaborate one of the two most elaborate functions. it's job is to take to take the the say call it a file it doesn't have to be a file but let's say it's a new PDF or a new meeting transcription or a new presentation for the board and say now I need to update my view of the world okay so it takes that it takes the manifest which tells okay now what what things do I care about what concepts do I need to track what needs to be what do I need to memorize here and then it takes the semantic map that I told you contains all the like organizes where information is and understands okay fine I need to go update these tables these relationships my graph this these text indexes and so on and when it's done it has essentially said okay fine I have assimulated the new information it's already it's it's sort of persisted in your context and we can move on Okay, search is sort of a internal function very important. It basically abstracts with simple functions all the access to that information so that the agent that I'll tell you in a second doesn't have to know how to sort of access the internal parts of the context.

13:27 Now comes the second I think most most interesting part of of the system which is noql. Noql is our way to to specify how we want information out of the context. It's not enough to just ask questions. If you're an agent, it's really important for you to give us the budget in tokens or in dollars. how much time you want us to invest in this sort of like do you want us to just a quick off-the- cuff kind of immediate answer or do you want us to go full tilt and scour everything we know to make sure we give you the most accurate answer and so on the structure and and so on. It's a you know it's an agentic tool. This is not like a chat interface. Okay.

14:15 and of course what you get back is like something that's agent friendly. This is you know grounded text and and kind of structured in the right way format. This again is not designed to be like a chat interface. This is really what your agents expect. Okay. so this is this is a this is a trying to figure out how much time I have.

14:46 Okay, I need to go a little bit faster. So this is a sophisticated crowd. I want to sort of pop the hood and show you a little bit about how things work. So if anything this is the interface I want to there are many many cool ideas that make this work but I want to tell you a little bit about just one of them. Okay. What you're seeing is the interface for Nexus. Okay. You will see at the top a question that the the agent issued and you see you see on the left the different steps that it went through.

15:24 Okay. What you see on the bottom right is probably the most interesting. You see generated code on the bottom right. What Nexus does which is very different than other systems. It's what we call a runtime coding agent. Okay. Unlike other coding systems in in that you're used to where the task is take a large code base and then help me edit it right but when the edits are done what I have is a piece of software and that is deployed that is the artifact okay what is running does not contain the model anymore it's just the code okay this is not what's happening here the in query time you should think about the engine essentially building something like a Jupyter notebook, something like like a Python ripple, right? And they literally write code and execute it and write code and execute and if they get the answer, they know what to do with it. And if it's, you know, if it's not what they expected, they rewrite that piece of the code and what you get in the end is a is a piece of code that completes the task that gets the information that you want to get. Okay, that is savable. that's rerunnable.

16:40 Okay. But it's also incredibly flexible because now the the answer is got not by by a query to a database. It's it's written by code which is of course incredibly flexible. Okay, that code is by the way, interestingly enough, if you replace if you write software this way, the the amount the amount of prompting that you need is significantly reduced. We went down from having something like 150,000 tokens to give our agents all the tooling they need to less than a thousand tokens to specify all the interfaces they need to get information out of Nexus. Okay. And so the the so what it looks like when you run it is like this. Okay. So on the left of course you'll see Nexus with NoQL answering the question and then on the right is sort the same task given to an agent with all the tooling to complete the task. Okay, but remember this on the right it's severely handicapped. It's like the employee on the first day on the job. They have to read a bunch. They have to figure out where the data is. They have to figure out what the task is. They have to write a bunch of code. it's just it's just severely handicapped and there's I don't know if you okay stopped but needless to say this is by far slower.

18:06 It's a lot more expensive in terms of token consumption. but interestingly enough it's also a hell of a lot less accurate because again they don't have the right context, the right objectives and so on in your company. I'll just say that we work obviously with a bunch of early access customers already. you see some results here, but I'll just sort of fly through them and say that across different domains, across different enterprises, across different kinds of task, you we universally see the same thing that if you shift to this paradigm, you get significant cost savings. 77 90 you know percent token consump token reduction is pretty common.

18:57 it gets a hell of a lot faster anywhere from 20 30% to sometimes 77% faster. Okay. But and the most important thing is it actually becomes a lot more accurate as well in the same time. So this is really it's a slam dunk. I'll just wrap up by saying that the that Nexus is coming out of early access and into public preview literally tomorrow. So go try it out.

Summary

The presentation discusses the concept of a "knowledge layer" in AI systems, emphasizing the importance of understanding different types of knowledge—general, specific, and tribal. It argues that current AI agents often lack the necessary context and understanding of a company's culture and processes, akin to new hires, and proposes that a structured knowledge layer can enhance their effectiveness by providing persistent, specialized, and up-to-date information.

- Theory of mind is crucial for social interaction and understanding others' mental states.
- Current AI models often lack context about company-specific knowledge, making them less effective.
- Three types of knowledge are identified: general knowledge (public domain), specific knowledge (company-specific), and tribal knowledge (internal processes and culture).
- A proposed knowledge layer should be persistent, specialized, and continuously updated to reflect changes in the organization.
- Nexus, a product designed as a knowledge layer, includes features like connectors, context management, tasks, and a NoQL query language.
- The context in Nexus organizes information and maintains a manifest that tracks relevant data for agents.
- Nexus allows agents to generate and execute code dynamically, improving efficiency and reducing token consumption significantly.
- Early access results show that adopting this knowledge layer can lead to substantial cost savings, faster processing, and increased accuracy in AI responses.

Questions Answered

What is theory of mind and why is it important?

Theory of mind is a psychological concept that refers to our ability to understand the mental states of others, which is crucial for social interactions. The speaker uses a humorous anecdote about Yahoo Answers to illustrate how people often misjudge the capabilities of AI, similar to how they misjudge the capabilities of a Q&A forum.

Why do AI agents need a knowledge layer?

AI agents often operate like new hires who lack understanding of company goals and processes. A knowledge layer is necessary to provide persistent and specialized information that helps agents perform their tasks effectively.

What are the key components of a knowledge layer?

The knowledge layer consists of connectors, context, tasks, and queries. Connectors bring data into the system, while context provides a comprehensive view of relevant information. Tasks define actions that can be taken with the data, and queries specify how information is retrieved.

What functions does the knowledge layer perform?

The knowledge layer performs functions such as importing new information, curating existing data, and facilitating search operations. It also utilizes a NoQL system to specify how information is retrieved, allowing for more flexible and efficient data access.

How does NoQL improve data retrieval for agents?

NoQL allows agents to specify their information needs in a flexible manner, reducing the amount of prompting required. This leads to more efficient interactions with the knowledge layer, enabling agents to complete tasks with less overhead.

© transcribe · For agents Built with care and craft by Gokul Rajaram