duplicate_content_rate is written as a constant 0.0
Summary
compute_metrics writes duplicate_content_rate as the literal 0.0 while reporting n as the number of quality score rows. The value the metric names is available in the same input file.
Where
research/scripts/compute_metrics.py:54
{"metric": "duplicate_content_rate", "value": 0.0, "n": len(quality)},Every other row in content_rows is computed from quality. signal_quality.score_signal_quality stores {"duplicate_count": ..., "prediction_id": ...} in metadata_json (service/server/signal_quality.py:224), and quality_scores.csv exports that column (research_exports.py:705). research_common.read_json_cell exists for reading it.
Environment
| Commit | d03ff6c |
| Python | 3.14.7 |
| OS | macOS 26.6.2, arm64 |
Reproduction
Four rows in quality_scores.csv with duplicate_count 0, 1, 2 and 3:
$ python research/scripts/compute_metrics.py --input-dir in --output-dir out
$ cat out/content_metrics.csv
metric,value,n
verifiability,3.0,4
evidence_score,2.0,4
specificity,2.0,4
novelty,3.5,4
review_score,1.0,4
duplicate_content_rate,0.0,4Three of four input rows carry duplicate_count > 0. The table reports 0.0 over n = 4, which reads as a measurement of no duplicates.
Not verified
- The intended definition is not documented. Share of rows with
duplicate_count > 0and meanduplicate_countare both plausible; this report only shows that the current value is not derived from the input.
Source: HKUDS/AI-Trader