DataDungeon::SearchHit
Inherits JSON::Serializable < Struct < Value < Object
An asset and how close it came to a search (SemanticIndex): its cosine
similarity, or for several facets at once its weakest facet's, with each
facet's in facet_scores.
Constructors
new(asset : AssetRecord, score : Float64, facet_scores : Hash(String, Float64) = {} of String => Float64)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
asset
Sourcefacet_scores
Sourcescore
Source