google-cloud-vectorsearch 0.1.0__tar.gz

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.
Files changed (63) hide show
  1. google_cloud_vectorsearch-0.1.0/LICENSE +202 -0
  2. google_cloud_vectorsearch-0.1.0/MANIFEST.in +20 -0
  3. google_cloud_vectorsearch-0.1.0/PKG-INFO +250 -0
  4. google_cloud_vectorsearch-0.1.0/README.rst +205 -0
  5. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch/__init__.py +169 -0
  6. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch/gapic_version.py +16 -0
  7. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch/py.typed +2 -0
  8. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/__init__.py +155 -0
  9. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/gapic_metadata.json +381 -0
  10. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/gapic_version.py +16 -0
  11. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/py.typed +2 -0
  12. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/__init__.py +15 -0
  13. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_search_service/__init__.py +22 -0
  14. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_search_service/async_client.py +1056 -0
  15. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_search_service/client.py +1514 -0
  16. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_search_service/pagers.py +364 -0
  17. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_search_service/transports/__init__.py +41 -0
  18. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_search_service/transports/base.py +342 -0
  19. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_search_service/transports/grpc.py +556 -0
  20. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_search_service/transports/grpc_asyncio.py +660 -0
  21. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_search_service/transports/rest.py +2057 -0
  22. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_search_service/transports/rest_base.py +481 -0
  23. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_service/__init__.py +22 -0
  24. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_service/async_client.py +1467 -0
  25. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_service/client.py +1921 -0
  26. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_service/transports/__init__.py +36 -0
  27. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_service/transports/base.py +354 -0
  28. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_service/transports/grpc.py +635 -0
  29. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_service/transports/grpc_asyncio.py +735 -0
  30. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_service/transports/rest.py +2533 -0
  31. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/data_object_service/transports/rest_base.py +633 -0
  32. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/vector_search_service/__init__.py +22 -0
  33. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/vector_search_service/async_client.py +1951 -0
  34. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/vector_search_service/client.py +2390 -0
  35. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/vector_search_service/pagers.py +355 -0
  36. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/vector_search_service/transports/__init__.py +38 -0
  37. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/vector_search_service/transports/base.py +427 -0
  38. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/vector_search_service/transports/grpc.py +740 -0
  39. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/vector_search_service/transports/grpc_asyncio.py +885 -0
  40. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/vector_search_service/transports/rest.py +3356 -0
  41. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/services/vector_search_service/transports/rest_base.py +763 -0
  42. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/types/__init__.py +132 -0
  43. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/types/common.py +47 -0
  44. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/types/data_object.py +168 -0
  45. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/types/data_object_search_service.py +846 -0
  46. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/types/data_object_service.py +237 -0
  47. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/types/embedding_config.py +110 -0
  48. google_cloud_vectorsearch-0.1.0/google/cloud/vectorsearch_v1beta/types/vectorsearch_service.py +856 -0
  49. google_cloud_vectorsearch-0.1.0/google_cloud_vectorsearch.egg-info/PKG-INFO +250 -0
  50. google_cloud_vectorsearch-0.1.0/google_cloud_vectorsearch.egg-info/SOURCES.txt +61 -0
  51. google_cloud_vectorsearch-0.1.0/google_cloud_vectorsearch.egg-info/dependency_links.txt +1 -0
  52. google_cloud_vectorsearch-0.1.0/google_cloud_vectorsearch.egg-info/not-zip-safe +1 -0
  53. google_cloud_vectorsearch-0.1.0/google_cloud_vectorsearch.egg-info/requires.txt +11 -0
  54. google_cloud_vectorsearch-0.1.0/google_cloud_vectorsearch.egg-info/top_level.txt +1 -0
  55. google_cloud_vectorsearch-0.1.0/setup.cfg +4 -0
  56. google_cloud_vectorsearch-0.1.0/setup.py +102 -0
  57. google_cloud_vectorsearch-0.1.0/tests/__init__.py +15 -0
  58. google_cloud_vectorsearch-0.1.0/tests/unit/__init__.py +15 -0
  59. google_cloud_vectorsearch-0.1.0/tests/unit/gapic/__init__.py +15 -0
  60. google_cloud_vectorsearch-0.1.0/tests/unit/gapic/vectorsearch_v1beta/__init__.py +15 -0
  61. google_cloud_vectorsearch-0.1.0/tests/unit/gapic/vectorsearch_v1beta/test_data_object_search_service.py +6189 -0
  62. google_cloud_vectorsearch-0.1.0/tests/unit/gapic/vectorsearch_v1beta/test_data_object_service.py +8415 -0
  63. google_cloud_vectorsearch-0.1.0/tests/unit/gapic/vectorsearch_v1beta/test_vector_search_service.py +11308 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,20 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2025 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ include README.rst LICENSE
17
+ recursive-include google *.py *.pyi *.json *.proto py.typed
18
+ recursive-include tests *
19
+ global-exclude *.py[co]
20
+ global-exclude __pycache__
@@ -0,0 +1,250 @@
1
+ Metadata-Version: 2.4
2
+ Name: google-cloud-vectorsearch
3
+ Version: 0.1.0
4
+ Summary: Google Cloud Vectorsearch API client library
5
+ Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-vectorsearch
6
+ Author: Google LLC
7
+ Author-email: googleapis-packages@google.com
8
+ License: Apache 2.0
9
+ Platform: Posix; MacOS X; Windows
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.7
16
+ Classifier: Programming Language :: Python :: 3.8
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Operating System :: OS Independent
24
+ Classifier: Topic :: Internet
25
+ Requires-Python: >=3.7
26
+ License-File: LICENSE
27
+ Requires-Dist: google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1
28
+ Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1
29
+ Requires-Dist: grpcio<2.0.0,>=1.33.2
30
+ Requires-Dist: grpcio<2.0.0,>=1.75.1; python_version >= "3.14"
31
+ Requires-Dist: proto-plus<2.0.0,>=1.22.3
32
+ Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
33
+ Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<7.0.0,>=3.20.2
34
+ Dynamic: author
35
+ Dynamic: author-email
36
+ Dynamic: classifier
37
+ Dynamic: description
38
+ Dynamic: home-page
39
+ Dynamic: license
40
+ Dynamic: license-file
41
+ Dynamic: platform
42
+ Dynamic: requires-dist
43
+ Dynamic: requires-python
44
+ Dynamic: summary
45
+
46
+ Python Client for Vector Search API
47
+ ===================================
48
+
49
+ |preview| |pypi| |versions|
50
+
51
+ `Vector Search API`_: The Vector Search API provides a fully-managed, highly performant, and
52
+ scalable vector database designed to power next-generation search,
53
+ recommendation, and generative AI applications. It allows you to store,
54
+ index, and query your data and its corresponding vector embeddings through
55
+ a simple, intuitive interface. With Vector Search, you can define custom
56
+ schemas for your data, insert objects with associated metadata,
57
+ automatically generate embeddings from your data, and perform fast
58
+ approximate nearest neighbor (ANN) searches to find semantically similar
59
+ items at scale.
60
+
61
+ - `Client Library Documentation`_
62
+ - `Product Documentation`_
63
+
64
+ .. |preview| image:: https://img.shields.io/badge/support-preview-orange.svg
65
+ :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels
66
+ .. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-vectorsearch.svg
67
+ :target: https://pypi.org/project/google-cloud-vectorsearch/
68
+ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-vectorsearch.svg
69
+ :target: https://pypi.org/project/google-cloud-vectorsearch/
70
+ .. _Vector Search API: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
71
+ .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/google-cloud-vectorsearch/latest/summary_overview
72
+ .. _Product Documentation: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
73
+
74
+ Quick Start
75
+ -----------
76
+
77
+ In order to use this library, you first need to go through the following steps:
78
+
79
+ 1. `Select or create a Cloud Platform project.`_
80
+ 2. `Enable billing for your project.`_
81
+ 3. `Enable the Vector Search API.`_
82
+ 4. `Set up Authentication.`_
83
+
84
+ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
85
+ .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
86
+ .. _Enable the Vector Search API.: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
87
+ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
88
+
89
+ Installation
90
+ ~~~~~~~~~~~~
91
+
92
+ Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
93
+ creates isolated Python environments. These isolated environments can have separate
94
+ versions of Python packages, which allows you to isolate one project's dependencies
95
+ from the dependencies of other projects.
96
+
97
+ With `venv`_, it's possible to install this library without needing system
98
+ install permissions, and without clashing with the installed system
99
+ dependencies.
100
+
101
+ .. _`venv`: https://docs.python.org/3/library/venv.html
102
+
103
+
104
+ Code samples and snippets
105
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
106
+
107
+ Code samples and snippets live in the `samples/`_ folder.
108
+
109
+ .. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-vectorsearch/samples
110
+
111
+
112
+ Supported Python Versions
113
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
114
+ Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
115
+ Python.
116
+
117
+ Python >= 3.7, including 3.14
118
+
119
+ .. _active: https://devguide.python.org/devcycle/#in-development-main-branch
120
+ .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
121
+
122
+ Unsupported Python Versions
123
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
124
+ Python <= 3.6
125
+
126
+ If you are using an `end-of-life`_
127
+ version of Python, we recommend that you update as soon as possible to an actively supported version.
128
+
129
+ .. _end-of-life: https://devguide.python.org/devcycle/#end-of-life-branches
130
+
131
+ Mac/Linux
132
+ ^^^^^^^^^
133
+
134
+ .. code-block:: console
135
+
136
+ python3 -m venv <your-env>
137
+ source <your-env>/bin/activate
138
+ pip install google-cloud-vectorsearch
139
+
140
+
141
+ Windows
142
+ ^^^^^^^
143
+
144
+ .. code-block:: console
145
+
146
+ py -m venv <your-env>
147
+ .\<your-env>\Scripts\activate
148
+ pip install google-cloud-vectorsearch
149
+
150
+ Next Steps
151
+ ~~~~~~~~~~
152
+
153
+ - Read the `Client Library Documentation`_ for Vector Search API
154
+ to see other available methods on the client.
155
+ - Read the `Vector Search API Product documentation`_ to learn
156
+ more about the product and see How-to Guides.
157
+ - View this `README`_ to see the full list of Cloud
158
+ APIs that we cover.
159
+
160
+ .. _Vector Search API Product documentation: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
161
+ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
162
+
163
+ Logging
164
+ -------
165
+
166
+ This library uses the standard Python :code:`logging` functionality to log some RPC events that could be of interest for debugging and monitoring purposes.
167
+ Note the following:
168
+
169
+ #. Logs may contain sensitive information. Take care to **restrict access to the logs** if they are saved, whether it be on local storage or on Google Cloud Logging.
170
+ #. Google may refine the occurrence, level, and content of various log messages in this library without flagging such changes as breaking. **Do not depend on immutability of the logging events**.
171
+ #. By default, the logging events from this library are not handled. You must **explicitly configure log handling** using one of the mechanisms below.
172
+
173
+ Simple, environment-based configuration
174
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
175
+
176
+ To enable logging for this library without any changes in your code, set the :code:`GOOGLE_SDK_PYTHON_LOGGING_SCOPE` environment variable to a valid Google
177
+ logging scope. This configures handling of logging events (at level :code:`logging.DEBUG` or higher) from this library in a default manner, emitting the logged
178
+ messages in a structured format. It does not currently allow customizing the logging levels captured nor the handlers, formatters, etc. used for any logging
179
+ event.
180
+
181
+ A logging scope is a period-separated namespace that begins with :code:`google`, identifying the Python module or package to log.
182
+
183
+ - Valid logging scopes: :code:`google`, :code:`google.cloud.asset.v1`, :code:`google.api`, :code:`google.auth`, etc.
184
+ - Invalid logging scopes: :code:`foo`, :code:`123`, etc.
185
+
186
+ **NOTE**: If the logging scope is invalid, the library does not set up any logging handlers.
187
+
188
+ Environment-Based Examples
189
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
190
+
191
+ - Enabling the default handler for all Google-based loggers
192
+
193
+ .. code-block:: console
194
+
195
+ export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google
196
+
197
+ - Enabling the default handler for a specific Google module (for a client library called :code:`library_v1`):
198
+
199
+ .. code-block:: console
200
+
201
+ export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google.cloud.library_v1
202
+
203
+
204
+ Advanced, code-based configuration
205
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
206
+
207
+ You can also configure a valid logging scope using Python's standard `logging` mechanism.
208
+
209
+ Code-Based Examples
210
+ ^^^^^^^^^^^^^^^^^^^
211
+
212
+ - Configuring a handler for all Google-based loggers
213
+
214
+ .. code-block:: python
215
+
216
+ import logging
217
+
218
+ from google.cloud import library_v1
219
+
220
+ base_logger = logging.getLogger("google")
221
+ base_logger.addHandler(logging.StreamHandler())
222
+ base_logger.setLevel(logging.DEBUG)
223
+
224
+ - Configuring a handler for a specific Google module (for a client library called :code:`library_v1`):
225
+
226
+ .. code-block:: python
227
+
228
+ import logging
229
+
230
+ from google.cloud import library_v1
231
+
232
+ base_logger = logging.getLogger("google.cloud.library_v1")
233
+ base_logger.addHandler(logging.StreamHandler())
234
+ base_logger.setLevel(logging.DEBUG)
235
+
236
+ Logging details
237
+ ~~~~~~~~~~~~~~~
238
+
239
+ #. Regardless of which of the mechanisms above you use to configure logging for this library, by default logging events are not propagated up to the root
240
+ logger from the `google`-level logger. If you need the events to be propagated to the root logger, you must explicitly set
241
+ :code:`logging.getLogger("google").propagate = True` in your code.
242
+ #. You can mix the different logging configurations above for different Google modules. For example, you may want use a code-based logging configuration for
243
+ one library, but decide you need to also set up environment-based logging configuration for another library.
244
+
245
+ #. If you attempt to use both code-based and environment-based configuration for the same module, the environment-based configuration will be ineffectual
246
+ if the code -based configuration gets applied first.
247
+
248
+ #. The Google-specific logging configurations (default handlers for environment-based configuration; not propagating logging events to the root logger) get
249
+ executed the first time *any* client library is instantiated in your application, and only if the affected loggers have not been previously configured.
250
+ (This is the reason for 2.i. above.)
@@ -0,0 +1,205 @@
1
+ Python Client for Vector Search API
2
+ ===================================
3
+
4
+ |preview| |pypi| |versions|
5
+
6
+ `Vector Search API`_: The Vector Search API provides a fully-managed, highly performant, and
7
+ scalable vector database designed to power next-generation search,
8
+ recommendation, and generative AI applications. It allows you to store,
9
+ index, and query your data and its corresponding vector embeddings through
10
+ a simple, intuitive interface. With Vector Search, you can define custom
11
+ schemas for your data, insert objects with associated metadata,
12
+ automatically generate embeddings from your data, and perform fast
13
+ approximate nearest neighbor (ANN) searches to find semantically similar
14
+ items at scale.
15
+
16
+ - `Client Library Documentation`_
17
+ - `Product Documentation`_
18
+
19
+ .. |preview| image:: https://img.shields.io/badge/support-preview-orange.svg
20
+ :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#stability-levels
21
+ .. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-vectorsearch.svg
22
+ :target: https://pypi.org/project/google-cloud-vectorsearch/
23
+ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-vectorsearch.svg
24
+ :target: https://pypi.org/project/google-cloud-vectorsearch/
25
+ .. _Vector Search API: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
26
+ .. _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
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ In order to use this library, you first need to go through the following steps:
33
+
34
+ 1. `Select or create a Cloud Platform project.`_
35
+ 2. `Enable billing for your project.`_
36
+ 3. `Enable the Vector Search API.`_
37
+ 4. `Set up Authentication.`_
38
+
39
+ .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
40
+ .. _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
42
+ .. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
43
+
44
+ Installation
45
+ ~~~~~~~~~~~~
46
+
47
+ Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
48
+ creates isolated Python environments. These isolated environments can have separate
49
+ versions of Python packages, which allows you to isolate one project's dependencies
50
+ from the dependencies of other projects.
51
+
52
+ With `venv`_, it's possible to install this library without needing system
53
+ install permissions, and without clashing with the installed system
54
+ dependencies.
55
+
56
+ .. _`venv`: https://docs.python.org/3/library/venv.html
57
+
58
+
59
+ Code samples and snippets
60
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
61
+
62
+ Code samples and snippets live in the `samples/`_ folder.
63
+
64
+ .. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-vectorsearch/samples
65
+
66
+
67
+ Supported Python Versions
68
+ ^^^^^^^^^^^^^^^^^^^^^^^^^
69
+ Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
70
+ Python.
71
+
72
+ Python >= 3.7, including 3.14
73
+
74
+ .. _active: https://devguide.python.org/devcycle/#in-development-main-branch
75
+ .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches
76
+
77
+ Unsupported Python Versions
78
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
79
+ Python <= 3.6
80
+
81
+ If you are using an `end-of-life`_
82
+ version of Python, we recommend that you update as soon as possible to an actively supported version.
83
+
84
+ .. _end-of-life: https://devguide.python.org/devcycle/#end-of-life-branches
85
+
86
+ Mac/Linux
87
+ ^^^^^^^^^
88
+
89
+ .. code-block:: console
90
+
91
+ python3 -m venv <your-env>
92
+ source <your-env>/bin/activate
93
+ pip install google-cloud-vectorsearch
94
+
95
+
96
+ Windows
97
+ ^^^^^^^
98
+
99
+ .. code-block:: console
100
+
101
+ py -m venv <your-env>
102
+ .\<your-env>\Scripts\activate
103
+ pip install google-cloud-vectorsearch
104
+
105
+ Next Steps
106
+ ~~~~~~~~~~
107
+
108
+ - Read the `Client Library Documentation`_ for Vector Search API
109
+ to see other available methods on the client.
110
+ - Read the `Vector Search API Product documentation`_ to learn
111
+ more about the product and see How-to Guides.
112
+ - View this `README`_ to see the full list of Cloud
113
+ APIs that we cover.
114
+
115
+ .. _Vector Search API Product documentation: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview
116
+ .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
117
+
118
+ Logging
119
+ -------
120
+
121
+ This library uses the standard Python :code:`logging` functionality to log some RPC events that could be of interest for debugging and monitoring purposes.
122
+ Note the following:
123
+
124
+ #. Logs may contain sensitive information. Take care to **restrict access to the logs** if they are saved, whether it be on local storage or on Google Cloud Logging.
125
+ #. Google may refine the occurrence, level, and content of various log messages in this library without flagging such changes as breaking. **Do not depend on immutability of the logging events**.
126
+ #. By default, the logging events from this library are not handled. You must **explicitly configure log handling** using one of the mechanisms below.
127
+
128
+ Simple, environment-based configuration
129
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
130
+
131
+ To enable logging for this library without any changes in your code, set the :code:`GOOGLE_SDK_PYTHON_LOGGING_SCOPE` environment variable to a valid Google
132
+ logging scope. This configures handling of logging events (at level :code:`logging.DEBUG` or higher) from this library in a default manner, emitting the logged
133
+ messages in a structured format. It does not currently allow customizing the logging levels captured nor the handlers, formatters, etc. used for any logging
134
+ event.
135
+
136
+ A logging scope is a period-separated namespace that begins with :code:`google`, identifying the Python module or package to log.
137
+
138
+ - Valid logging scopes: :code:`google`, :code:`google.cloud.asset.v1`, :code:`google.api`, :code:`google.auth`, etc.
139
+ - Invalid logging scopes: :code:`foo`, :code:`123`, etc.
140
+
141
+ **NOTE**: If the logging scope is invalid, the library does not set up any logging handlers.
142
+
143
+ Environment-Based Examples
144
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
145
+
146
+ - Enabling the default handler for all Google-based loggers
147
+
148
+ .. code-block:: console
149
+
150
+ export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google
151
+
152
+ - Enabling the default handler for a specific Google module (for a client library called :code:`library_v1`):
153
+
154
+ .. code-block:: console
155
+
156
+ export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google.cloud.library_v1
157
+
158
+
159
+ Advanced, code-based configuration
160
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
161
+
162
+ You can also configure a valid logging scope using Python's standard `logging` mechanism.
163
+
164
+ Code-Based Examples
165
+ ^^^^^^^^^^^^^^^^^^^
166
+
167
+ - Configuring a handler for all Google-based loggers
168
+
169
+ .. code-block:: python
170
+
171
+ import logging
172
+
173
+ from google.cloud import library_v1
174
+
175
+ base_logger = logging.getLogger("google")
176
+ base_logger.addHandler(logging.StreamHandler())
177
+ base_logger.setLevel(logging.DEBUG)
178
+
179
+ - Configuring a handler for a specific Google module (for a client library called :code:`library_v1`):
180
+
181
+ .. code-block:: python
182
+
183
+ import logging
184
+
185
+ from google.cloud import library_v1
186
+
187
+ base_logger = logging.getLogger("google.cloud.library_v1")
188
+ base_logger.addHandler(logging.StreamHandler())
189
+ base_logger.setLevel(logging.DEBUG)
190
+
191
+ Logging details
192
+ ~~~~~~~~~~~~~~~
193
+
194
+ #. Regardless of which of the mechanisms above you use to configure logging for this library, by default logging events are not propagated up to the root
195
+ logger from the `google`-level logger. If you need the events to be propagated to the root logger, you must explicitly set
196
+ :code:`logging.getLogger("google").propagate = True` in your code.
197
+ #. You can mix the different logging configurations above for different Google modules. For example, you may want use a code-based logging configuration for
198
+ one library, but decide you need to also set up environment-based logging configuration for another library.
199
+
200
+ #. If you attempt to use both code-based and environment-based configuration for the same module, the environment-based configuration will be ineffectual
201
+ if the code -based configuration gets applied first.
202
+
203
+ #. The Google-specific logging configurations (default handlers for environment-based configuration; not propagating logging events to the root logger) get
204
+ executed the first time *any* client library is instantiated in your application, and only if the affected loggers have not been previously configured.
205
+ (This is the reason for 2.i. above.)