Home icon

From RAG to fabric: Lessons learned from building real-world RAGs at GenAIIC – Part 1

Machine Learning Blog



This blog post discusses techniques to optimize a retrieval-augmented generation (RAG) system for text-based knowledge bases. It covers evaluating RAG performance, troubleshooting issues, and practical tips to improve the retriever component.

Specifically, the article covers:

  • Overview of RAG use cases
  • Evaluating a RAG solution
  • Troubleshooting RAG issues
  • A practical guide to improving the retriever:
    • Hybrid search (combining vector and keyword search)
    • Adding metadata to text chunks
    • Small-to-large chunk retrieval
    • Section-based chunking
    • Rewriting the user query
    • Metadata filtering
    • Training custom embeddings
  • Improving reliability of generated responses:
    • Prompt engineering guardrails
    • Asking the LM to output quotes
    • Generating answers with inline quotations
    • Verifying quotes
  • Conclusion and preview of Part 2 covering RAG with structured data and multimodal inputs


Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Nov 15
2024
From RAG to fabric: Lessons learned from building real-world RAGs at GenAIIC – Part 2
Feb 12
2025
From concept to reality: Navigating the Journey of RAG from proof of concept to production
Oct 21
2024
Best practices for building robust generative AI applications with Amazon Bedrock Agents – Part 2
Oct 24
2024
Super charge your LLMs with RAG at scale using AWS Glue for Apache Spark

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.