WhoBuilt

Retrieval Augmented Generation in the Wild

Nov 15, 2023· 12 min· 3.6K views·Watch on YouTube

Speaker

Anton Troynikov, co-founder of Chroma, speaks at AI Engineer about building retrieval systems for real-world RAG applications.

RAG needs adaptive memory

Troynikov describes the basic RAG loop: embed documents, retrieve nearest neighbors for a query, and pass the results to an LLM. He argues that useful systems need more than a static search index: they should incorporate human feedback, let agents update their memory, and retain information from interactions with the world.

Retrieval must avoid irrelevant results

For AI applications, retrieval needs to return relevant information while excluding distractors, which Troynikov says can sharply reduce model performance. Choosing an embedding model, chunking documents, and judging relevance all depend on the dataset and task, and he says existing benchmarks do not fully reflect production use.

Evaluate models and experiment with chunking

Troynikov suggests building task-specific evaluation datasets from production data and gathering human relevance feedback. For chunking, he discusses respecting document structure and experimenting with token prediction perplexity or changes in embeddings to find semantic boundaries.

Measure relevance and build beyond text search

With a corpus of bird articles, a question about fish still returns five nearest neighbors, even if none are relevant. Possible remedies include human feedback, reranking, keyword search, metadata filters, and conditional relevance signals. Troynikov also outlines Chroma's plans for clustered and hosted deployments, multimodal retrieval, and model selection in the data layer.

Takeaways

  • Treat retrieval as part of application behavior: use feedback to adapt results to the task and dataset.
  • Evaluate embedding models against production examples instead of relying only on general benchmarks.
  • Choose chunking methods that preserve document structure and the information relevant to the task.
  • Check whether retrieved results are relevant before placing them in the model context.
  • Use reranking, metadata, or keyword signals to filter results when nearest neighbors may be misleading.

Mentioned in this talk

Search inside this talk

What was claimed 7

  • founded
    Co-founder
    “I'm Anton, the co-founder of Chroma.”
    YouTube
    Verified4 sources· Talk, Web· archived
  • feature
    Chroma: Augmented retrieval with keyword-based search and metadata-based filtering
    “augmented retrieval, which Chroma supports out of the box: keyword-based search and metadata-based filtering”
    YouTube
    Unverified1 source· Talk
  • feature
    Chroma: Horizontally scalable cluster version
    “we're building a horizontally scalable cluster version”
    YouTube
    Unverified1 source· Talk
  • feature
    Chroma: Hybrid deployments planned for enterprise clusters in January 2024
    “In January, we'll have our hybrid deployments available”
    YouTube
    Unverified1 source· Talk
  • built
    technical preview planned for December 2023
    “By December, we'll have our database-as-a-service technical preview ready”
    YouTube
    Unverified1 source· Talk
  • feature
    Chroma: Support for multimodal data
    “we're building support for multimodal data”
    YouTube
    Unverified1 source· Talk
  • feature
    Chroma: Model selection in the data layer
    “Finally, we're working on model selection.”
    YouTube
    Unverified1 source· Talk

Related talks