struct

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

asset
Source
facet_scores
Source
score
Source