Collection class

Constructors

Collection(String name)

Properties

documents Map<String, Document>
final
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDocument(String? id, String text, Float64List embedding, {Map<String, String>? metadata}) → void
addDocuments(List<Document> docs) → void
clear() → void
load() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeDocument(String id) → void
toString() String
A string representation of this object.
inherited

Operators

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