aankitdas's picture
feat: add RAGAS eval
af2f8e1
{"query": "What is the response rate of Drug X?", "answer": "According to the provided context (Chunk 1), Drug X demonstrated a 65% response rate compared to 35% in the placebo group.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.0, "hallucination_detected": true, "source_attribution_score": 0.0, "latency_ms": 324.74422454833984, "tokens_used": 21, "cost_cents": 0.004, "timestamp": "2026-01-02T11:00:34.998293", "eval_id": "4e10192a"}
{"query": "What are the side effects of Drug X?", "answer": "The side effects of Drug X are:\n\n- Headache (12% of patients)\n- Mild gastrointestinal upset (8% of patients)\n- Dizziness (5% of patients)\n- Fatigue (4% of patients)\n\nAdditionally, serious adverse events occurred in 2% of patients, including liver enzyme elevation.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.0, "hallucination_detected": true, "source_attribution_score": 0.0, "latency_ms": 198.8542079925537, "tokens_used": 42, "cost_cents": 0.004, "timestamp": "2026-01-02T11:00:35.198696", "eval_id": "05359951"}
{"query": "How does Drug X interact with warfarin?", "answer": "There is information about the interaction between Drug X and warfarin in the context provided. According to the information in Chunk 1, the interaction between Drug X and warfarin is:\n\n- Potential increased bleeding risk\n- Monitor INR closely\n- Baseline INR and weekly monitoring recommended", "source_docs": ["drug_interactions", "medical_research_1", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.0, "hallucination_detected": true, "source_attribution_score": 0.0, "latency_ms": 274.7206687927246, "tokens_used": 46, "cost_cents": 0.004, "timestamp": "2026-01-02T11:00:35.474923", "eval_id": "09eb8892"}
{"query": "What is the recommended dosage of Drug X?", "answer": "The recommended dose of Drug X is 500mg twice daily with meals.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.0, "hallucination_detected": true, "source_attribution_score": 0.0, "latency_ms": 233.20865631103516, "tokens_used": 12, "cost_cents": 0.004, "timestamp": "2026-01-02T11:00:35.708131", "eval_id": "297130d7"}
{"query": "What is the mechanism of action for Drug X?", "answer": "Drug X works by inhibiting protein kinase Y, which is overexpressed in condition Y cells. This inhibition leads to cell cycle arrest and apoptosis of affected cells.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.0, "hallucination_detected": true, "source_attribution_score": 0.0, "latency_ms": 150.78186988830566, "tokens_used": 27, "cost_cents": 0.004, "timestamp": "2026-01-02T11:00:35.860418", "eval_id": "f55b494b"}
{"query": "What is the response rate of Drug X?", "answer": "65% response rate compared to 35% in the placebo group.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.0, "hallucination_detected": true, "source_attribution_score": 0.0, "latency_ms": 435.7447624206543, "tokens_used": 10, "cost_cents": 0.004, "timestamp": "2026-01-02T11:02:27.660827", "eval_id": "92c25556"}
{"query": "What are the side effects of Drug X?", "answer": "The most common adverse events reported in the clinical trial for Drug X were:\n\n1. Headache (12% of patients)\n2. Mild gastrointestinal upset (8% of patients)\n3. Dizziness (5% of patients)\n4. Fatigue (4% of patients)\n\nAdditionally, in the case study, the patient experienced:\n\n1. Mild headache (resolved with acetaminophen)\n2. Occasional nausea (resolved with food intake)", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.0, "hallucination_detected": true, "source_attribution_score": 0.0, "latency_ms": 236.0692024230957, "tokens_used": 57, "cost_cents": 0.004, "timestamp": "2026-01-02T11:02:27.898918", "eval_id": "1fab9b0a"}
{"query": "How does Drug X interact with warfarin?", "answer": "According to the provided context (Chunk 1 - Relevance: 66.9%), Drug X has a potential interaction with warfarin: \"2. Warfarin: - Potential increased bleeding risk - Monitor INR closely - Baseline INR and weekly monitoring recommended\"", "source_docs": ["drug_interactions", "medical_research_1", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.0, "hallucination_detected": true, "source_attribution_score": 0.0, "latency_ms": 198.96793365478516, "tokens_used": 36, "cost_cents": 0.004, "timestamp": "2026-01-02T11:02:28.098393", "eval_id": "83a684fc"}
{"query": "What is the recommended dosage of Drug X?", "answer": "The recommended dose of Drug X is 500mg twice daily with meals.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.0, "hallucination_detected": true, "source_attribution_score": 0.0, "latency_ms": 149.9345302581787, "tokens_used": 12, "cost_cents": 0.004, "timestamp": "2026-01-02T11:02:28.248327", "eval_id": "a0771f33"}
{"query": "What is the mechanism of action for Drug X?", "answer": "The mechanism of action for Drug X is inhibiting protein kinase Y, which is overexpressed in condition Y cells. This inhibition leads to cell cycle arrest and apoptosis of affected cells.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.0, "hallucination_detected": true, "source_attribution_score": 0.0, "latency_ms": 179.38470840454102, "tokens_used": 31, "cost_cents": 0.004, "timestamp": "2026-01-02T11:02:28.440212", "eval_id": "35939350"}
{"query": "What is the response rate of Drug X?", "answer": "The response rate of Drug X is 65%, compared to 35% in the placebo group (p<0.001).", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.5333333333333333, "hallucination_detected": true, "source_attribution_score": 0.3125, "latency_ms": 336.91954612731934, "tokens_used": 16, "cost_cents": 0.004, "timestamp": "2026-01-02T11:03:21.623166", "eval_id": "3688751b"}
{"query": "What are the side effects of Drug X?", "answer": "The most common side effects of Drug X are:\n\n- Headache (12% of patients)\n- Mild gastrointestinal upset (8% of patients)\n- Dizziness (5% of patients)\n- Fatigue (4% of patients)\n\nAdditionally, serious adverse events occurred in 2% of patients, including liver enzyme elevation.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.18181818181818182, "hallucination_detected": true, "source_attribution_score": 0.06818181818181818, "latency_ms": 331.4476013183594, "tokens_used": 44, "cost_cents": 0.004, "timestamp": "2026-01-02T11:03:21.955619", "eval_id": "586b096d"}
{"query": "How does Drug X interact with warfarin?", "answer": "According to the provided context, Drug X interacts with warfarin by potentially increasing the risk of bleeding. Monitoring of INR is recommended, including baseline INR and weekly monitoring is recommended.", "source_docs": ["drug_interactions", "medical_research_1", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.48, "hallucination_detected": true, "source_attribution_score": 0.23333333333333334, "latency_ms": 283.388614654541, "tokens_used": 30, "cost_cents": 0.004, "timestamp": "2026-01-02T11:03:22.240178", "eval_id": "a37df1d9"}
{"query": "What is the recommended dosage of Drug X?", "answer": "The recommended dose of Drug X is 500mg twice daily with meals. Dose adjustments may be necessary for patients with renal impairment, in which case a dose reduction to 250mg twice daily is recommended.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.5, "hallucination_detected": true, "source_attribution_score": 0.23529411764705882, "latency_ms": 272.6554870605469, "tokens_used": 34, "cost_cents": 0.004, "timestamp": "2026-01-02T11:03:22.512833", "eval_id": "66ecfa00"}
{"query": "What is the mechanism of action for Drug X?", "answer": "The mechanism of action for Drug X is inhibiting protein kinase Y, which is overexpressed in condition Y cells. This inhibition leads to cell cycle arrest and apoptosis of affected cells.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.5, "hallucination_detected": true, "source_attribution_score": 0.22580645161290322, "latency_ms": 165.5900478363037, "tokens_used": 31, "cost_cents": 0.004, "timestamp": "2026-01-02T11:03:22.679422", "eval_id": "4b7e99dd"}
{"query": "What is the response rate of Drug X?", "answer": "According to the provided context in Chunk 1, the response rate of Drug X was 65%.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.6666666666666666, "hallucination_detected": false, "source_attribution_score": 0.375, "latency_ms": 594.7244167327881, "tokens_used": 16, "cost_cents": 0.004, "timestamp": "2026-01-02T11:41:10.135089", "eval_id": "f5583f32"}
{"query": "What are the side effects of Drug X?", "answer": "According to the provided context, the side effects of Drug X are:\n\n- Headache (12% of patients)\n- Mild gastrointestinal upset (8% of patients)\n- Dizziness (5% of patients)\n- Fatigue (4% of patients)\n\nAdditionally, from the case study, the patient experienced:\n\n- Mild headache (resolved with acetaminophen)\n- Occasional nausea (resolved with food intake)", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.3888888888888889, "hallucination_detected": true, "source_attribution_score": 0.2, "latency_ms": 265.3524875640869, "tokens_used": 55, "cost_cents": 0.004, "timestamp": "2026-01-02T11:41:10.403565", "eval_id": "07148b4e"}
{"query": "How does Drug X interact with warfarin?", "answer": "According to the context, Drug X interacts with warfarin as follows: \n\n- There is a potential increased bleeding risk.\n- It is recommended to monitor INR closely.\n- Baseline INR and weekly monitoring are recommended.", "source_docs": ["drug_interactions", "medical_research_1", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.4666666666666667, "hallucination_detected": true, "source_attribution_score": 0.22857142857142856, "latency_ms": 339.0464782714844, "tokens_used": 35, "cost_cents": 0.004, "timestamp": "2026-01-02T11:41:10.742611", "eval_id": "b7c99790"}
{"query": "What is the recommended dosage of Drug X?", "answer": "The recommended dosage of Drug X is 500mg twice daily with meals.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.6666666666666666, "hallucination_detected": false, "source_attribution_score": 0.3333333333333333, "latency_ms": 176.81241035461426, "tokens_used": 12, "cost_cents": 0.004, "timestamp": "2026-01-02T11:41:10.920425", "eval_id": "1993b43f"}
{"query": "What is the mechanism of action for Drug X?", "answer": "Drug X works by inhibiting protein kinase Y, which is overexpressed in condition Y cells. This inhibition leads to cell cycle arrest and apoptosis of affected cells.", "source_docs": ["medical_research_1", "drug_interactions", "patient_case_study"], "num_retrieved": 3, "retrieval_precision": 0.3333333333333333, "retrieval_recall": 1.0, "rank_position": 1, "rouge_l": 0.95, "bert_score": 0.95, "answer_relevance": 0.85, "faithfulness": 0.46153846153846156, "hallucination_detected": true, "source_attribution_score": 0.2222222222222222, "latency_ms": 389.65582847595215, "tokens_used": 27, "cost_cents": 0.004, "timestamp": "2026-01-02T11:41:11.310612", "eval_id": "e1fdaf31"}