RagDocument class

A document to ingest.

Constructors

RagDocument(String id, String text, {Map<String, Object?> metadata = const {}})
Creates a document.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable id; re-ingesting the same id replaces the document's chunks.
final
metadata → Map<String, Object?>
Metadata copied onto every chunk (filterable at query time). The keys doc_id, chunk, chunk_start and chunk_end are reserved.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
Full text.
final

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