RecommendPointGroups constructor
RecommendPointGroups({
- String? collectionName,
- Iterable<
PointId> ? positive, - Iterable<
PointId> ? negative, - Filter? filter,
- int? limit,
- WithPayloadSelector? withPayload,
- SearchParams? params,
- double? scoreThreshold,
- String? using,
- WithVectorsSelector? withVectors,
- LookupLocation? lookupFrom,
- String? groupBy,
- int? groupSize,
- ReadConsistency? readConsistency,
- WithLookup? withLookup,
- RecommendStrategy? strategy,
- Iterable<
Vector> ? positiveVectors, - Iterable<
Vector> ? negativeVectors, - Int64? timeout,
- ShardKeySelector? shardKeySelector,
Implementation
factory RecommendPointGroups({
$core.String? collectionName,
$core.Iterable<PointId>? positive,
$core.Iterable<PointId>? negative,
Filter? filter,
$core.int? limit,
WithPayloadSelector? withPayload,
SearchParams? params,
$core.double? scoreThreshold,
$core.String? using,
WithVectorsSelector? withVectors,
LookupLocation? lookupFrom,
$core.String? groupBy,
$core.int? groupSize,
ReadConsistency? readConsistency,
WithLookup? withLookup,
RecommendStrategy? strategy,
$core.Iterable<Vector>? positiveVectors,
$core.Iterable<Vector>? negativeVectors,
$fixnum.Int64? timeout,
ShardKeySelector? shardKeySelector,
}) {
final $result = create();
if (collectionName != null) {
$result.collectionName = collectionName;
}
if (positive != null) {
$result.positive.addAll(positive);
}
if (negative != null) {
$result.negative.addAll(negative);
}
if (filter != null) {
$result.filter = filter;
}
if (limit != null) {
$result.limit = limit;
}
if (withPayload != null) {
$result.withPayload = withPayload;
}
if (params != null) {
$result.params = params;
}
if (scoreThreshold != null) {
$result.scoreThreshold = scoreThreshold;
}
if (using != null) {
$result.using = using;
}
if (withVectors != null) {
$result.withVectors = withVectors;
}
if (lookupFrom != null) {
$result.lookupFrom = lookupFrom;
}
if (groupBy != null) {
$result.groupBy = groupBy;
}
if (groupSize != null) {
$result.groupSize = groupSize;
}
if (readConsistency != null) {
$result.readConsistency = readConsistency;
}
if (withLookup != null) {
$result.withLookup = withLookup;
}
if (strategy != null) {
$result.strategy = strategy;
}
if (positiveVectors != null) {
$result.positiveVectors.addAll(positiveVectors);
}
if (negativeVectors != null) {
$result.negativeVectors.addAll(negativeVectors);
}
if (timeout != null) {
$result.timeout = timeout;
}
if (shardKeySelector != null) {
$result.shardKeySelector = shardKeySelector;
}
return $result;
}