public sealed class RankRequest : IMessage<RankRequest>, IEquatable<RankRequest>, IDeepCloneable<RankRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class RankRequest.
Request message for [RankService.Rank][google.cloud.discoveryengine.v1beta.RankService.Rank] method.
Implements
IMessageRankRequest, IEquatableRankRequest, IDeepCloneableRankRequest, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Constructors
RankRequest()
public RankRequest()
RankRequest(RankRequest)
public RankRequest(RankRequest other)
Parameter | |
---|---|
Name | Description |
other |
RankRequest |
Properties
IgnoreRecordDetailsInResponse
public bool IgnoreRecordDetailsInResponse { get; set; }
If true, the response will contain only record ID and score. By default, it is false, the response will contain record details.
Property Value | |
---|---|
Type | Description |
bool |
Model
public string Model { get; set; }
The identifier of the model to use. It is one of:
semantic-ranker-512@latest
: Semantic ranking model with maxiumn input token size 512.
It is set to semantic-ranker-512@latest
by default if unspecified.
Property Value | |
---|---|
Type | Description |
string |
Query
public string Query { get; set; }
The query to use.
Property Value | |
---|---|
Type | Description |
string |
RankingConfig
public string RankingConfig { get; set; }
Required. The resource name of the rank service config, such as
projects/{project_num}/locations/{location_id}/rankingConfigs/default_ranking_config
.
Property Value | |
---|---|
Type | Description |
string |
RankingConfigAsRankingConfigName
public RankingConfigName RankingConfigAsRankingConfigName { get; set; }
RankingConfigName-typed view over the RankingConfig resource name property.
Property Value | |
---|---|
Type | Description |
RankingConfigName |
Records
public RepeatedField<RankingRecord> Records { get; }
Required. A list of records to rank. At most 200 records to rank.
Property Value | |
---|---|
Type | Description |
RepeatedFieldRankingRecord |
TopN
public int TopN { get; set; }
The number of results to return. If this is unset or no bigger than zero, returns all results.
Property Value | |
---|---|
Type | Description |
int |