RagConfig class
Chunking, retrieval, and persistence controls for a RAG session.
Constructors
Properties
- chunkOverlap → int
-
Characters shared between adjacent chunks.
no setter
- chunkSize → int
-
Characters per indexed chunk.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- persistPath → String?
-
Directory the index persists to.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- similarityThreshold → double?
-
Minimum similarity a chunk needs to be returned.
final
- topK → int
-
Chunks retrieved per query.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toProto(
{required String embeddingModelId, String? llmModelId}) → RAGConfiguration - Build the generated RAG configuration for the given models.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited