@google-cloud/vectorsearch 0.1.0
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/LICENSE +202 -0
- package/README.md +134 -0
- package/build/protos/google/cloud/vectorsearch/v1beta/common.proto +34 -0
- package/build/protos/google/cloud/vectorsearch/v1beta/data_object.proto +92 -0
- package/build/protos/google/cloud/vectorsearch/v1beta/data_object_search_service.proto +428 -0
- package/build/protos/google/cloud/vectorsearch/v1beta/data_object_service.proto +233 -0
- package/build/protos/google/cloud/vectorsearch/v1beta/embedding_config.proto +71 -0
- package/build/protos/google/cloud/vectorsearch/v1beta/vectorsearch_service.proto +631 -0
- package/build/protos/protos.d.ts +15049 -0
- package/build/protos/protos.js +39060 -0
- package/build/protos/protos.json +4174 -0
- package/build/src/index.d.ts +17 -0
- package/build/src/index.js +32 -0
- package/build/src/index.js.map +1 -0
- package/build/src/v1beta/data_object_search_service_client.d.ts +574 -0
- package/build/src/v1beta/data_object_search_service_client.js +849 -0
- package/build/src/v1beta/data_object_search_service_client.js.map +1 -0
- package/build/src/v1beta/data_object_search_service_client_config.json +58 -0
- package/build/src/v1beta/data_object_search_service_proto_list.json +8 -0
- package/build/src/v1beta/data_object_service_client.d.ts +486 -0
- package/build/src/v1beta/data_object_service_client.js +767 -0
- package/build/src/v1beta/data_object_service_client.js.map +1 -0
- package/build/src/v1beta/data_object_service_client_config.json +73 -0
- package/build/src/v1beta/data_object_service_proto_list.json +8 -0
- package/build/src/v1beta/gapic_metadata.json +277 -0
- package/build/src/v1beta/index.d.ts +3 -0
- package/build/src/v1beta/index.js +27 -0
- package/build/src/v1beta/index.js.map +1 -0
- package/build/src/v1beta/vector_search_service_client.d.ts +1020 -0
- package/build/src/v1beta/vector_search_service_client.js +1387 -0
- package/build/src/v1beta/vector_search_service_client.js.map +1 -0
- package/build/src/v1beta/vector_search_service_client_config.json +88 -0
- package/build/src/v1beta/vector_search_service_proto_list.json +8 -0
- package/package.json +70 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.cloud.vectorsearch.v1beta;
|
|
18
|
+
|
|
19
|
+
import "google/api/field_behavior.proto";
|
|
20
|
+
|
|
21
|
+
option go_package = "cloud.google.com/go/vectorsearch/apiv1beta/vectorsearchpb;vectorsearchpb";
|
|
22
|
+
option java_multiple_files = true;
|
|
23
|
+
option java_outer_classname = "EmbeddingConfigProto";
|
|
24
|
+
option java_package = "com.google.cloud.vectorsearch.v1beta";
|
|
25
|
+
|
|
26
|
+
// Represents the task the embeddings will be used for.
|
|
27
|
+
enum EmbeddingTaskType {
|
|
28
|
+
// Unspecified task type.
|
|
29
|
+
EMBEDDING_TASK_TYPE_UNSPECIFIED = 0;
|
|
30
|
+
|
|
31
|
+
// Specifies the given text is a query in a search/retrieval setting.
|
|
32
|
+
RETRIEVAL_QUERY = 1;
|
|
33
|
+
|
|
34
|
+
// Specifies the given text is a document from the corpus being searched.
|
|
35
|
+
RETRIEVAL_DOCUMENT = 2;
|
|
36
|
+
|
|
37
|
+
// Specifies the given text will be used for STS.
|
|
38
|
+
SEMANTIC_SIMILARITY = 3;
|
|
39
|
+
|
|
40
|
+
// Specifies that the given text will be classified.
|
|
41
|
+
CLASSIFICATION = 4;
|
|
42
|
+
|
|
43
|
+
// Specifies that the embeddings will be used for clustering.
|
|
44
|
+
CLUSTERING = 5;
|
|
45
|
+
|
|
46
|
+
// Specifies that the embeddings will be used for question answering.
|
|
47
|
+
QUESTION_ANSWERING = 6;
|
|
48
|
+
|
|
49
|
+
// Specifies that the embeddings will be used for fact verification.
|
|
50
|
+
FACT_VERIFICATION = 7;
|
|
51
|
+
|
|
52
|
+
// Specifies that the embeddings will be used for code retrieval.
|
|
53
|
+
CODE_RETRIEVAL_QUERY = 8;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Message describing the configuration for generating embeddings for a vector
|
|
57
|
+
// field using Vertex AI embeddings API.
|
|
58
|
+
message VertexEmbeddingConfig {
|
|
59
|
+
// Required. Required: ID of the embedding model to use. See
|
|
60
|
+
// https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models#embeddings-models
|
|
61
|
+
// for the list of supported models.
|
|
62
|
+
string model_id = 1 [(google.api.field_behavior) = REQUIRED];
|
|
63
|
+
|
|
64
|
+
// Required. Required: Text template for the input to the model. The template
|
|
65
|
+
// must contain one or more references to fields in the DataObject, e.g.:
|
|
66
|
+
// "Movie Title: {title} ---- Movie Plot: {plot}"".
|
|
67
|
+
string text_template = 2 [(google.api.field_behavior) = REQUIRED];
|
|
68
|
+
|
|
69
|
+
// Required. Required: Task type for the embeddings.
|
|
70
|
+
EmbeddingTaskType task_type = 3 [(google.api.field_behavior) = REQUIRED];
|
|
71
|
+
}
|