WhoBuilt

Grep or Embeddings? Agentic Search Over Company Documents

Oct 7, 2026· 23 min· 29K views·Watch on YouTube

Speaker

George He, head of engineering at LlamaIndex, explains how the company helps enterprises search and manage document context with agentic orchestration.

Choose search methods for the data

George compares local file search, such as grep, with pre-indexing and retrieval through embeddings. Local search can work well for smaller, structured code repositories because files are nearby and linked by imports and tests. Company collections often include far more files, mixed formats, and access controls, which makes them harder to search and keep current.

Match retrieval to corpus size

For roughly 100 to 1,000 files, an agent may be able to search locally without excessive context use. At thousands or millions of files, repeatedly reading everything becomes costly, so an index can point the agent toward a useful subset. George recommends giving the agent both file traversal tools and semantic search, allowing it to locate and then inspect relevant documents.

Combine retrieval and document parsing

George describes tools for finding likely files, narrowing a subcorpus, and reading the document content. He recommends hybrid keyword and semantic search, with fusion and reranking to improve results. For complex PDFs, charts, and schematics, pre-parsing into agent-readable text and retaining page screenshots can preserve structure and visual context.

Plan for production and freshness

Parsing quality affects whether later semantic search can understand tables, layout, and spatial relationships. Production systems also need to handle tenant permissions and keep document and permission metadata fresh. George breaks synchronization into ingestion, parsing into a standard format such as Markdown, and re-embedding for indexed retrieval.

Ground answers through file traversal

The demo uses 135 files from Alphabet financial reports, including HTML and PDFs with metadata and page screenshots. George shows hybrid search for cash flow statements, followed by grep and targeted reading of file offsets, without downloading all files locally. The agent combines information across documents to produce a cash flow summary that can be traced back to sources.

Takeaways

  • Use local search for small, structured collections; consider indexed retrieval as file counts and format complexity grow.
  • Give agents both semantic search and file traversal so they can narrow results and inspect the underlying documents.
  • Combine keyword and semantic retrieval, then rerank results when a better shortlist matters.
  • Pre-parse complex documents and preserve screenshots when tables, charts, or layout carry meaning.
  • Treat access permissions and data freshness as core parts of ingestion and indexing.

Mentioned in this talk

Search inside this talk

What was claimed 6

  • works at
    Head of Engineering
    “I’m the head of engineering here at LlamaIndex.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • feature
    LlamaIndex: Focuses on document parsing, orchestration, and knowledge management
    “We’re a Series A startup focused on document parsing, orchestration, and knowledge management.”
    YouTube
    Unverified1 source· Talk
  • feature
    Claude Code: Does not use pre-indexing, RAG, or vector search for code search
    “no pre-indexing, no RAG, and no vector search”
    YouTube
    Unverified1 source· Talk
  • feature
    hybrid search: Combines keyword and vector search through fusion and weighting
    “when you use fusion to combine and weight keyword and vector search, you get better results”
    YouTube
    Unverified1 source· Talk
  • feature
    LightParse: Handles structural content extraction
    “LightParse, which handles structural content extraction.”
    YouTube
    Unverified1 source· Talk
  • metric
    LlamaIndex: The demo uses 135 files derived from Alphabet's financial reports
    “These are 135 files derived from Alphabet's financial reports.”
    YouTube
    Unverified1 source· Talk

Related talks