Building retrieval harness for enterprise agents
Summary
Llama Index's head of engineering, George, presented a framework for building retrieval harnesses for enterprise agents, addressing challenges in managing complex data for large language models (LLMs). The discussion highlighted the "GP vs. Embeddings" debate for context management, noting that while LLM context windows have grown, textual embeddings and vector indexes remain crucial for approximate matches and hybrid search. Key tools for document-based agents include hybrid vector retrieval, file hierarchy navigation (list, GREP, read), and multimodal page screenshots for non-textual content. The presentation also detailed enterprise hurdles like data freshness, multi-tenancy, and permissioning, explaining Llama Index's three-stage indexing pipeline: data ingestion, scalable parsing (using Llama Parse and Light Parse), and efficient vector storage (e.g., Turboroper) with custom metadata for permissioning.
Key takeaway
For AI Engineers building enterprise-grade agentic RAG systems, prioritize a flexible retrieval harness that integrates both LLM context and diverse data access tools. You should implement hybrid search, file navigation (GREP, read), and multimodal page screenshots to enhance accuracy and reduce hallucination. Focus on scalable indexing pipelines with robust parsing and tenant-isolated vector storage, leveraging custom metadata for fine-grained permissioning to meet enterprise security and freshness requirements.
Key insights
Effective enterprise agents require a retrieval harness combining LLM capabilities with robust indexing and diverse data access tools.
Principles
- Balance GP and embeddings for context.
- Decompose search for agent control.
- Indexing must scale for enterprise data.
Method
Llama Index's indexing pipeline involves ingesting new/changed data, scalable parsing (e.g., Llama Parse, Light Parse) for complex documents, and exporting to a disk-backed, tenant-isolated vector store like Turboroper for hybrid search.
In practice
- Implement hybrid search for semantic and keyword accuracy.
- Use GREP and read for exact text matching.
- Generate page screenshots for multimodal content.
Topics
- Enterprise AI Agents
- Retrieval-Augmented Generation
- Hybrid Search
- Document Parsing
- Vector Databases
- Data Indexing
Best for: AI Architect, AI Engineer, MLOps Engineer, Director of AI/ML
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by LlamaIndex.