VectorChunk
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllA single chunk to write.
public sealed record VectorChunk : IEquatable<VectorChunk>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”VectorChunk()
Section titled “ VectorChunk()”public VectorChunk()Properties
Section titled “Properties”Content
Section titled “ Content”The chunk’s text.
public required string Content { get; init; }Property Value
Section titled “Property Value”Embedding
Section titled “ Embedding”The chunk’s embedding. Its length MUST match IVectorSearchStore.Dimensions; otherwise the write fails.
public required ReadOnlyMemory<float> Embedding { get; init; }Property Value
Section titled “Property Value”The sequence number within the source (0-based).
public required int Index { get; init; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Optional metadata. Can be used for filtering.
public IReadOnlyDictionary<string, string>? Metadata { get; init; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>?
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(VectorChunk?)
Section titled “ Equals(VectorChunk?)”public bool Equals(VectorChunk? other)Parameters
Section titled “Parameters”other VectorChunk?
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 ==(VectorChunk?, VectorChunk?)
Section titled “ operator ==(VectorChunk?, VectorChunk?)”public static bool operator ==(VectorChunk? left, VectorChunk? right)Parameters
Section titled “Parameters”left VectorChunk?
right VectorChunk?
Returns
Section titled “Returns”operator !=(VectorChunk?, VectorChunk?)
Section titled “ operator !=(VectorChunk?, VectorChunk?)”public static bool operator !=(VectorChunk? left, VectorChunk? right)Parameters
Section titled “Parameters”left VectorChunk?
right VectorChunk?