Provenance class

Constructors

Provenance({String? backend, int? rank, num? score})
Returns a new Provenance instance.

Properties

backend ↔ String?
Backend is the leg that contributed this match: "index" (lexical), "vector" (semantic) or "code" (the org's repositories). It is the same name that leg reports itself under in Fusion.Backends, so a hit can be traced to a status.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
rank ↔ int?
Rank is this document's 1-based position in THAT leg's own result list, before fusion — 1 is the leg's best hit. It is the only input to the fused score: RRF adds 1/(60+rank) per leg, which is why a document two legs ranked second beats one a single leg ranked first.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
score ↔ num?
Score is the leg's NATIVE score, on that leg's own scale, reported for explanation and never used in ranking — the scales are incomparable (a cosine similarity against a term-match count), which is why fusion works on ranks. The vector leg reports Qdrant's cosine similarity; the lexical leg exposes no per-row score and reports 0, meaning "unscored", not "scored zero".
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Provenance?
Returns a new Provenance instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Provenance>
mapFromJson(dynamic json) → Map<String, Provenance>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Provenance>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.