@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240621 → 0.0.20240701
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +97 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240701
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -433,6 +433,8 @@ declare namespace gapi.client {
|
|
|
433
433
|
document?: string;
|
|
434
434
|
/** If citation_type is DOCUMENT_LEVEL_CITATION, populate document level snippets. */
|
|
435
435
|
snippetInfo?: GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo[];
|
|
436
|
+
/** Data representation. The structured JSON data for the document. It's populated from the struct data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result (code pointer: http://shortn/_Ipo6KFFGBL). */
|
|
437
|
+
structData?: {[P in string]: any};
|
|
436
438
|
/** Title. */
|
|
437
439
|
title?: string;
|
|
438
440
|
/** URI for the document. */
|
|
@@ -560,7 +562,7 @@ declare namespace gapi.client {
|
|
|
560
562
|
interface GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest {
|
|
561
563
|
/** The type specifying the requirement to check. The supported types are: * `discoveryengine.googleapis.com/media_recs/general/all/warning` * `discoveryengine.googleapis.com/media_recs/oyml/cvr/warning` * `discoveryengine.googleapis.com/media_recs/rfy/cvr/warning` * `discoveryengine.googleapis.com/media_recs/mlt/cvr/warning` * `discoveryengine.googleapis.com/media_recs/mp/cvr/warning` * `discoveryengine.googleapis.com/media_recs/oyml/wdps/warning` * `discoveryengine.googleapis.com/media_recs/rfy/wdps/warning` * `discoveryengine.googleapis.com/media_recs/mlt/wdps/warning` */
|
|
562
564
|
requirementType?: string;
|
|
563
|
-
/** The type needed for the monitored resources: * `discoveryengine.googleapis.com/Branch`. * The labels needed for this resource: * `
|
|
565
|
+
/** The type needed for the monitored resources: * `discoveryengine.googleapis.com/Branch`. * The labels needed for this resource: * `project`_`number` * `location`_`id` * `collection`_`id` * `datastore`_`id` * `branch`_`id` * `discoveryengine.googleapis.com/DataStore` * The labels needed for this resource: * `project`_`number` * `location`_`id` * `collection`_`id` * `datastore`_`id` */
|
|
564
566
|
resources?: GoogleApiMonitoredResource[];
|
|
565
567
|
}
|
|
566
568
|
interface GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse {
|
|
@@ -836,6 +838,8 @@ declare namespace gapi.client {
|
|
|
836
838
|
createTime?: string;
|
|
837
839
|
/** The display name of the model. */
|
|
838
840
|
displayName?: string;
|
|
841
|
+
/** The metrics of the trained model. */
|
|
842
|
+
metrics?: {[P in string]: number};
|
|
839
843
|
/** The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). */
|
|
840
844
|
modelState?: string;
|
|
841
845
|
/** The version of the model. */
|
|
@@ -960,7 +964,7 @@ declare namespace gapi.client {
|
|
|
960
964
|
defaultParsingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
|
|
961
965
|
/** The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
962
966
|
name?: string;
|
|
963
|
-
/** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and
|
|
967
|
+
/** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. */
|
|
964
968
|
parsingConfigOverrides?: {
|
|
965
969
|
[P in string]: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
|
|
966
970
|
};
|
|
@@ -1798,7 +1802,7 @@ declare namespace gapi.client {
|
|
|
1798
1802
|
canonicalFilter?: string;
|
|
1799
1803
|
/** A specification for configuring the behavior of content search. */
|
|
1800
1804
|
contentSearchSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec;
|
|
1801
|
-
/** Custom fine tuning configs. */
|
|
1805
|
+
/** Custom fine tuning configs. If set, it has higher priority than the configs set in ServingConfig.custom_fine_tuning_spec. */
|
|
1802
1806
|
customFineTuningSpec?: GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec;
|
|
1803
1807
|
/** 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. */
|
|
1804
1808
|
dataStoreSpecs?: GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec[];
|
|
@@ -1812,6 +1816,8 @@ declare namespace gapi.client {
|
|
|
1812
1816
|
imageQuery?: GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery;
|
|
1813
1817
|
/** The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). This field helps to better interpret the query. If a value isn't specified, the query language code is automatically detected, which may not be accurate. */
|
|
1814
1818
|
languageCode?: string;
|
|
1819
|
+
/** If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional natural language query understanding will be done. */
|
|
1820
|
+
naturalLanguageQueryUnderstandingSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec;
|
|
1815
1821
|
/** A 0-indexed integer that specifies the current offset (that is, starting result location, amongst the Documents deemed by the API as relevant) in search results. This field is only considered if page_token is unset. If this field is negative, an `INVALID_ARGUMENT` is returned. */
|
|
1816
1822
|
offset?: number;
|
|
1817
1823
|
/** The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering for retail search, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. */
|
|
@@ -1826,7 +1832,7 @@ declare namespace gapi.client {
|
|
|
1826
1832
|
query?: string;
|
|
1827
1833
|
/** The query expansion specification that specifies the conditions under which query expansion occurs. */
|
|
1828
1834
|
queryExpansionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec;
|
|
1829
|
-
/** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The ranking expression is a single function or multiple functions that are
|
|
1835
|
+
/** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The ranking expression is a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. */
|
|
1830
1836
|
rankingExpression?: string;
|
|
1831
1837
|
/** The Unicode country/region code (CLDR) of a location, such as "US" and "419". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided. */
|
|
1832
1838
|
regionCode?: string;
|
|
@@ -1836,6 +1842,10 @@ declare namespace gapi.client {
|
|
|
1836
1842
|
safeSearch?: boolean;
|
|
1837
1843
|
/** Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical. */
|
|
1838
1844
|
searchAsYouTypeSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec;
|
|
1845
|
+
/** The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is "How did Alphabet do in 2022?" and the current query is "How about 2023?", the current query will be interpreted as "How did Alphabet do in 2023?". Example #2 (coordination between /search API calls and /answer API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Auto-session mode: when `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users can use the create-session API to create a session manually. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team. */
|
|
1846
|
+
session?: string;
|
|
1847
|
+
/** Session specification. Can be used only when `session` is set. */
|
|
1848
|
+
sessionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec;
|
|
1839
1849
|
/** The spell correction specification that specifies the mode under which spell correction takes effect. */
|
|
1840
1850
|
spellCorrectionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec;
|
|
1841
1851
|
/** Information about the end user. Highly recommended for analytics. UserInfo.user_agent is used to deduce `device_type` for analytics. */
|
|
@@ -1981,6 +1991,12 @@ declare namespace gapi.client {
|
|
|
1981
1991
|
/** Base64 encoded image bytes. Supported image formats: JPEG, PNG, and BMP. */
|
|
1982
1992
|
imageBytes?: string;
|
|
1983
1993
|
}
|
|
1994
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec {
|
|
1995
|
+
/** The condition under which filter extraction should occur. Default to Condition.DISABLED. */
|
|
1996
|
+
filterExtractionCondition?: string;
|
|
1997
|
+
/** Field names used for location-based filtering, where geolocation filters are detected in natural language search queries. Only valid when the FilterExtractionCondition is set to `ENABLED`. If this field is set, it overrides the field names set in Servingconfig.geo_search_query_detection_field_names. */
|
|
1998
|
+
geoSearchQueryDetectionFieldNames?: string[];
|
|
1999
|
+
}
|
|
1984
2000
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec {
|
|
1985
2001
|
/** The condition under which query expansion should occur. Default to Condition.DISABLED. */
|
|
1986
2002
|
condition?: string;
|
|
@@ -1991,6 +2007,12 @@ declare namespace gapi.client {
|
|
|
1991
2007
|
/** The condition under which search as you type should occur. Default to Condition.DISABLED. */
|
|
1992
2008
|
condition?: string;
|
|
1993
2009
|
}
|
|
2010
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec {
|
|
2011
|
+
/** If set, the search result gets stored to the "turn" specified by this query ID. Example: Let's say the session looks like this: session { name: ".../sessions/xxx" turns { query { text: "What is foo?" query_id: ".../questions/yyy" } answer: "Foo is ..." } turns { query { text: "How about bar then?" query_id: ".../questions/zzz" } } } The user can call /search API with a request like this: session: ".../sessions/xxx" session_spec { query_id: ".../questions/zzz" } Then, the API stores the search result, associated with the last turn. The stored search result can be used by a subsequent /answer API call (with the session ID and the query ID specified). Also, it is possible to call /search and /answer in parallel with the same session ID & query ID. */
|
|
2012
|
+
queryId?: string;
|
|
2013
|
+
/** The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is simliar to the `summary_result_count` field in SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count. At most 10 results for documents mode, or 50 for chunks mode. */
|
|
2014
|
+
searchResultPersistenceCount?: number;
|
|
2015
|
+
}
|
|
1994
2016
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec {
|
|
1995
2017
|
/** The mode under which spell correction replaces the original search query. Defaults to Mode.AUTO. */
|
|
1996
2018
|
mode?: string;
|
|
@@ -2007,6 +2029,8 @@ declare namespace gapi.client {
|
|
|
2007
2029
|
geoSearchDebugInfo?: GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo[];
|
|
2008
2030
|
/** Guided search result. */
|
|
2009
2031
|
guidedSearchResult?: GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult;
|
|
2032
|
+
/** Natural language query understanding information for the returned results. */
|
|
2033
|
+
naturalLanguageQueryUnderstandingInfo?: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfo;
|
|
2010
2034
|
/** A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
2011
2035
|
nextPageToken?: string;
|
|
2012
2036
|
/** Query expansion information for the returned results. */
|
|
@@ -2015,6 +2039,8 @@ declare namespace gapi.client {
|
|
|
2015
2039
|
redirectUri?: string;
|
|
2016
2040
|
/** A list of matched documents. The order represents the ranking. */
|
|
2017
2041
|
results?: GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult[];
|
|
2042
|
+
/** Session information. Only set if SearchRequest.session is provided. See its description for more details. */
|
|
2043
|
+
sessionInfo?: GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo;
|
|
2018
2044
|
/** A summary as part of the search results. This field is only returned if SearchRequest.ContentSearchSpec.summary_spec is set. */
|
|
2019
2045
|
summary?: GoogleCloudDiscoveryengineV1alphaSearchResponseSummary;
|
|
2020
2046
|
/** The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches. */
|
|
@@ -2054,6 +2080,60 @@ declare namespace gapi.client {
|
|
|
2054
2080
|
/** Attribute value used to refine the results. For example, `"drama"`. */
|
|
2055
2081
|
attributeValue?: string;
|
|
2056
2082
|
}
|
|
2083
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfo {
|
|
2084
|
+
/** The filters that were extracted from the input query. */
|
|
2085
|
+
extractedFilters?: string;
|
|
2086
|
+
/** Rewritten input query minus the extracted filters. */
|
|
2087
|
+
rewrittenQuery?: string;
|
|
2088
|
+
/** The filters that were extracted from the input query represented in a structured form. */
|
|
2089
|
+
structuredExtractedFilter?: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter;
|
|
2090
|
+
}
|
|
2091
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter {
|
|
2092
|
+
/** The expression denoting the filter that was extracted from the input query in a structured form. It can be a simple expression denoting a single string, numerical or geolocation constraint or a compound expression which is a combination of multiple expressions connected using logical (OR and AND) operators. */
|
|
2093
|
+
expression?: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression;
|
|
2094
|
+
}
|
|
2095
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterAndExpression {
|
|
2096
|
+
/** The expressions that were ANDed together. */
|
|
2097
|
+
expressions?: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression[];
|
|
2098
|
+
}
|
|
2099
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression {
|
|
2100
|
+
/** Logical "And" compound operator connecting multiple expressions. */
|
|
2101
|
+
andExpr?: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterAndExpression;
|
|
2102
|
+
/** Geolocation constraint expression. */
|
|
2103
|
+
geolocationConstraint?: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterGeolocationConstraint;
|
|
2104
|
+
/** Numerical constraint expression. */
|
|
2105
|
+
numberConstraint?: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint;
|
|
2106
|
+
/** Logical "Or" compound operator connecting multiple expressions. */
|
|
2107
|
+
orExpr?: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterOrExpression;
|
|
2108
|
+
/** String constraint expression. */
|
|
2109
|
+
stringConstraint?: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint;
|
|
2110
|
+
}
|
|
2111
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterGeolocationConstraint {
|
|
2112
|
+
/** The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results. */
|
|
2113
|
+
address?: string;
|
|
2114
|
+
/** The name of the geolocation field as defined in the schema. */
|
|
2115
|
+
fieldName?: string;
|
|
2116
|
+
/** The radius in meters around the address. The record is returned if the location of the geolocation field is within the radius. */
|
|
2117
|
+
radiusInMeters?: number;
|
|
2118
|
+
}
|
|
2119
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint {
|
|
2120
|
+
/** The comparison operation performed between the field value and the value specified in the constraint. */
|
|
2121
|
+
comparison?: string;
|
|
2122
|
+
/** Name of the numerical field as defined in the schema. */
|
|
2123
|
+
fieldName?: string;
|
|
2124
|
+
/** The value specified in the numerical constraint. */
|
|
2125
|
+
value?: number;
|
|
2126
|
+
}
|
|
2127
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterOrExpression {
|
|
2128
|
+
/** The expressions that were ORed together. */
|
|
2129
|
+
expressions?: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression[];
|
|
2130
|
+
}
|
|
2131
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint {
|
|
2132
|
+
/** Name of the string field as defined in the schema. */
|
|
2133
|
+
fieldName?: string;
|
|
2134
|
+
/** Values of the string field. The record will only be returned if the field value matches one of the values specified here. */
|
|
2135
|
+
values?: string[];
|
|
2136
|
+
}
|
|
2057
2137
|
interface GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo {
|
|
2058
2138
|
/** Bool describing whether query expansion has occurred. */
|
|
2059
2139
|
expandedQuery?: boolean;
|
|
@@ -2072,6 +2152,12 @@ declare namespace gapi.client {
|
|
|
2072
2152
|
[P in string]: GoogleCloudDiscoveryengineV1alphaDoubleList;
|
|
2073
2153
|
};
|
|
2074
2154
|
}
|
|
2155
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo {
|
|
2156
|
+
/** Name of the session. If the auto-session mode is used (when SearchRequest.session ends with "-"), this field holds the newly generated session name. */
|
|
2157
|
+
name?: string;
|
|
2158
|
+
/** Query ID that corresponds to this search API call. One session can have multiple turns, each with a unique query ID. By specifying the session name and this query ID in the Answer API call, the answer generation happens in the context of the search results from this search call. */
|
|
2159
|
+
queryId?: string;
|
|
2160
|
+
}
|
|
2075
2161
|
interface GoogleCloudDiscoveryengineV1alphaSearchResponseSummary {
|
|
2076
2162
|
/** A collection of Safety Attribute categories and their associated confidence scores. */
|
|
2077
2163
|
safetyAttributes?: GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes;
|
|
@@ -2133,7 +2219,7 @@ declare namespace gapi.client {
|
|
|
2133
2219
|
boostControlIds?: string[];
|
|
2134
2220
|
/** Output only. ServingConfig created timestamp. */
|
|
2135
2221
|
createTime?: string;
|
|
2136
|
-
/** Custom fine tuning configs. */
|
|
2222
|
+
/** Custom fine tuning configs. If SearchRequest.custom_fine_tuning_spec is set, it has higher priority than the configs set here. */
|
|
2137
2223
|
customFineTuningSpec?: GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec;
|
|
2138
2224
|
/** Required. The human readable serving config display name. Used in Discovery UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
|
|
2139
2225
|
displayName?: string;
|
|
@@ -2159,7 +2245,7 @@ declare namespace gapi.client {
|
|
|
2159
2245
|
name?: string;
|
|
2160
2246
|
/** Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
|
|
2161
2247
|
onewaySynonymsControlIds?: string[];
|
|
2162
|
-
/** The ranking expression controls the customized ranking on retrieval documents. To leverage this, document embedding is required. The ranking expression setting in ServingConfig applies to all search requests served by the serving config. However, if SearchRequest.ranking_expression is specified, it overrides the ServingConfig ranking expression. The ranking expression is a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: relevance_score
|
|
2248
|
+
/** The ranking expression controls the customized ranking on retrieval documents. To leverage this, document embedding is required. The ranking expression setting in ServingConfig applies to all search requests served by the serving config. However, if SearchRequest.ranking_expression is specified, it overrides the ServingConfig ranking expression. The ranking expression is a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. */
|
|
2163
2249
|
rankingExpression?: string;
|
|
2164
2250
|
/** IDs of the redirect controls. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
|
|
2165
2251
|
redirectControlIds?: string[];
|
|
@@ -2501,6 +2587,8 @@ declare namespace gapi.client {
|
|
|
2501
2587
|
createTime?: string;
|
|
2502
2588
|
/** The display name of the model. */
|
|
2503
2589
|
displayName?: string;
|
|
2590
|
+
/** The metrics of the trained model. */
|
|
2591
|
+
metrics?: {[P in string]: number};
|
|
2504
2592
|
/** The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). */
|
|
2505
2593
|
modelState?: string;
|
|
2506
2594
|
/** The version of the model. */
|
|
@@ -2570,7 +2658,7 @@ declare namespace gapi.client {
|
|
|
2570
2658
|
defaultParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
|
|
2571
2659
|
/** The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
2572
2660
|
name?: string;
|
|
2573
|
-
/** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and
|
|
2661
|
+
/** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. */
|
|
2574
2662
|
parsingConfigOverrides?: {
|
|
2575
2663
|
[P in string]: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
|
|
2576
2664
|
};
|
|
@@ -3026,7 +3114,7 @@ declare namespace gapi.client {
|
|
|
3026
3114
|
defaultParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
|
|
3027
3115
|
/** The full resource name of the Document Processing Config. Format: `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. */
|
|
3028
3116
|
name?: string;
|
|
3029
|
-
/** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and
|
|
3117
|
+
/** Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. */
|
|
3030
3118
|
parsingConfigOverrides?: {
|
|
3031
3119
|
[P in string]: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
|
|
3032
3120
|
};
|