DartBridgeRAG class

RAG pipeline bridge for C++ interop.

Mirrors Swift's CppBridge.RAG actor pattern.

Properties

documentCount int
Get the number of indexed document chunks.
no setter
hashCode int
The hash code for this object.
no setterinherited
isCreated bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDocument(String text, {String? metadataJSON}) → void
Add a document to the pipeline.
clearDocuments() → void
Clear all documents from the pipeline.
createPipeline({required Pointer<RacRagConfigStruct> config}) → void
Create a RAG pipeline from a pre-populated RacRagConfigStruct pointer.
destroy() → void
Destroy the RAG pipeline and release native resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String question, {String? systemPrompt, int maxTokens = 512, double temperature = 0.7, double topP = 0.9, int topK = 40}) RAGBridgeResult
Query the RAG pipeline with named parameters.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

shared DartBridgeRAG
final

Static Methods

registerBackend() int
Register the RAG backend with the C++ service registry.
unregisterBackend() → void
Unregister the RAG backend from the C++ service registry.