RAGRetrievalOptions constructor

RAGRetrievalOptions({
  1. int? topK,
  2. double? scoreThreshold,
  3. bool? enableMultiQuery,
  4. int? multiQueryCount,
  5. String? scopePrefix,
})

Implementation

factory RAGRetrievalOptions({
  $core.int? topK,
  $core.double? scoreThreshold,
  $core.bool? enableMultiQuery,
  $core.int? multiQueryCount,
  $core.String? scopePrefix,
}) {
  final result = create();
  if (topK != null) result.topK = topK;
  if (scoreThreshold != null) result.scoreThreshold = scoreThreshold;
  if (enableMultiQuery != null) result.enableMultiQuery = enableMultiQuery;
  if (multiQueryCount != null) result.multiQueryCount = multiQueryCount;
  if (scopePrefix != null) result.scopePrefix = scopePrefix;
  return result;
}