Transcript
and various AI-related security features. So, now we are talking about enterprise AI application architectures, but before we go into enterprise AI application architectures, I would like to cover two basic concepts, vectors and embeddings. So, if you remember elementary geometrics from your school days, you would recollect doing things like plotting a line on two dimensions, X and Y, connecting two dots. This really is the basic, most fundamental representation of a vector, a line drawn connecting two dots on two coordinates or two dimensions. Now, this line encodes information that is represented by the two points X and Y, and if you were to draw such a line on multiple dimensions, then this line could encode a lot of information that is represented by the space. So, recapping, vectors are nothing but lines drawn for machine learning purposes in a high-dimensional space that captures a lot of information that can be used for a lot of mathematical computations. So, in case of an LLM-based application, when input data comes in, which is represented by multiple words, these words are chunked, tokenized, vectorized, and converted into a numerical representation. Now, embedding models are models which have captured inter-scale information and can really help create these vectors with a lot of information being encoded in that numerical representation of user input. This is really what makes LLMs so proficient and semantically aware to be able to answer the question that the user is asking in a grammatically correct fashion or semantically correct fashion. So, in an enterprise, when an enterprise user asks a question, because the LLMs are unaware of enterprise-specific data, this question has to be augmented by enterprise-specific data to be sent to the LLM to answer the question. So, one of the architectures to solve this problem is called RAG architectures, which stands for Retrieval Augmented Generation, where data that is captured in enterprise data stores is extracted, vectorized, and stored into a VectorDB. VectorDBs are nothing but specialized databases which can efficiently store this form of information and support out-of-the-box operations like distance computation so that you can find the most nearest vector to the given vector so that you can find relevant pieces of information for your problem solving. So, in the case of a RAG application, ahead of time, data is sourced from various enterprise data stores, stored into VectorDB, so that the user's question can be used to retrieve the most relevant piece of information, and that can be then sent to the LLM to answer the user's question. Now, as you have moved the data from enterprise data stores into VectorDB, one of the problems which is kind of obvious in this architecture is that when the data is inserted into the DB, new information that is created in the enterprise data stores is not reflected into the VectorDB because the data was stored at a particular point in time. And the other problem is that multiple applications where this data is coming from had its access control, authentication, and authorization to give users the right level of information access, which is kind of overlooked to a certain extent in the VectorDBs because it is not carrying forward, in most cases, not carrying forward that level of authentication, authorization information into the database itself. The other architecture is agentic architectures, where instead of having the most relevant piece of information be pulled from the VectorDB, the agent can reach out to the applications and retrieve the information more pertinent to the user's question. They can reach out to various data stores, applications, and so on and so forth, and retrieve the data that is more relevant to the user's question, and that can be then sent to the LLM to answer the question. So you are bypassing the step of pre-retrieving the data, storing it into a VectorDB, extracting it from the VectorDB, worrying about how to keep the VectorDB up to date with new information, and so on and so forth. You're making the problem-solving more real-time. Agents then evolved into becoming more of an expert in complex problem-solving, where given a particular problem, agents are nothing but AI applications which are able to solve more complex problems by taking a bigger problem, breaking it down into sub-problems using many different problem-solving strategies, like chain of thoughts, tree of thoughts, and so on and so forth, and are able to leverage the LLMs to solve intermediate problems. And as it is gathering information across these multiple problems, combine the answers to retrieve across multiple sub-steps of problem-solving to then generate the final answer to the bigger user question. This is commonly referred to as the agentic workflows or AI workflow, wherein you take a bigger problem, break it down into sub-problems, use LLM to solve these sub-problems, combine the answers from all of these to give the answer back to the user. So these are two high-level concepts, but these architectures can be combined. You can use agents which also use VectorDB to become more efficient at how to solve the problem or get access to information that doesn't really change so much, like a product documentation could just be very static and doesn't change, but for other things like tickets and documentation and so on and so forth, which are ever-evolving, enterprise AI applications can use a combination of any of these architectures, RAG or agentic, or any one of them. Different architectures have different use cases.