AiClientChunk class

A chunk with your own vector, for AiDocumentSource.chunks.

Constructors

AiClientChunk({required String content, required List<double> embedding, Map<String, dynamic>? metadata})
const

Properties

content → String
final
embedding → List<double>
final
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, dynamic>?
E.g. {'trust': 'user'} (collection search can filter by trust).
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
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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