# RAG Evaluation Framework Configuration # LLM Configuration llm: # Generator LLM (for testset generation) generator_model: "glm-4.7" generator_api_base: "https://open.bigmodel.cn/api/paas/v4/" generator_api_key: "5495b0bc87464c2a88ef371381902b70.pZQIJHK6TUDufE7V" # Evaluator LLM (for metrics calculation) evaluator_model: "glm-4.7" evaluator_api_base: "https://open.bigmodel.cn/api/paas/v4/" evaluator_api_key: "5495b0bc87464c2a88ef371381902b70.pZQIJHK6TUDufE7V" # Common settings temperature: 0.7 max_tokens: 2000 # Database Configuration database: host: "localhost" port: 3306 database: "rag_evaluation" user: "root" password: "123456" 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"