Initial commit
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
commit
4ecf7b351d
143 files changed
+24156
No files matched your search
@@ -0,0 +1,78 @@
|
||||
"""
|
||||
Evaluation module for RAG systems
|
||||
"""
|
||||
|
||||
from .rag_adapter import (
|
||||
RAGRetriever,
|
||||
RAGGenerator,
|
||||
HTTPRAGRetriever,
|
||||
HTTPRAGGenerator,
|
||||
MockRAGRetriever,
|
||||
MockRAGGenerator,
|
||||
RAGEvaluationAdapter,
|
||||
RetryConfig,
|
||||
retry_with_exponential_backoff
|
||||
)
|
||||
|
||||
from .metrics import (
|
||||
Metric,
|
||||
ContextRecall,
|
||||
ContextPrecision,
|
||||
MRR,
|
||||
NDCG,
|
||||
Faithfulness,
|
||||
AnswerRelevancy,
|
||||
Correctness,
|
||||
MetricsCalculator
|
||||
)
|
||||
|
||||
from .executor import EvaluationExecutor
|
||||
|
||||
from .parallel_executor import (
|
||||
ParallelExecutor,
|
||||
ParallelConfig,
|
||||
BatchEvaluator
|
||||
)
|
||||
|
||||
from .cache import (
|
||||
CacheKey,
|
||||
EvaluationCache,
|
||||
CachedEvaluationExecutor
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# RAG Adapters
|
||||
"RAGRetriever",
|
||||
"RAGGenerator",
|
||||
"HTTPRAGRetriever",
|
||||
"HTTPRAGGenerator",
|
||||
"MockRAGRetriever",
|
||||
"MockRAGGenerator",
|
||||
"RAGEvaluationAdapter",
|
||||
"RetryConfig",
|
||||
"retry_with_exponential_backoff",
|
||||
|
||||
# Metrics
|
||||
"Metric",
|
||||
"ContextRecall",
|
||||
"ContextPrecision",
|
||||
"MRR",
|
||||
"NDCG",
|
||||
"Faithfulness",
|
||||
"AnswerRelevancy",
|
||||
"Correctness",
|
||||
"MetricsCalculator",
|
||||
|
||||
# Executor
|
||||
"EvaluationExecutor",
|
||||
|
||||
# Parallel Execution
|
||||
"ParallelExecutor",
|
||||
"ParallelConfig",
|
||||
"BatchEvaluator",
|
||||
|
||||
# Cache
|
||||
"CacheKey",
|
||||
"EvaluationCache",
|
||||
"CachedEvaluationExecutor",
|
||||
]
|
||||
Reference in new issue
Block a user