All AI videos

AI video

Grep or Embeddings? Agentic Search Over Company Documents — George He, LlamaIndex

LlamaIndex engineering lead George He compares grep-style file traversal with pre-indexed retrieval and demonstrates a hybrid agent over financial filings.

AI Engineer · 2026 featured video

Watch on YouTube

What this video shows

George He argues that direct file traversal works well for code because repositories are local, text-based, structured, and full of references. Large company corpora contain PDFs, slides, scans, images, uneven folders, and access rules, which makes repeated full traversal expensive and often impractical.

His proposed harness uses hybrid retrieval as a compass, then gives the agent list, metadata filter, grep, and read operations for closer inspection. A demo searches 135 Alphabet financial files and builds a cash-flow table from source documents. The talk helps with architecture selection, but the demo comes from LlamaIndex and does not compare the pipeline with independent retrieval baselines.

Read the official LlamaParse documentation for the structured parsing service used in the talk. Inspect the open-source LiteParse repository before deciding whether its document conversion fits your corpus.

What you will learn

  • Small, current, text-heavy collections can be cheaper and easier to search with ordinary file tools than with a synchronized vector index.
  • Hybrid retrieval combines lexical and semantic signals, while later file operations let an agent inspect the source rather than answer from a retrieved chunk alone.
  • Complex documents need parsing tests for tables, layout, scans, and page images because poor extraction can remove the evidence an agent needs.
  • Permission metadata and freshness must travel through ingestion and retrieval so an agent cannot search stale data or documents the caller may not access.

How to apply this safely

  1. Measure the corpus size, formats, update rate, access rules, and common queries before selecting a retrieval system.
  2. Build a small test set with exact-term queries, semantic queries, table questions, and permission boundaries, then compare file search, vector search, and hybrid retrieval.
  3. Return source identifiers and nearby content with each result so the agent can inspect and cite the underlying file.
  4. Test synchronization lag, deleted documents, permission changes, and parser failures before the agent serves company data.

Important limitations

  • The speaker leads engineering at LlamaIndex, and the talk demonstrates LlamaIndex products. It does not report an independent accuracy, latency, or cost comparison against other retrieval stacks.
  • The 135-file demo shows the workflow clearly but does not establish how the same design performs on millions of files, rapidly changing permissions, or every multimodal format.

Sources to check

  • LlamaParse documentation Official guidance for the parsing service demonstrated in the talk.
  • LiteParse The open-source document conversion project named by the speaker.

Continue learning on Learnetto

AI evals guide

Build retrieval and answer-quality test sets before launch.