-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support boost in multi-turn search feat: add document processing config services feat: add search tuning services feat: allow setting schema on schema creation docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 614046598
- Loading branch information
Google APIs
authored and
Copybara-Service
committed
Mar 8, 2024
1 parent
252bef0
commit d66613f
Showing
11 changed files
with
341 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
google/cloud/discoveryengine/v1beta/document_processing_config.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
// Copyright 2022 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.cloud.discoveryengine.v1beta; | ||
|
||
import "google/api/field_behavior.proto"; | ||
import "google/api/resource.proto"; | ||
|
||
option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; | ||
option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "DocumentProcessingConfigProto"; | ||
option java_package = "com.google.cloud.discoveryengine.v1beta"; | ||
option objc_class_prefix = "DISCOVERYENGINE"; | ||
option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; | ||
option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; | ||
|
||
// A singleton resource of | ||
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore]. It's empty when | ||
// [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is created, which | ||
// defaults to digital parser. The first call to | ||
// [DataStoreService.UpdateDocumentProcessingConfig][] method will initialize | ||
// the config. | ||
message DocumentProcessingConfig { | ||
option (google.api.resource) = { | ||
type: "discoveryengine.googleapis.com/DocumentProcessingConfig" | ||
pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig" | ||
pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig" | ||
}; | ||
|
||
// Related configurations applied to a specific type of document parser. | ||
message ParsingConfig { | ||
// The digital parsing configurations for documents. | ||
message DigitalParsingConfig {} | ||
|
||
// The OCR parsing configurations for documents. | ||
message OcrParsingConfig { | ||
// Apply additional enhanced OCR processing to a list of document | ||
// elements. | ||
// | ||
// Supported values: | ||
// * `table`: advanced table parsing model. | ||
repeated string enhanced_document_elements = 1; | ||
|
||
// If true, will use native text instead of OCR text on pages containing | ||
// native text. | ||
bool use_native_text = 2; | ||
} | ||
|
||
// Configs for document processing types. | ||
oneof type_dedicated_config { | ||
// Configurations applied to digital parser. | ||
DigitalParsingConfig digital_parsing_config = 1; | ||
|
||
// Configurations applied to OCR parser. Currently it only applies to | ||
// PDFs. | ||
OcrParsingConfig ocr_parsing_config = 2; | ||
} | ||
} | ||
|
||
// The full resource name of the Document Processing Config. | ||
// Format: | ||
// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. | ||
string name = 1; | ||
|
||
// Configurations for default Document parser. | ||
// If not specified, we will configure it as default DigitalParsingConfig, and | ||
// the default parsing config will be applied to all file types for Document | ||
// parsing. | ||
ParsingConfig default_parsing_config = 4; | ||
|
||
// 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 | ||
// or layout parsing are supported. | ||
// * `docx`: Override parsing config for DOCX files, only digital parsing and | ||
// or layout parsing are supported. | ||
map<string, ParsingConfig> parsing_config_overrides = 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.