Initial commit

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
hughhuang(黄健铭)andClaude Sonnet 4.5 committed 2026-01-16 16:01:39 +08:00
commit 4ecf7b351d
143 files changed
+24156

No files matched your search

@@ -0,0 +1,19 @@
# RAG System Guide
## What is RAG?
RAG (Retrieval-Augmented Generation) combines information retrieval with text generation.
It retrieves relevant documents and uses them to generate accurate answers.
## Key Components
1. Retriever: Finds relevant documents from a knowledge base
2. Generator: Creates answers based on retrieved documents
3. Knowledge Base: Collection of documents to search
## Evaluation Metrics
- Context Recall: How well relevant documents are retrieved
- Context Precision: How precise the retrieved documents are
- Faithfulness: Whether answers are faithful to the context
- Answer Relevancy: How relevant answers are to questions
- Correctness: How correct answers are compared to ground truth
@@ -0,0 +1,18 @@
# Sample Knowledge Base Document
This is a sample document for RAG evaluation.
## Section 1: Introduction
RAG (Retrieval-Augmented Generation) systems combine retrieval and generation
to provide accurate and contextual answers.
## Section 2: Evaluation
Evaluating RAG systems requires measuring both retrieval quality and generation quality.
Key metrics include:
- Context Recall: How well the system retrieves relevant context
- Context Precision: How precise the retrieved context is
- Faithfulness: Whether the generated answer is faithful to the context
- Answer Relevancy: How relevant the answer is to the question