/ releasenotes / notes / flexible-document-comparison-field-evaluators-c7d8e9f0a1b2c3d4.yaml
flexible-document-comparison-field-evaluators-c7d8e9f0a1b2c3d4.yaml
 1  ---
 2  features:
 3    - |
 4      Added ``document_comparison_field`` parameter to ``DocumentMRREvaluator``,
 5      ``DocumentMAPEvaluator``, and ``DocumentRecallEvaluator``.
 6  
 7      This allows users to compare documents using fields other than ``content``,
 8      such as ``id`` or metadata keys (via ``meta.<key>`` syntax).
 9  
10      Previously, all three evaluators hardcoded ``doc.content`` for comparison,
11      which did not work well when documents were chunked or when ground truth
12      was identified by custom metadata fields.