{ "chat_interface_tests": [ { "test_id": "CHAT_001", "name": "Diabetes Risk Prediction", "query": "I'm building a diabetes risk prediction model. Which columns should I use?", "expected_datasets": ["EJI_2024", "AHRF-2025", "SVI_2022"], "expected_column_patterns": ["diabetes", "hba1c", "glucose", "risk", "health", "demographic"], "should_cite_sources": true, "min_recommendations": 3, "type": "chat" }, { "test_id": "CHAT_002", "name": "Hospital Readmission Prediction", "query": "What data would help predict 30-day hospital readmission rates?", "expected_datasets": ["EJI_2024", "AHRF-2025"], "expected_column_patterns": ["readmission", "hospital", "admission", "health", "demographic", "comorbidity"], "should_cite_sources": true, "min_recommendations": 3, "type": "chat" }, { "test_id": "CHAT_003", "name": "Food Insecurity Impact", "query": "Which columns indicate food insecurity and its health impacts?", "expected_datasets": ["EJI_2024", "SVI_2022"], "expected_column_patterns": ["food", "insecurity", "poverty", "income", "nutrition", "health"], "should_cite_sources": true, "min_recommendations": 2, "type": "chat" }, { "test_id": "CHAT_004", "name": "Social Vulnerability Index", "query": "Tell me about the Social Vulnerability Index columns", "expected_datasets": ["SVI_2022"], "expected_column_patterns": ["svi", "vulnerability", "socioeconomic", "household", "racial", "ethnic"], "should_cite_sources": true, "min_recommendations": 2, "type": "chat" }, { "test_id": "CHAT_005", "name": "Environmental Health Indices", "query": "What columns measure environmental health and pollution exposure?", "expected_datasets": ["EJI_2024"], "expected_column_patterns": ["environmental", "pollution", "exposure", "hazard", "facility", "waste"], "should_cite_sources": true, "min_recommendations": 2, "type": "chat" }, { "test_id": "CHAT_006", "name": "Healthcare Workforce", "query": "Which columns track healthcare provider availability and workforce metrics?", "expected_datasets": ["AHRF-2025"], "expected_column_patterns": ["provider", "physician", "nurse", "workforce", "availability", "density"], "should_cite_sources": true, "min_recommendations": 2, "type": "chat" }, { "test_id": "CHAT_007", "name": "Demographic Information", "query": "What demographic columns are available across all datasets?", "expected_datasets": ["EJI_2024", "AHRF-2025", "SVI_2022"], "expected_column_patterns": ["age", "gender", "race", "ethnicity", "population", "income", "education"], "should_cite_sources": true, "min_recommendations": 3, "type": "chat" }, { "test_id": "CHAT_008", "name": "Mental Health Indicators", "query": "What data do you have about mental health and mental health services?", "expected_datasets": ["EJI_2024", "AHRF-2025"], "expected_column_patterns": ["mental", "behavioral", "depression", "anxiety", "substance", "addiction"], "should_cite_sources": true, "min_recommendations": 1, "type": "chat" }, { "test_id": "CHAT_009", "name": "Follow-up Question - Deep Dive", "query": "Tell me more about the specific columns in the SVI_2022 dataset", "requires_prior": "CHAT_004", "expected_datasets": ["SVI_2022"], "expected_column_patterns": ["svi", "theme", "rank", "percentile"], "should_cite_sources": true, "min_recommendations": 1, "type": "chat" }, { "test_id": "CHAT_010", "name": "Clarification Question", "query": "Which dataset has the most recent data?", "expected_datasets": ["AHRF-2025", "EJI_2024"], "expected_column_patterns": ["2024", "2025", "recent", "latest"], "should_cite_sources": true, "min_recommendations": 1, "type": "chat" }, { "test_id": "CHAT_011", "name": "Chronic Disease Burden", "query": "Which columns would help identify communities with high chronic disease burden?", "expected_datasets": ["EJI_2024", "AHRF-2025"], "expected_column_patterns": ["chronic", "disease", "mortality", "morbidity", "prevalence"], "should_cite_sources": true, "min_recommendations": 2, "type": "chat" }, { "test_id": "CHAT_012", "name": "Access to Care", "query": "What columns measure access to healthcare services?", "expected_datasets": ["AHRF-2025"], "expected_column_patterns": ["access", "availability", "insurance", "coverage", "uninsured"], "should_cite_sources": true, "min_recommendations": 2, "type": "chat" }, { "test_id": "CHAT_013", "name": "Economic Factors", "query": "Which columns relate to economic indicators and poverty?", "expected_datasets": ["SVI_2022", "EJI_2024", "AHRF-2025"], "expected_column_patterns": ["poverty", "income", "employment", "economic", "wealth"], "should_cite_sources": true, "min_recommendations": 2, "type": "chat" }, { "test_id": "CHAT_014", "name": "Housing and Living Conditions", "query": "Do you have data about housing, crowding, or living conditions?", "expected_datasets": ["SVI_2022", "EJI_2024"], "expected_column_patterns": ["housing", "crowding", "living", "household", "structure"], "should_cite_sources": true, "min_recommendations": 1, "type": "chat" }, { "test_id": "CHAT_015", "name": "Greetings (No Retrieval Expected)", "query": "Hi there!", "expected_datasets": [], "expected_column_patterns": [], "should_cite_sources": false, "min_recommendations": 0, "type": "chat" } ], "area_insights_tests": [ { "test_id": "AREA_001", "name": "NYC Area Insights", "query": "What data is available for ZIP code 10001?", "zip_code": "10001", "location_name": "New York, NY", "expected_datasets": ["EJI_2024", "AHRF-2025", "SVI_2022"], "should_show_geographic_context": true, "type": "area_insights" }, { "test_id": "AREA_002", "name": "Atlanta Area Insights", "query": "Tell me about health data for Atlanta, GA", "location_name": "Atlanta, GA", "expected_datasets": ["EJI_2024", "AHRF-2025", "SVI_2022"], "should_show_geographic_context": true, "type": "area_insights" }, { "test_id": "AREA_003", "name": "San Francisco Area Insights", "query": "What environmental data is available for San Francisco?", "location_name": "San Francisco, CA", "expected_datasets": ["EJI_2024"], "should_show_geographic_context": true, "type": "area_insights" }, { "test_id": "AREA_004", "name": "Multiple ZIP Lookup", "query": "Compare data for 10001 and 30301", "zip_codes": ["10001", "30301"], "expected_datasets": ["EJI_2024", "AHRF-2025", "SVI_2022"], "should_show_geographic_context": true, "type": "area_insights" }, { "test_id": "AREA_005", "name": "Invalid ZIP Fallback", "query": "What about ZIP code 99999?", "zip_code": "99999", "location_name": "Invalid ZIP", "should_fallback_to_general": true, "type": "area_insights" } ], "validation_rules": { "citation_format": "Each column recommendation must follow: '**ColumnName** (Dataset: DatasetName)' or include '(Source: DatasetName)'", "no_hallucination": "All recommended columns must exist in at least one loaded dataset", "dataset_accuracy": "Recommended datasets must be in the loaded list: EJI_2024, AHRF-2025, SVI_2022, CHR", "relevance": "Recommendations should match the semantic intent of the query", "completeness": "Response should mention multiple datasets when relevant columns exist across them" } }