Skip to content

Commit 15a15e9

Browse files
chore: librarian generate pull request: 20251121T141443Z (#14902)
PR created by the Librarian CLI to generate Cloud Client Libraries code from protos. BEGIN_COMMIT BEGIN_NESTED_COMMIT feat: Added TextSearch support to the batch search API PiperOrigin-RevId: 834645993 Library-IDs: google-cloud-vectorsearch Source-link: [googleapis/googleapis@d6a2197c](googleapis/googleapis@d6a2197c) END_NESTED_COMMIT BEGIN_NESTED_COMMIT docs: Added clarification of expected format of collection and index fields PiperOrigin-RevId: 834645993 Library-IDs: google-cloud-vectorsearch Source-link: [googleapis/googleapis@d6a2197c](googleapis/googleapis@d6a2197c) END_NESTED_COMMIT END_COMMIT This pull request is generated with proto changes between [googleapis/googleapis@9fcfbea0](googleapis/googleapis@9fcfbea) (exclusive) and [googleapis/googleapis@d6a2197c](googleapis/googleapis@d6a2197) (inclusive). Librarian Version: v0.0.0-20251113212345-55e52e492404 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:72e9b62c0f8f3799651ee62d777a2905f5b72ff19ea46f2e7b7d682d7d1e9414
1 parent c958ebd commit 15a15e9

File tree

8 files changed

+59
-28
lines changed

8 files changed

+59
-28
lines changed

.librarian/state.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3500,7 +3500,7 @@ libraries:
35003500
tag_format: '{id}-v{version}'
35013501
- id: google-cloud-vectorsearch
35023502
version: 0.1.0
3503-
last_generated_commit: 9fcfbea0aa5b50fa22e190faceb073d74504172b
3503+
last_generated_commit: ded7ed1e4cce7c165c56a417572cebea9bc1d82c
35043504
apis:
35053505
- path: google/cloud/vectorsearch/v1beta
35063506
service_config: vectorsearch_v1beta.yaml

packages/google-cloud-vectorsearch/.repo-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "google-cloud-vectorsearch",
33
"name_pretty": "Vector Search API",
44
"api_description": "The Vector Search API provides a fully-managed, highly performant, and\nscalable vector database designed to power next-generation search,\nrecommendation, and generative AI applications. It allows you to store,\nindex, and query your data and its corresponding vector embeddings through\na simple, intuitive interface. With Vector Search, you can define custom\nschemas for your data, insert objects with associated metadata,\nautomatically generate embeddings from your data, and perform fast\napproximate nearest neighbor (ANN) searches to find semantically similar\nitems at scale.",
5-
"product_documentation": "https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview",
5+
"product_documentation": "https://docs.cloud.google.com/vertex-ai/docs/vector-search-2/overview",
66
"client_documentation": "https://cloud.google.com/python/docs/reference/google-cloud-vectorsearch/latest",
77
"issue_tracker": "https://issuetracker.google.com/issues/new?component=1899904",
88
"release_level": "preview",

packages/google-cloud-vectorsearch/README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ items at scale.
2222
:target: https://pypi.org/project/google-cloud-vectorsearch/
2323
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-vectorsearch.svg
2424
:target: https://pypi.org/project/google-cloud-vectorsearch/
25-
.. _Vector Search API: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
25+
.. _Vector Search API: https://docs.cloud.google.com/vertex-ai/docs/vector-search-2/overview
2626
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/google-cloud-vectorsearch/latest/summary_overview
27-
.. _Product Documentation: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
27+
.. _Product Documentation: https://docs.cloud.google.com/vertex-ai/docs/vector-search-2/overview
2828

2929
Quick Start
3030
-----------
@@ -38,7 +38,7 @@ In order to use this library, you first need to go through the following steps:
3838

3939
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
4040
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
41-
.. _Enable the Vector Search API.: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
41+
.. _Enable the Vector Search API.: https://docs.cloud.google.com/vertex-ai/docs/vector-search-2/overview
4242
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
4343

4444
Installation
@@ -112,7 +112,7 @@ Next Steps
112112
- View this `README`_ to see the full list of Cloud
113113
APIs that we cover.
114114

115-
.. _Vector Search API Product documentation: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
115+
.. _Vector Search API Product documentation: https://docs.cloud.google.com/vertex-ai/docs/vector-search-2/overview
116116
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
117117

118118
Logging

packages/google-cloud-vectorsearch/docs/README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ items at scale.
2222
:target: https://pypi.org/project/google-cloud-vectorsearch/
2323
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-vectorsearch.svg
2424
:target: https://pypi.org/project/google-cloud-vectorsearch/
25-
.. _Vector Search API: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
25+
.. _Vector Search API: https://docs.cloud.google.com/vertex-ai/docs/vector-search-2/overview
2626
.. _Client Library Documentation: https://cloud.google.com/python/docs/reference/google-cloud-vectorsearch/latest/summary_overview
27-
.. _Product Documentation: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
27+
.. _Product Documentation: https://docs.cloud.google.com/vertex-ai/docs/vector-search-2/overview
2828

2929
Quick Start
3030
-----------
@@ -38,7 +38,7 @@ In order to use this library, you first need to go through the following steps:
3838

3939
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
4040
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
41-
.. _Enable the Vector Search API.: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
41+
.. _Enable the Vector Search API.: https://docs.cloud.google.com/vertex-ai/docs/vector-search-2/overview
4242
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
4343

4444
Installation
@@ -112,7 +112,7 @@ Next Steps
112112
- View this `README`_ to see the full list of Cloud
113113
APIs that we cover.
114114

115-
.. _Vector Search API Product documentation: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
115+
.. _Vector Search API Product documentation: https://docs.cloud.google.com/vertex-ai/docs/vector-search-2/overview
116116
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
117117

118118
Logging

packages/google-cloud-vectorsearch/google/cloud/vectorsearch_v1beta/services/vector_search_service/async_client.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,11 @@ async def sample_create_collection():
607607
on the ``request`` instance; if ``request`` is provided, this
608608
should not be set.
609609
collection_id (:class:`str`):
610-
Required. Id of the requesting object If auto-generating
611-
Id server-side, remove this field and collection_id from
612-
the method_signature of Create RPC
610+
Required. ID of the Collection to create. The id must be
611+
1-63 characters long, and comply with RFC1035.
612+
Specifically, it must be 1-63 characters long and match
613+
the regular expression
614+
``[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?``.
613615
614616
This corresponds to the ``collection_id`` field
615617
on the ``request`` instance; if ``request`` is provided, this
@@ -1275,9 +1277,10 @@ async def sample_create_index():
12751277
on the ``request`` instance; if ``request`` is provided, this
12761278
should not be set.
12771279
index_id (:class:`str`):
1278-
Required. Id of the requesting object If auto-generating
1279-
Id server-side, remove this field and index_id from the
1280-
method_signature of Create RPC
1280+
Required. ID of the Index to create. The id must be 1-63
1281+
characters long, and comply with RFC1035. Specifically,
1282+
it must be 1-63 characters long and match the regular
1283+
expression ``[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?``.
12811284
12821285
This corresponds to the ``index_id`` field
12831286
on the ``request`` instance; if ``request`` is provided, this

packages/google-cloud-vectorsearch/google/cloud/vectorsearch_v1beta/services/vector_search_service/client.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,9 +1047,11 @@ def sample_create_collection():
10471047
on the ``request`` instance; if ``request`` is provided, this
10481048
should not be set.
10491049
collection_id (str):
1050-
Required. Id of the requesting object If auto-generating
1051-
Id server-side, remove this field and collection_id from
1052-
the method_signature of Create RPC
1050+
Required. ID of the Collection to create. The id must be
1051+
1-63 characters long, and comply with RFC1035.
1052+
Specifically, it must be 1-63 characters long and match
1053+
the regular expression
1054+
``[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?``.
10531055
10541056
This corresponds to the ``collection_id`` field
10551057
on the ``request`` instance; if ``request`` is provided, this
@@ -1700,9 +1702,10 @@ def sample_create_index():
17001702
on the ``request`` instance; if ``request`` is provided, this
17011703
should not be set.
17021704
index_id (str):
1703-
Required. Id of the requesting object If auto-generating
1704-
Id server-side, remove this field and index_id from the
1705-
method_signature of Create RPC
1705+
Required. ID of the Index to create. The id must be 1-63
1706+
characters long, and comply with RFC1035. Specifically,
1707+
it must be 1-63 characters long and match the regular
1708+
expression ``[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?``.
17061709
17071710
This corresponds to the ``index_id`` field
17081711
on the ``request`` instance; if ``request`` is provided, this

packages/google-cloud-vectorsearch/google/cloud/vectorsearch_v1beta/types/data_object_search_service.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@ class Search(proto.Message):
165165
semantic_search (google.cloud.vectorsearch_v1beta.types.SemanticSearch):
166166
A semantic search.
167167
168+
This field is a member of `oneof`_ ``search_type``.
169+
text_search (google.cloud.vectorsearch_v1beta.types.TextSearch):
170+
A text search operation.
171+
168172
This field is a member of `oneof`_ ``search_type``.
169173
"""
170174

@@ -180,6 +184,12 @@ class Search(proto.Message):
180184
oneof="search_type",
181185
message="SemanticSearch",
182186
)
187+
text_search: "TextSearch" = proto.Field(
188+
proto.MESSAGE,
189+
number=3,
190+
oneof="search_type",
191+
message="TextSearch",
192+
)
183193

184194

185195
class VectorSearch(proto.Message):
@@ -286,6 +296,10 @@ class SemanticSearch(proto.Message):
286296
output_fields (google.cloud.vectorsearch_v1beta.types.OutputFields):
287297
Optional. The fields to return in the search
288298
results.
299+
filter (google.protobuf.struct_pb2.Struct):
300+
Optional. A JSON filter expression, e.g.
301+
{"genre": {"$eq": "sci-fi"}}, represented as a
302+
google.protobuf.Struct.
289303
top_k (int):
290304
Optional. The number of data objects to
291305
return.
@@ -311,6 +325,11 @@ class SemanticSearch(proto.Message):
311325
number=3,
312326
message="OutputFields",
313327
)
328+
filter: struct_pb2.Struct = proto.Field(
329+
proto.MESSAGE,
330+
number=6,
331+
message=struct_pb2.Struct,
332+
)
314333
top_k: int = proto.Field(
315334
proto.INT32,
316335
number=4,

packages/google-cloud-vectorsearch/google/cloud/vectorsearch_v1beta/types/vectorsearch_service.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,12 @@ class Collection(proto.Message):
7676
vector_schema (MutableMapping[str, google.cloud.vectorsearch_v1beta.types.VectorField]):
7777
Optional. Schema for vector fields. Only
7878
vector fields in this schema will be searchable.
79+
Field names must contain only alphanumeric
80+
characters, underscores, and hyphens.
7981
data_schema (google.protobuf.struct_pb2.Struct):
8082
Optional. JSON Schema for data.
83+
Field names must contain only alphanumeric
84+
characters, underscores, and hyphens.
8185
"""
8286

8387
name: str = proto.Field(
@@ -285,9 +289,10 @@ class CreateCollectionRequest(proto.Message):
285289
parent (str):
286290
Required. Value for parent.
287291
collection_id (str):
288-
Required. Id of the requesting object If auto-generating Id
289-
server-side, remove this field and collection_id from the
290-
method_signature of Create RPC
292+
Required. ID of the Collection to create. The id must be
293+
1-63 characters long, and comply with RFC1035. Specifically,
294+
it must be 1-63 characters long and match the regular
295+
expression ``[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?``.
291296
collection (google.cloud.vectorsearch_v1beta.types.Collection):
292297
Required. The resource being created
293298
request_id (str):
@@ -520,9 +525,10 @@ class CreateIndexRequest(proto.Message):
520525
create the Index. Format:
521526
``projects/{project}/locations/{location}/collections/{collection}``
522527
index_id (str):
523-
Required. Id of the requesting object If auto-generating Id
524-
server-side, remove this field and index_id from the
525-
method_signature of Create RPC
528+
Required. ID of the Index to create. The id must be 1-63
529+
characters long, and comply with RFC1035. Specifically, it
530+
must be 1-63 characters long and match the regular
531+
expression ``[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?``.
526532
index (google.cloud.vectorsearch_v1beta.types.Index):
527533
Required. The resource being created
528534
request_id (str):

0 commit comments

Comments
 (0)