Class FrameEmbeddingSearchResult
- Namespace
- VisioForge.Core.Types.X.AI
- Assembly
- VisioForge.Core.dll
A single hit returned by VisioForge.Core.Types.X.AI.FrameEmbeddingIndex.Search(System.Single[],System.Int32): the video timestamp of an indexed frame, the source tag it was indexed under, and the cosine similarity score against the query embedding.
public sealed class FrameEmbeddingSearchResultInheritance
Inherited Members
Constructors
FrameEmbeddingSearchResult(TimeSpan, string, float)
Initializes a new instance of the VisioForge.Core.Types.X.AI.FrameEmbeddingSearchResult class.
public FrameEmbeddingSearchResult(TimeSpan timestamp, string sourceTag, float score)Parameters
timestampTimeSpan-
The presentation timestamp of the indexed frame.
sourceTagstring-
The source tag the frame was indexed under (may be null or empty).
scorefloat-
The cosine similarity (typically -1..1) of the frame embedding against the query.
Properties
Score
Gets the cosine similarity of this frame's embedding against the query embedding. Higher means more similar.
public float Score { get; }Property Value
SourceTag
Gets the source tag the frame was indexed under (for example a file name or camera id). May be null or empty.
public string SourceTag { get; }Property Value
Timestamp
Gets the presentation timestamp of the indexed frame within its source.
public TimeSpan Timestamp { get; }