48 lines
994 B
YAML
48 lines
994 B
YAML
# RAG Evaluation Framework Configuration
|
|||
|
|
|
||
|
|
llm:
|
||
|
|
generator_model: "claude-3-sonnet-20240229"
|
||
|
|
evaluator_model: "gpt-4"
|
||
|
|
temperature: 0.7
|
||
|
|
max_tokens: 2000
|
||
|
|
|
||
|
|
database:
|
||
|
|
host: "localhost"
|
||
|
|
port: 3306
|
||
|
|
database: "rag_evaluation"
|
||
|
|
user: "root"
|
||
|
|
password: ""
|
||
|
|
charset: "utf8mb4"
|
||
|
|
pool_size: 10
|
||
|
|
max_overflow: 20
|
||
|
|
|
||
|
|
testset:
|
||
|
|
default_size: 15
|
||
|
|
question_distribution:
|
||
|
|
simple: 0.4
|
||
|
|
reasoning: 0.4
|
||
|
|
multi_context: 0.2
|
||
|
|
sampling_strategy:
|
||
|
|
small_file_threshold_mb: 1.0
|
||
|
|
medium_file_threshold_mb: 10.0
|
||
|
|
small_file_sampling_rate: 1.0
|
||
|
|
medium_file_sampling_rate: 0.4
|
||
|
|
large_file_sampling_rate: 0.15
|
||
|
|
|
||
|
|
evaluation:
|
||
|
|
parallel_workers: 5
|
||
|
|
timeout_seconds: 300
|
||
|
|
retry_attempts: 3
|
||
|
|
cache_enabled: true
|
||
|
|
|
||
|
|
metrics:
|
||
|
|
context_recall_threshold: 0.7
|
||
|
|
context_precision_threshold: 0.7
|
||
|
|
faithfulness_threshold: 0.8
|
||
|
|
answer_relevancy_threshold: 0.7
|
||
|
|
correctness_threshold: 0.7
|
||
|
|
|
||
|
|
storage:
|
||
|
|
testset_dir: "./data/testsets"
|
||
|
|
report_dir: "./data/reports"
|
||
|
|
cache_dir: "./data/cache"
|