RAGModule class
RAG module for Retrieval-Augmented Generation.
Registers the C++ RAG backend with the RunAnywhere service registry. RAG uses ONNX for embeddings and delegates LLM generation to the already-registered LlamaCpp backend.
Matches the Swift RAGModule pattern from the iOS SDK.
- Implemented types
Properties
-
capabilities
→ Set<
SDKComponent> -
Set of capabilities this module provides
no setteroverride
- defaultPriority → int
-
Default priority for service registration (higher = preferred)
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- inferenceFramework → InferenceFramework
-
The inference framework this module uses
no setteroverride
- moduleId → String
-
Unique identifier for this module (e.g., "llamacpp", "onnx")
no setteroverride
- moduleName → String
-
Human-readable name for the module
no setteroverride
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isRegistered → bool
-
Whether the RAG backend is currently registered.
no setter
- module → RAGModule
-
no setter
Static Methods
-
register(
) → Future< void> - Register the RAG backend with the C++ service registry.
-
unregister(
) → void - Unregister the RAG backend from the C++ service registry.