EmbeddedChunk class

Represents a text chunk with its corresponding vector embedding.

EmbeddedChunk combines a text chunk with its vector representation generated by an embedding model. This is the basic unit used for semantic search and similarity operations in the system.

Constructors

EmbeddedChunk.new({required Chunk chunk, required List<double> embedding})
Creates a new embedded chunk with the specified chunk and embedding.

Properties

chunk Chunk
The original text chunk
final
embedding List<double>
The vector embedding of the chunk content
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited