Why wasn't the relation used as an evaluation metric?
I might have overlooked it, but after searching through the entire project, I found that relations are not used as an evaluation criterion. The file > ./Datasets/Questions/medical_questions.json provides an > "evidence_relations" field:
{
"id": "Medical-73586ddc",
"source": "Medical",
"question": "What is the most common type of skin cancer?",
"answer": "Basal cell carcinoma (BCC) is the most common type of skin cancer.",
"question_type": "Fact Retrieval",
"evidence": [
"Basal cell carcinoma (BCC) is the most common type of skin cancer."
],
"evidence_relations": "Basal cell carcinoma (BCC) is the most common type of skin cancer"
},
but this parameter is never utilized in the codebase. Only the > "evidence" parameter is used, which omits a critical evaluation dimension.
For example, in lines 238-248 of > run_lightrag.py :
results.append({
"id": q["id"],
"question": q["question"],
"source": corpus_name,
"context": context,
"evidence": q["evidence"], # Only "evidence" is used
"question_type": q["question_type"],
"generated_answer": predicted_answer,
"gold_answer": q.get("answer"),
})
Hello, thank you for your interest! Let me clarify the fields in our dataset in more detail. The evidence_relation field in the medical dataset and the evidence_triple field in the novel dataset refer to the evidence used during the question construction phase. In contrast, the evidence field represents the actual knowledge required to answer the question. In simpler fact retrieval tasks, the distinction between them may seem minimal, but conceptually, they serve different purposes. To ensure the dataset remains comprehensive and transparent, we chose to retain evidence_relation and evidence_triple even though they are not used during evaluation. We hope this clears things up, and we appreciate your feedback!
Hello, thank you for your interest!你好,感谢您的关注! Let me clarify the fields in our dataset in more detail. The evidence_relation field in the medical dataset and the evidence_triple field in the novel dataset refer to the evidence used during the question construction phase. In contrast, the evidence field represents the actual knowledge required to answer the question.让我更详细地解释一下我们数据集中的字段。在医学数据集中,evidence_relation 字段和在小说数据集中,evidence_triple 字段指的是在问题构建阶段使用的证据。相比之下,evidence 字段代表回答问题时实际需要的知识。 In simpler fact retrieval tasks, the distinction between them may seem minimal, but conceptually, they serve different purposes. To ensure the dataset remains comprehensive and transparent, we chose to retain evidence_relation and evidence_triple even though they are not used during evaluation.在简单的事实检索任务中,它们之间的区别可能看起来微不足道,但概念上,它们服务于不同的目的。为了确保数据集保持全面和透明,尽管在评估过程中它们不被使用,我们选择保留 evidence_relation 和 evidence_triple。 We hope this clears things up, and we appreciate your feedback!希望这能澄清问题,我们感谢您的反馈!
Thank you for your detailed explanations.