Show / Hide Table of Contents

Class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec

A specification for configuring the extractive content in a search response.

Inheritance
object
GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.DiscoveryEngine.v1alpha.Data
Assembly: Google.Apis.DiscoveryEngine.v1alpha.dll
Syntax
public class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

MaxExtractiveAnswerCount

The maximum number of extractive answers returned in each search result. An extractive answer is a verbatim answer extracted from the original document, which provides a precise and contextually relevant answer to the search query. If the number of matching answers is less than the max_extractive_answer_count, return all of the answers. Otherwise, return the max_extractive_answer_count. At most five answers are returned for each SearchResult.

Declaration
[JsonProperty("maxExtractiveAnswerCount")]
public virtual int? MaxExtractiveAnswerCount { get; set; }
Property Value
Type Description
int?

MaxExtractiveSegmentCount

The max number of extractive segments returned in each search result. Only applied if the DataStore is set to DataStore.ContentConfig.CONTENT_REQUIRED or DataStore.solution_types is SOLUTION_TYPE_CHAT. An extractive segment is a text segment extracted from the original document that is relevant to the search query, and, in general, more verbose than an extractive answer. The segment could then be used as input for LLMs to generate summaries and answers. If the number of matching segments is less than max_extractive_segment_count, return all of the segments. Otherwise, return the max_extractive_segment_count.

Declaration
[JsonProperty("maxExtractiveSegmentCount")]
public virtual int? MaxExtractiveSegmentCount { get; set; }
Property Value
Type Description
int?

NumNextSegments

Return at most num_next_segments segments after each selected segments.

Declaration
[JsonProperty("numNextSegments")]
public virtual int? NumNextSegments { get; set; }
Property Value
Type Description
int?

NumPreviousSegments

Specifies whether to also include the adjacent from each selected segments. Return at most num_previous_segments segments before each selected segments.

Declaration
[JsonProperty("numPreviousSegments")]
public virtual int? NumPreviousSegments { get; set; }
Property Value
Type Description
int?

ReturnExtractiveSegmentScore

Specifies whether to return the confidence score from the extractive segments in each search result. This feature is available only for new or allowlisted data stores. To allowlist your data store, contact your Customer Engineer. The default value is false.

Declaration
[JsonProperty("returnExtractiveSegmentScore")]
public virtual bool? ReturnExtractiveSegmentScore { get; set; }
Property Value
Type Description
bool?

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX