public static interface AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
SearchRequest.BoostSpec |
getBoostSpec()
Boost specification to boost certain documents in search results which
may affect the answer query response.
|
SearchRequest.BoostSpecOrBuilder |
getBoostSpecOrBuilder()
Boost specification to boost certain documents in search results which
may affect the answer query response.
|
CustomFineTuningSpec |
getCustomFineTuningSpec()
Custom fine tuning configs.
|
CustomFineTuningSpecOrBuilder |
getCustomFineTuningSpecOrBuilder()
Custom fine tuning configs.
|
SearchRequest.DataStoreSpec |
getDataStoreSpecs(int index)
Specs defining dataStores to filter on in a search call and
configurations for those dataStores.
|
int |
getDataStoreSpecsCount()
Specs defining dataStores to filter on in a search call and
configurations for those dataStores.
|
List<SearchRequest.DataStoreSpec> |
getDataStoreSpecsList()
Specs defining dataStores to filter on in a search call and
configurations for those dataStores.
|
SearchRequest.DataStoreSpecOrBuilder |
getDataStoreSpecsOrBuilder(int index)
Specs defining dataStores to filter on in a search call and
configurations for those dataStores.
|
List<? extends SearchRequest.DataStoreSpecOrBuilder> |
getDataStoreSpecsOrBuilderList()
Specs defining dataStores to filter on in a search call and
configurations for those dataStores.
|
String |
getFilter()
The filter syntax consists of an expression language for constructing
a predicate from one or more fields of the documents being filtered.
|
com.google.protobuf.ByteString |
getFilterBytes()
The filter syntax consists of an expression language for constructing
a predicate from one or more fields of the documents being filtered.
|
int |
getMaxReturnResults()
Number of search results to return.
|
String |
getOrderBy()
The order in which documents are returned.
|
com.google.protobuf.ByteString |
getOrderByBytes()
The order in which documents are returned.
|
SearchRequest.ContentSearchSpec.SearchResultMode |
getSearchResultMode()
Specifies the search result mode.
|
int |
getSearchResultModeValue()
Specifies the search result mode.
|
boolean |
hasBoostSpec()
Boost specification to boost certain documents in search results which
may affect the answer query response.
|
boolean |
hasCustomFineTuningSpec()
Custom fine tuning configs.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofint getMaxReturnResults()
Number of search results to return. The default value is 10.
int32 max_return_results = 1;String getFilter()
The filter syntax consists of an expression language for constructing
a predicate from one or more fields of the documents being filtered.
Filter expression is case-sensitive. This will be used to filter
search results which may affect the Answer response.
If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
Filtering in Vertex AI Search is done by mapping the LHS filter key
to a key property defined in the Vertex AI Search backend -- this
mapping is defined by the customer in their schema. For example a
media customers might have a field 'name' in their schema. In this
case the filter would look like this: filter --> name:'ANY("king
kong")'
For more information about filtering including syntax and filter
operators, see
[Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
string filter = 2;com.google.protobuf.ByteString getFilterBytes()
The filter syntax consists of an expression language for constructing
a predicate from one or more fields of the documents being filtered.
Filter expression is case-sensitive. This will be used to filter
search results which may affect the Answer response.
If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
Filtering in Vertex AI Search is done by mapping the LHS filter key
to a key property defined in the Vertex AI Search backend -- this
mapping is defined by the customer in their schema. For example a
media customers might have a field 'name' in their schema. In this
case the filter would look like this: filter --> name:'ANY("king
kong")'
For more information about filtering including syntax and filter
operators, see
[Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
string filter = 2;boolean hasBoostSpec()
Boost specification to boost certain documents in search results which may affect the answer query response. For more information on boosting, see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 3;SearchRequest.BoostSpec getBoostSpec()
Boost specification to boost certain documents in search results which may affect the answer query response. For more information on boosting, see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 3;SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder()
Boost specification to boost certain documents in search results which may affect the answer query response. For more information on boosting, see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 3;String getOrderBy()
The order in which documents are returned. Documents can be ordered by a field in an [Document][google.cloud.discoveryengine.v1alpha.Document] object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
string order_by = 4;com.google.protobuf.ByteString getOrderByBytes()
The order in which documents are returned. Documents can be ordered by a field in an [Document][google.cloud.discoveryengine.v1alpha.Document] object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
string order_by = 4;int getSearchResultModeValue()
Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`. See [parse and chunk documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5;
SearchRequest.ContentSearchSpec.SearchResultMode getSearchResultMode()
Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`. See [parse and chunk documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5;
boolean hasCustomFineTuningSpec()
Custom fine tuning configs.
.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 6;
CustomFineTuningSpec getCustomFineTuningSpec()
Custom fine tuning configs.
.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 6;
CustomFineTuningSpecOrBuilder getCustomFineTuningSpecOrBuilder()
Custom fine tuning configs.
.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 6;
List<SearchRequest.DataStoreSpec> getDataStoreSpecsList()
Specs defining dataStores to filter on in a search call and configurations for those dataStores. This is only considered for engines with multiple dataStores use case. For single dataStore within an engine, they should use the specs at the top level.
repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 7;
SearchRequest.DataStoreSpec getDataStoreSpecs(int index)
Specs defining dataStores to filter on in a search call and configurations for those dataStores. This is only considered for engines with multiple dataStores use case. For single dataStore within an engine, they should use the specs at the top level.
repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 7;
int getDataStoreSpecsCount()
Specs defining dataStores to filter on in a search call and configurations for those dataStores. This is only considered for engines with multiple dataStores use case. For single dataStore within an engine, they should use the specs at the top level.
repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 7;
List<? extends SearchRequest.DataStoreSpecOrBuilder> getDataStoreSpecsOrBuilderList()
Specs defining dataStores to filter on in a search call and configurations for those dataStores. This is only considered for engines with multiple dataStores use case. For single dataStore within an engine, they should use the specs at the top level.
repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 7;
SearchRequest.DataStoreSpecOrBuilder getDataStoreSpecsOrBuilder(int index)
Specs defining dataStores to filter on in a search call and configurations for those dataStores. This is only considered for engines with multiple dataStores use case. For single dataStore within an engine, they should use the specs at the top level.
repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 7;
Copyright © 2024 Google LLC. All rights reserved.