public/extensions/rag_module library
RAG backend module for RunAnywhere Flutter SDK.
This module registers the RAG (Retrieval-Augmented Generation) backend with the RunAnywhere plugin system via the module lifecycle.
Architecture
The C++ RAG pipeline (compiled into RACommons) handles all business logic:
- RAG pipeline creation and management
- Document embedding and vector indexing
- Query retrieval and LLM answer generation
This Dart module just:
- Calls
rac_backend_rag_register()to register the backend - The core SDK handles RAG operations via
DartBridgeRAG
Quick Start
import 'package:runanywhere/public/extensions/rag_module.dart';
// Register the module (matches Swift: RAGModule.register())
await RAGModule.register();
// Use DartBridgeRAG for pipeline operations
DartBridgeRAG.shared.createPipeline(config: myConfig);
Classes
- RAGModule
- RAG module for Retrieval-Augmented Generation.