← All AI Engineer talks

AI Engineer World's Fair 2025

Building AI Agents that actually automate Knowledge Work

About this talk

LlamaIndex co-founder and CEO Jerry Liu explains how AI agents can automate document-centric knowledge work by moving beyond basic RAG toward document toolboxes that integrate enterprise data sources, permissions, indexing, search, and document manipulation. He discusses combining language and vision models with conventional parsing and agentic validation for complex documents, introduces an Excel agent that normalizes spreadsheets and supports question answering, and outlines human oversight considerations for more autonomous workflows.

Chapters

  1. 0:15Introduction: automating knowledge work beyond RAG
  2. 2:32Document agent tools, MCP, connectors, and indexing
  3. 5:56Complex-document parsing and agentic validation
  4. 8:15Excel agents and spreadsheet normalization
  5. 13:15Oversight for end-to-end automation
  6. 17:34LlamaIndex mission and closing

Talk transcript

  1. 0:00

    [upbeat music] Okay.

  2. 0:15

    Hey, everyone. Uh, I'm Jerry, co-founder, CEO of LlamaIndex. It's great to be here. Um, and today my topic, uh, the talk ti-title is Building AI Agents that Actually Automate Knowledge Work.

  3. 0:26

    So, basically, a big promise of AI agents these days is making knowledge workers more efficient. Um, I'm, I'm sure you've heard the, like, high-level business speak of this, um, and I copy and pasted a bunch of B2B SaaS vendors on the, on the right in terms of screenshots.

  4. 0:41

    You know, increase operational efficiency, better decision-making through more data. But what does this actually mean, right? Does knowledge work automation actually just mean building RAG chatbots? And if not, what is the stack and what are the use cases that AI agents can actually do, um, in terms of automating knowledge work?

  5. 0:59

    So, for us, a lot of our use cases and a lot of our core focus areas is basically automating knowledge work over unstructured data. Um, 90% of enterprise data lives within the form of documents, whether it is PDFs, PowerPoints, um, Word, and, uh, you know, as you'll soon see, Excel.

  6. 1:17

    But humans, uh, have historically needed to basically read and write these types of docs, right? You have, you know, investment banker or someone, you know, kind of on the customer support side reviewing a lot of just unstructured data and using that documentation to basically make decisions and take actions.

  7. 1:35

    For the first time, AI agents can actually reason and act over massive amounts of unstructured context tokens and, you know, do analysis, do research, syn-synthesize these insights, and actually take actions end to end.

  8. 1:50

    And so for us, when we think about the use cases and the types of agents for automating knowledge work, they really fall into two main categories. There's what we call assistive agents, um, so those that are kind of more like a standard chat interface.

  9. 2:03

    They help humans get more information faster. And then there's automation-type agents, agents that automate routine tasks, uh, can run in the background, maybe require a little bit less human-in-the-loop, and can take actions, um, that automate the routine operational stuff.

  10. 2:20

    When we think about the stack that's required to actually build either the assistive or automation-type agents, there's two main components. There's really, really nice tools, um, and then there's a really nice agent architecture.

  11. 2:32

    Uh, with MCP A2A these days, a lot of people are thinking about, "How do I build really nice tools that allow agents to interface with the external world to basically surface relevant context and let the agent take, uh, external actions?"

  12. 2:45

    And a lot of the agent architecture, you know, there's very general reasoning loops as well, uh, as well as more constrained loops. It's basically, how do I encode the business logic, um, through an agentic workflow to help achieve the task?

  13. 2:59

    So, for the purposes of this talk, we'll talk about three main things. Um, a lot of stuff to cover, so I'll probably, uh, pick up my clock speed a little bit.

  14. 3:06

    But basically, there's building a document toolbox, um, which is how do I build really nice tools that allow, uh, you know, AI agents to interact with massive amounts of unstructured documents?

  15. 3:15

    Um, two is agent design patterns. Um, so thinking about just at a high level the two categories of agents from assistance to automation. And three is bringing it together in terms of document agent use cases.

  16. 3:27

    So first step is on building a document toolbox.

  17. 3:31

    Basically, if you think about agents interacting with tools, um, and as LLMs get better, you're gonna have these very general front-end interfaces like Claude or ChatGPT. Um, agents need access to the right tools to basically interface with the external world.

  18. 3:46

    And for the purposes of, you know, massive amounts of unstructured enterprise data, um, they basically need, uh, the right toolbox to interact with this data. It's basically a generalization beyond, uh, naive RAG, right?

  19. 3:57

    RAG is just, uh, retrieval. I know this is a RAG workshop, um, but NAG-- RAG is just like retrieval and then one-shot synthesis. Um, a lot of what agents can do over your documents includes retrieval, but also includes other operations like file-based search, uh, manipulation, and more.

  20. 4:14

    And one of the points I'm trying to make is that to basically create these tool interfaces in the first place, you need a really nice pre-processing layer. Um, so you need, you know, actual data connectors to your data sources, um, that basically sync data from your data source into a format that your agents can access.

  21. 4:30

    Um, you know, could be SharePoint, Google Drive, S3, Confluence. It needs to sync permissions too, and the right metadata. You need the right document parsing and extraction piece. More on this in just a bit.

  22. 4:41

    But you basically need actual, actually good understanding over your documents, over tables, charts, and more. And of course, you know, if you have a large collection of docs, you need it to index it in some way.

  23. 4:52

    Um, it could be vector indexing into, you know, vector search. It could also be, uh, indexing into a SQL table. Uh, it could be GraphDBs. Uh, it could be anything.

  24. 5:01

    So basically, uh, to ensure the data is high quality, you need this layer to actually process and stru-structure your documents and expose the right tool interfaces. In terms of the right tool interfaces, this is what I want to kind of, uh, define a term.

  25. 5:14

    It's basically called like a Document MCP server. Um, again, it's like a generalization of this idea of RAG, right? If RAG is just one-shot vector retrieval, you kind of need like a set of tools, um, to basically equip an AI agent with, uh, to basically, uh, understand and manipulate different types of documents.

  26. 5:33

    It could be, you know, doing semantic search to fuzzy find the relevant source of data. It could be file lookup to basically look up the right file metadata. Um, it could be manipulation to actually do operations on top of the files, and it could be structured querying, right?

  27. 5:47

    Querying a, a more structured database to get aggregate insights over the types of data, um, that, that you've extracted out.

  28. 5:56

    One, you know, top consideration, uh, when actually building this type of toolbox is, uh, complex documents. Uh, for those of you who follow our socials, we talk a lot about this type of issue where a lot of human knowledge is in the form of like really complicated PDFs, uh, and other formats too.

  29. 6:12

    Embedded tables, charts, images, irregular layouts, headers, footers. This is typically stuff that's designed for human consumption and not machine consumption. And so, you know, if the documents are not processed correctly, no matter how good your LLM is, um, it will fail.

  30. 6:26

    So we were probably one of the first people to actually realize that LLMs and LVMs could be used for document understanding. Um, if, uh, in contrast to more traditional techniques where you use kind of like hand-tuned and task-specific ML models to achieve, uh, kind of like document parsing over a specific class of documents, LLMs actually have a

  31. 6:46

    much general layer of accuracy, um, that you can use to your advantage in just like understanding and inhaling any type of document with compli- uh, any type of complexity.

  32. 6:56

    Um, ob-obviously, the baseline these days is you can just screenshot a PDF, feed it into ChatGPT or Claude. Um, it doesn't actually give you amazing accuracy, but it's a good start.

  33. 7:06

    And so one of the kind of secret sauce like, uh, magic tricks we found was figuring out how to interleave LLMs and LVMs with more traditional parsing techniques and adding kind of test time tokens in terms of agentic validation and reasoning to really get a higher level of accuracy.

  34. 7:23

    Um, and so, you know, we have a cloud service that does document parsing and is a core step of this document toolbox. Uh, we basically benchmarked, uh, our modes where we adapt, uh, you know, Sonnet 3.5, 4.0, uh, Gemini 2.5 Pro, 4.1 from OpenAI, and it basically outperforms all existing parsing benchmarks, um, and, and tools out there

  35. 7:43

    in terms of open source to proprietary. Um, yeah.

  36. 7:48

    So some of you might know us as a RAG framework. That's basically how we started. Um, you know, for those of you who don't know, we have this, uh, managed platform that is basically this gen AI native document toolbox.

  37. 8:00

    Um, contains a lot of operations that you need to do on top of your docs. It could be document parsing, document extraction, uh, uses some of those, you know, kind of capabilities I just mentioned, and allows you to parse, extract, index data for all the set of tools I just mentioned.

  38. 8:15

    One of the special releases that I actually wanna highlight today, um, and we just announced this in a blog post a few hours ago, is Excel capabilities to help complement this document toolbox.

  39. 8:25

    A lot of knowledge work happens in Microsoft Excel and also Google Sheets and, you know, Numbers, and basically it's, uh, spreadsheets, right? But it's been unsolved by LLMs. Um, if you look at the document to the right, uh, neither RAG nor text to CSV techniques will actually work over this because it's not really a structured two D

  40. 8:44

    table. There's a bunch of gaps in the rows and gaps in the columns.

  41. 8:49

    So we basically built an Excel agent, um, that's capable of taking unnormalized Excel spreadsheets and transforming them, um, into a normalized two D format, and also allows you to do agentic QA, um, over, uh, both the unnormalized and normalized versions of the Excel spreadsheet.

  42. 9:08

    Um, it's a pretty cool capability. I'll describe, uh, how it kinda works in just a bit. Um, but it's gonna complement our toolbox, right, in terms of, uh, more traditional document parsing, extraction, indexing, and it's available in, uh, early preview.

  43. 9:23

    So if you just, uh, take a look at the video, it's also on our blog post. We basically uploaded that example synthetic dataset, transformed it into a two D table, and you can also ask questions over it to basically get insights.

  44. 9:35

    And it's really doing the heavy lifting of deeply understanding the semantic structure of the Excel spreadsheet, um, and then using that and plugging that in as specialized tools to an AI agent.

  45. 9:47

    Um, the best baseline is not really RAG or text to CSV. Um, those both suck. Um, it's really just an LLM being able to write code. Um, so, uh, LLM with a code interpreter tool is a reasonable baseline, gets you to seventy, seventy-five percent accuracy.

  46. 10:03

    Um, over like a private dataset of synthetic Excel sheets, uh, we basically were able to get this up to ninety-five percent. Um, it actually surpasses human baselines of ninety percent of a human trying to go and do the data transformation by hand.

  47. 10:17

    Um, a brief note on how it works. Uh, it's a little bit technical, um, but, you know, more details are in the blog post. Um, first, we do some sort of structure understanding of the Excel spreadsheet.

  48. 10:28

    So we do a little bit of RL, reinforcement learning. Um, you know, uh, we actually kind of adapt dynamically to the specific format of the document, um, and learn a semantic map of the sheet.

  49. 10:41

    By learning a semantic map, uh, we can then translate this into, um, kind of a set of specialized tools that you provide to an agent. And so from an abstract perspective, you can kind of think about it as an agent could just write code from scratch.

  50. 10:55

    Um, as LLMs get better, that will certainly become, um, an eas- like a, a kind of higher performing baseline. But in the meantime, we're helping it out by really providing, uh, a set of specialized tools over this semantic map, so it can reason over an Excel spreadsheet.

  51. 11:10

    Great. Um, the next piece here is-- So we talked about a document toolbox. Uh, we talked about a lot of operations basically make this, uh, document toolbox really good and comprehensive.

  52. 11:20

    So now that you plugged it into an agent, what are the different agent architectures and what are the use cases that are implied by them? Um, as many of you probably know from building agents yourselves, agent orchestration ranges from more constrained architectures to unconstrained architectures.

  53. 11:36

    Um, constrained is basically you kind of more explicitly define the control flow. Unconstrained is like a React loop, function calling, code acts, uh, whatever. You basically give it a set of tools and let it run.

  54. 11:44

    Um, deep research is kind of the same thing.

  55. 11:47

    Um, for us, we basically noticed there's two main categories of UXs. Um, there's more assistant-based UXs that can basically surface information and, um, help a human surface information or produce some unit of knowledge work through usually a chat-based interface.

  56. 12:03

    It's usually chat-oriented, the input's natural language. Um, the architecture is a little bit more unconstrained. You know, it's basically a React loop over some set of tools. Um, and it's inherently both unconstrained, but also with a higher degree of human-in-the-loop.

  57. 12:18

    So the goal is, or the expectation is that the human is supposed to kind of guide and coax the agent, uh, along the steps of the process to basically achieve the task at hand.

  58. 12:30

    There's a-- I mean, there's-- I'm sure many of you have built these types of use cases, and so this is just a very small subset. Um, but it's basically just, you know, your, uh, generalization of a, of a RAG chatbot.

  59. 12:41

    There's a second category of use cases that I think is interesting, and I think a lot of folks are actually starting to build more into this space, which is, um, this automation interface.

  60. 12:51

    So being able to actually, instead of, uh, providing some assistant or copilot to help a human get more information, um, processing routine tasks in a multi-step end-to-end manner. And usually, the architecture is a little bit different.

  61. 13:05

    Um, it takes in some batch of inputs. Uh, it can run in the background, or it could be triggered ad hoc by the human. Um, the architecture is a little bit more constrained, which kinda makes sense, right?

  62. 13:15

    If you want this thing to run more end-to-end, um, you need it to not just go off the rails. Um, and there's usually a little bit less human-in-the-loop at every step of the process, and usually some sort of like batch review in the end.

  63. 13:27

    And the output is like structured results, integration with APIs, uh, decision-making. After approval, it'll just go route to the downstream systems.

  64. 13:36

    Some of the use cases here include, you know, financial data normalization, datasheet extraction, invoice reconciliation, contract view, and more.

  65. 13:47

    Um, I'll skip this video, but you know, there's some fun example of some community-based open source repos we built in this area, like the invoice reconciler by Laurie Voss.

  66. 14:01

    A kind of general idea that we've em-em-emer-- that has emerged, and we've noticed as a pattern is, you know, oftentimes the automation agents can serve as a back end because it runs in the background, you know, can do the data ETL transformation.

  67. 14:15

    There's still human-in-the-loop, but it's kind of the doing the thing where it needs to process and structure a lot of data, um, and do decisions in the background. And then assistant agents are kind of more front-end facing, right?

  68. 14:27

    And so automation agents can structure, process your data, and provide the right tool interfaces, um, for assistant agents. Not every tool depends on agentic reasoning, but for a lot of these use cases, like for a very generalized data pipeline, um, where you're processing a lot of unstructured context, you might have automation agents go in and process your

  69. 14:47

    data, provide the right tools for some sort of more, uh, research user-facing interface.

  70. 14:56

    So we talked about building a document toolbox. We talked about, you know, the, the, the different categories of agentic architectures. And putting it together, um, here are some real-world use cases of document agents, and these are basically examples of agents that actually help automate different types of knowledge work.

  71. 15:13

    So one of our favorite examples is a combination of both automation and assistant UXs for financial due diligence. Um, Carlyle is one of our, uh, favorite customers and, and partners.

  72. 15:24

    Um, you know, they basically used, uh, some of the core capabilities that we have to build an end-to-end leverage bio agent. Um, you know, uh, it requires an automation interface to inhale massive amounts of unstructured public and private financial data, um, Excel sheets, PDFs, PowerPoints, go through some bespoke extraction algorithms with human-in-the-loop review.

  73. 15:47

    And then once that data is actually structured in the right format, providing a copilot interface, uh, for the analyst teams to actually both get insights and generate reports over that data.

  74. 15:59

    If you look at any enterprise search use case, that typically falls within the assistant UX. Um, Semux is one of our favorite, uh, customers in this space, where, you know, just being able to define a lot of different collections to different sources of data and providing more task-specific, specialized agentic RAG chatbots over your data, right?

  75. 16:18

    Um, you know, it's basically a RAG, but you add like an agentic reasoning layer on top so that you can basically break down user queries, do research, and answer the question at hand.

  76. 16:30

    And on the pure automation UX side, uh, we notice a lot of kind of use cases popping up around automa-automation and efficiency. And so one example is actually technical datasheet ingestion.

  77. 16:42

    Um, you know, we're working with a global electronics company. They have a lot of data sheets, uh, that need to be automatically processed and reviewed, and historically, it's taken a lot of human effort to actually do this.

  78. 16:54

    Um, so by creating the right end-to-end automation agent, you can basically encode the business-specific logic for parsing these types of documents, extracting out the right pieces of information, matching it against specific rules, and outputting the structured data into SQL.

  79. 17:11

    There's human-in-the-loop review, um, but if we're actually able to do this end-to-end, it transforms weeks of just like, you know, technical writer work, um, into an automated extraction interface.

  80. 17:24

    So that's basically it. Um, you know, for those of you who are less familiar, LlamaIndex is, uh, the most accurate, customizable platform for automating your document workflows with agentic AI.

  81. 17:34

    Um, our mission statement's evolved a little bit since the past few years. We're, uh, we're a very broad horizontal, uh, framework, oftentimes focused on RAG. Um, but if you're interested in some of the capabilities, uh, come talk to us, and then please come check us out at booth G11.

  82. 17:48

    Thank you. [audience applauding] [upbeat music]