# RAG Evaluation Framework Configuration # LLM Configuration llm: # Generator LLM (for testset generation) generator_model: "claude-3-sonnet-20240229" generator_api_base: "https://api.anthropic.com" generator_api_key: "${ANTHROPIC_API_KEY}" # Evaluator LLM (for metrics calculation) evaluator_model: "gpt-4" evaluator_api_base: "https://api.openai.com/v1" evaluator_api_key: "${OPENAI_API_KEY}" # Common settings temperature: 0.7 max_tokens: 2000 # Database Configuration database: host: "localhost" port: 3306 database: "rag_evaluation" user: "root" password: "${DB_PASSWORD}" charset: "utf8mb4" # Testset Generation Configuration 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 Configuration evaluation: parallel_workers: 5 timeout_seconds: 300 retry_attempts: 3 cache_enabled: true # Metrics Thresholds 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 Configuration storage: testset_dir: "./data/testsets" report_dir: "./data/reports" cache_dir: "./data/cache"