from raghilda.chunk import Metric
similarity = Metric(name="similarity", value=0.95)
print(f"{similarity.name}: {similarity.value}")similarity: 0.95
A named metric value associated with a retrieved chunk.
Usage
Metrics are used to store retrieval scores and other measurements that describe how well a chunk matches a query.
name: strvalue: floatname: strThe name of the metric (e.g., “similarity”, “bm25_score”).
value: float