RagConfig class
- Available extensions
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- RagConfig.new({bool? enabled, EmbeddingModelEnum? embeddingModel, double? maxVectorDistance, int? maxDocumentsLength, int? maxRetrievedRagChunksCount})
-
const
-
RagConfig.fromJson(Map<
String, dynamic> json) -
factory
Properties
- embeddingModel → EmbeddingModelEnum?
-
final
- enabled → bool?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- maxDocumentsLength → int?
-
final
- maxRetrievedRagChunksCount → int?
-
final
- maxVectorDistance → double?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? enabled, EmbeddingModelEnum? embeddingModel, double? maxVectorDistance, int? maxDocumentsLength, int? maxRetrievedRagChunksCount}) → RagConfig -
Available on RagConfig, provided by the $RagConfigExtension extension
-
copyWithWrapped(
{Wrapped< bool?> ? enabled, Wrapped<EmbeddingModelEnum?> ? embeddingModel, Wrapped<double?> ? maxVectorDistance, Wrapped<int?> ? maxDocumentsLength, Wrapped<int?> ? maxRetrievedRagChunksCount}) → RagConfig -
Available on RagConfig, provided by the $RagConfigExtension extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
Constants
-
fromJsonFactory
→ const RagConfig Function(Map<
String, dynamic> json) -
toJsonFactory
→ const Map<
String, dynamic> Function(RagConfig instance)