FlutterGemmaKnowledgeBackend class final

Adapts Flutter Gemma's configured RAG store to Omnix Knowledge contracts.

The host remains responsible for configuring Flutter Gemma with a vector store, activating an embedding model, and supplying a writable database path. Indexing uses GemmaRag.addDocument, which applies the provider's retrieval-document embedding task rather than embedding document text as a retrieval query.

Implemented types

Constructors

FlutterGemmaKnowledgeBackend({required String databasePath, FlutterGemmaRagGateway? gateway, int candidateMultiplier = 4})

Properties

candidateMultiplier → int
final
databasePath → String
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

clear() → Future<void>
override
flush() → Future<void>
Makes preceding writes durable when the backend buffers them.
override
index(OmnixKnowledgeChunk chunk) → Future<void>
override
initialize() → Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String chunkId) → Future<void>
override
override
toString() → String
A string representation of this object.
inherited

Operators

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