WhoBuilt

The Future of Knowledge Assistants

Jul 13, 2024· 17 min· 142K views·Watch on YouTube

Speaker

Jerry Liu, co-founder and CEO of LlamaIndex, presents on the future of knowledge assistants at AI Engineer.

From basic RAG to knowledge assistants

Liu describes a knowledge assistant as an interface that can handle simple or complex questions and vague research tasks, returning answers, reports, or structured output. A basic RAG pipeline can be quick to build, but often lacks production-ready data processing, query planning, service integrations, and memory.

Improve data quality and retrieval

Liu says production LLM applications depend on processing raw documents through parsing, chunking, and indexing. He contrasts a well-structured parse of a Caltrain weekend schedule with PyPDF output that can scramble table contents and lead to incorrect answers. He also introduces LlamaParse and describes LlamaCloud as a way for enterprise developers to manage document processing decisions.

Build more capable single-agent flows

Liu describes layering tools, query planning, and conversation memory over data services to help an agent understand and answer more complex questions. Agents can use unstructured and structured sources as tools, and can compare information across documents while retaining user context. He notes that a single agent can struggle when given too many tools.

Move multi-agent systems into production

Liu says multiple agents can specialize, parallelize work, and use smaller tool sets that may reduce cost and latency. He introduces LlamaAgents, an alpha project that represents agents as separate services communicating through an API and message queue, with explicit or LLM-directed orchestration. A demo uses query rewriting followed by RAG search and retrieval.

Takeaways

  • Invest in document parsing and structure before tuning retrieval; poor tables can produce wrong answers.
  • Add query planning, tool use, and memory when questions require more than one retrieval step.
  • Keep an agent's tools focused when reliability matters.
  • Consider parallel specialist agents when tasks can be split and coordinated.
  • Treat agent deployment and communication as production architecture, not only notebook code.

Mentioned in this talk

Search inside this talk

What was claimed 7

Related talks