RunAnywhereRAG extension

Extension providing static RAG pipeline methods on RunAnywhere.

All methods check SDK initialization before proceeding, publish lifecycle events to EventBus, and convert bridge errors to typed SDKError exceptions.

Usage:

await RunAnywhereRAG.ragCreatePipeline(config);
await RunAnywhereRAG.ragIngest(text);
final result = await RunAnywhereRAG.ragQuery(question);
await RunAnywhereRAG.ragDestroyPipeline();
on

Static Methods

ragClearDocuments() Future<void>

Available on RunAnywhere, provided by the RunAnywhereRAG extension

Clear all documents from the RAG pipeline.
ragCreatePipeline(RAGConfiguration config) Future<void>

Available on RunAnywhere, provided by the RunAnywhereRAG extension

Create the RAG pipeline with the given configuration.
ragDestroyPipeline() Future<void>

Available on RunAnywhere, provided by the RunAnywhereRAG extension

Destroy the RAG pipeline and release native resources.
ragDocumentCount() Future<int>

Available on RunAnywhere, provided by the RunAnywhereRAG extension

Get the number of indexed document chunks in the pipeline.
ragIngest(String text, {String? metadataJSON}) Future<void>

Available on RunAnywhere, provided by the RunAnywhereRAG extension

Ingest a document into the RAG pipeline.
ragQuery(String question, {RAGQueryOptions? options}) Future<RAGResult>

Available on RunAnywhere, provided by the RunAnywhereRAG extension

Query the RAG pipeline with a natural language question.