AIDocument class
A chunk of textual data, usually parsed from a larger document.
Constructors
Properties
- content → String
-
The specific chunk of text.
final
-
embedding
↔ List<
double> ? -
Optional embedding vector representing the text.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, dynamic> -
Optional metadata associated with this chunk (e.g., source file, page number).
final
- 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
-
similarityTo(
List< double> queryEmbedding) → double - Calculates cosine similarity between this document's embedding and a query.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited