VectorSearchHit
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllA single search result.
public sealed record VectorSearchHit : IEquatable<VectorSearchHit>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”VectorSearchHit()
Section titled “ VectorSearchHit()”public VectorSearchHit()Properties
Section titled “Properties”ChunkIndex
Section titled “ ChunkIndex”The sequence number within the source.
public required int ChunkIndex { get; init; }Property Value
Section titled “Property Value”Content
Section titled “ Content”The chunk’s text.
public required string Content { get; init; }Property Value
Section titled “Property Value”Distance
Section titled “ Distance”The cosine distance. A smaller value means closer.
public required double Distance { get; init; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”The optional metadata given at write time.
public IReadOnlyDictionary<string, string>? Metadata { get; init; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>?
SourceId
Section titled “ SourceId”The identifier of the source the chunk belongs to.
public required string SourceId { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(VectorSearchHit?)
Section titled “ Equals(VectorSearchHit?)”public bool Equals(VectorSearchHit? other)Parameters
Section titled “Parameters”other VectorSearchHit?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(VectorSearchHit?, VectorSearchHit?)
Section titled “ operator ==(VectorSearchHit?, VectorSearchHit?)”public static bool operator ==(VectorSearchHit? left, VectorSearchHit? right)Parameters
Section titled “Parameters”left VectorSearchHit?
right VectorSearchHit?
Returns
Section titled “Returns”operator !=(VectorSearchHit?, VectorSearchHit?)
Section titled “ operator !=(VectorSearchHit?, VectorSearchHit?)”public static bool operator !=(VectorSearchHit? left, VectorSearchHit? right)Parameters
Section titled “Parameters”left VectorSearchHit?
right VectorSearchHit?