Zum Hauptinhalt springen

RAG-Beispiele

Definition

Diese Seite sammelt konkrete RAG-Beispiele: einfache Q&A, Dokument-QA und hybride Suche mit anpassbarem Code.

Each example follows the same RAG flow (index documents, embed query, retrieve, generate) but with different frameworks or options. Use them as starting points and adjust chunking, embeddings, and vector store to your data.

Anwendungsfälle

These examples show how to get from zero to a working RAG pipeline with common frameworks and options.

  • Implementing a minimal Q&A pipeline (z. B. LangChain, LlamaIndex)
  • Document QA with custom chunking and embeddings
  • Hybrid search (dense + keyword) for better recall

Example: minimal RAG with LangChain

See the RAG index for a Python snippet. More examples will be added for LlamaIndex, custom embeddings, and reranking.

Externe Dokumentation

Siehe auch