diff --git a/pinecone/core/client/__init__.py b/pinecone/core/client/__init__.py index 5f097c887..e8fca91d5 100644 --- a/pinecone/core/client/__init__.py +++ b/pinecone/core/client/__init__.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + # flake8: noqa diff --git a/pinecone/core/client/api/__init__.py b/pinecone/core/client/api/__init__.py index 94a4e5e44..021430cda 100644 --- a/pinecone/core/client/api/__init__.py +++ b/pinecone/core/client/api/__init__.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + # do not import all apis into this module because that uses a lot of memory and stack frames # if you need the ability to import all apis from one package, import them with diff --git a/pinecone/core/client/api/index_operations_api.py b/pinecone/core/client/api/index_operations_api.py index 9d223e325..fa2f28566 100644 --- a/pinecone/core/client/api/index_operations_api.py +++ b/pinecone/core/client/api/index_operations_api.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/api/vector_operations_api.py b/pinecone/core/client/api/vector_operations_api.py index 249f55f84..8c35af445 100644 --- a/pinecone/core/client/api/vector_operations_api.py +++ b/pinecone/core/client/api/vector_operations_api.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API @@ -409,7 +409,7 @@ def __fetch( ): """Fetch # noqa: E501 - The `Fetch` operation looks up and returns vectors, by id, from a single namespace. The returned vectors include the vector data and/or metadata. # noqa: E501 + The `Fetch` operation looks up and returns vectors, by ID, from a single namespace. The returned vectors include the vector data and/or metadata. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -417,7 +417,7 @@ def __fetch( >>> result = thread.get() Args: - ids ([str]): The vector ids to fetch. + ids ([str]): The vector IDs to fetch. Does not accept values containing spaces. Keyword Args: namespace (str): [optional] diff --git a/pinecone/core/client/api_client.py b/pinecone/core/client/api_client.py index f44f8748d..d2342038a 100644 --- a/pinecone/core/client/api_client.py +++ b/pinecone/core/client/api_client.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/apis/__init__.py b/pinecone/core/client/apis/__init__.py index 401150f86..8b1e34dc0 100644 --- a/pinecone/core/client/apis/__init__.py +++ b/pinecone/core/client/apis/__init__.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + # flake8: noqa diff --git a/pinecone/core/client/configuration.py b/pinecone/core/client/configuration.py index cc97b99e3..0558d8509 100644 --- a/pinecone/core/client/configuration.py +++ b/pinecone/core/client/configuration.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/exceptions.py b/pinecone/core/client/exceptions.py index ee18e5e5f..a94fe8878 100644 --- a/pinecone/core/client/exceptions.py +++ b/pinecone/core/client/exceptions.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/__init__.py b/pinecone/core/client/model/__init__.py index cb0937a91..40de4eb03 100644 --- a/pinecone/core/client/model/__init__.py +++ b/pinecone/core/client/model/__init__.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + # we can not import model classes here because that would create a circular # reference which would not work in python2 diff --git a/pinecone/core/client/model/approximated_config.py b/pinecone/core/client/model/approximated_config.py index fd5586c55..349f929b1 100644 --- a/pinecone/core/client/model/approximated_config.py +++ b/pinecone/core/client/model/approximated_config.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/create_request.py b/pinecone/core/client/model/create_request.py index b5a50f0c4..8f91638c4 100644 --- a/pinecone/core/client/model/create_request.py +++ b/pinecone/core/client/model/create_request.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API @@ -168,7 +168,7 @@ def _from_openapi_data(cls, name, dimension, *args, **kwargs): # noqa: E501 shards (int): The number of shards to be used in the index.. [optional] if omitted the server will use the default value of 1 # noqa: E501 pod_type (str): The type of pod to use. One of 's1' or 'p1'.. [optional] if omitted the server will use the default value of "p1" # noqa: E501 index_config (dict): [optional] # noqa: E501 - metadata_config ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Configuration for the behavior of Pinecone's internal metadata index. [optional] # noqa: E501 + metadata_config ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Configuration for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when `metadata_config` is present, only specified metadata fields are indexed. To specify metadata fields to index, provide a JSON object of the following form: ``` {\"indexed\": [\"example_metadata_field\"] ``` . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -263,7 +263,7 @@ def __init__(self, name, dimension, *args, **kwargs): # noqa: E501 shards (int): The number of shards to be used in the index.. [optional] if omitted the server will use the default value of 1 # noqa: E501 pod_type (str): The type of pod to use. One of 's1' or 'p1'.. [optional] if omitted the server will use the default value of "p1" # noqa: E501 index_config (dict): [optional] # noqa: E501 - metadata_config ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Configuration for the behavior of Pinecone's internal metadata index. [optional] # noqa: E501 + metadata_config ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): Configuration for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when `metadata_config` is present, only specified metadata fields are indexed. To specify metadata fields to index, provide a JSON object of the following form: ``` {\"indexed\": [\"example_metadata_field\"] ``` . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/pinecone/core/client/model/delete_request.py b/pinecone/core/client/model/delete_request.py index 2e21118c1..73af2bab2 100644 --- a/pinecone/core/client/model/delete_request.py +++ b/pinecone/core/client/model/delete_request.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API @@ -150,7 +150,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ids ([str]): Vectors to delete.. [optional] # noqa: E501 delete_all (bool): This indicates that all vectors in the index namespace should be deleted.. [optional] if omitted the server will use the default value of False # noqa: E501 namespace (str): The namespace to delete vectors from, if applicable.. [optional] # noqa: E501 - filter ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive with specifying ids to delete in the ids param or using delete_all=True. See https://www.pinecone.io/docs/metadata-filtering/`.. [optional] # noqa: E501 + filter ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive with specifying ids to delete in the ids param or using delete_all=True. See https://www.pinecone.io/docs/metadata-filtering/.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -235,7 +235,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 ids ([str]): Vectors to delete.. [optional] # noqa: E501 delete_all (bool): This indicates that all vectors in the index namespace should be deleted.. [optional] if omitted the server will use the default value of False # noqa: E501 namespace (str): The namespace to delete vectors from, if applicable.. [optional] # noqa: E501 - filter ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive with specifying ids to delete in the ids param or using delete_all=True. See https://www.pinecone.io/docs/metadata-filtering/`.. [optional] # noqa: E501 + filter ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive with specifying ids to delete in the ids param or using delete_all=True. See https://www.pinecone.io/docs/metadata-filtering/.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/pinecone/core/client/model/describe_index_stats_response.py b/pinecone/core/client/model/describe_index_stats_response.py index c3131cc76..8d2dc5389 100644 --- a/pinecone/core/client/model/describe_index_stats_response.py +++ b/pinecone/core/client/model/describe_index_stats_response.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API @@ -151,7 +151,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) namespaces ({str: (NamespaceSummary,)}): A mapping for each namespace in the index from namespace name to a summary of its contents.. [optional] # noqa: E501 dimension (int): The dimension of the indexed vectors.. [optional] # noqa: E501 - index_fullness (float): The fullness of the index.. [optional] # noqa: E501 + index_fullness (float): The fullness of the index. The granularity of this metric is 10%.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -235,7 +235,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) namespaces ({str: (NamespaceSummary,)}): A mapping for each namespace in the index from namespace name to a summary of its contents.. [optional] # noqa: E501 dimension (int): The dimension of the indexed vectors.. [optional] # noqa: E501 - index_fullness (float): The fullness of the index.. [optional] # noqa: E501 + index_fullness (float): The fullness of the index. The granularity of this metric is 10%.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/pinecone/core/client/model/fetch_response.py b/pinecone/core/client/model/fetch_response.py index e1a1c6e0e..73957a8cb 100644 --- a/pinecone/core/client/model/fetch_response.py +++ b/pinecone/core/client/model/fetch_response.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/hnsw_config.py b/pinecone/core/client/model/hnsw_config.py index 82b61d451..333da9d8c 100644 --- a/pinecone/core/client/model/hnsw_config.py +++ b/pinecone/core/client/model/hnsw_config.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/index_meta.py b/pinecone/core/client/model/index_meta.py index ff650b914..4cda1e5fe 100644 --- a/pinecone/core/client/model/index_meta.py +++ b/pinecone/core/client/model/index_meta.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/index_meta_database.py b/pinecone/core/client/model/index_meta_database.py index 4baf55557..d744336a3 100644 --- a/pinecone/core/client/model/index_meta_database.py +++ b/pinecone/core/client/model/index_meta_database.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/index_meta_database_status.py b/pinecone/core/client/model/index_meta_database_status.py index e3453d8c3..9df738128 100644 --- a/pinecone/core/client/model/index_meta_database_status.py +++ b/pinecone/core/client/model/index_meta_database_status.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/namespace_summary.py b/pinecone/core/client/model/namespace_summary.py index e63295ca0..d2c707d01 100644 --- a/pinecone/core/client/model/namespace_summary.py +++ b/pinecone/core/client/model/namespace_summary.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/patch_request.py b/pinecone/core/client/model/patch_request.py index 671aa9f55..7e72d7efa 100644 --- a/pinecone/core/client/model/patch_request.py +++ b/pinecone/core/client/model/patch_request.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/protobuf_any.py b/pinecone/core/client/model/protobuf_any.py index 0db5594e1..3580543a1 100644 --- a/pinecone/core/client/model/protobuf_any.py +++ b/pinecone/core/client/model/protobuf_any.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/protobuf_null_value.py b/pinecone/core/client/model/protobuf_null_value.py index 27ce33c19..cf56cefa4 100644 --- a/pinecone/core/client/model/protobuf_null_value.py +++ b/pinecone/core/client/model/protobuf_null_value.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/query_request.py b/pinecone/core/client/model/query_request.py index c69497fb0..5cbc8feb4 100644 --- a/pinecone/core/client/model/query_request.py +++ b/pinecone/core/client/model/query_request.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API @@ -177,9 +177,9 @@ def _from_openapi_data(cls, top_k, *args, **kwargs): # noqa: E501 filter ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The filter to apply. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/.. [optional] # noqa: E501 include_values (bool): Indicates whether vector values are included in the response.. [optional] if omitted the server will use the default value of False # noqa: E501 include_metadata (bool): Indicates whether metadata is included in the response as well as the ids.. [optional] if omitted the server will use the default value of False # noqa: E501 - queries ([QueryVector]): DEPRECATED. The query vectors.. [optional] # noqa: E501 - vector ([float]): The query vector. This should be the same length as the dimension of the index being queried.. [optional] # noqa: E501 - id (str): The vector's unique id.. [optional] # noqa: E501 + queries ([QueryVector]): DEPRECATED. The query vectors. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.. [optional] # noqa: E501 + vector ([float]): The query vector. This should be the same length as the dimension of the index being queried. Each `query()` request can contain only one of the parameters `id` or `vector`.. [optional] # noqa: E501 + id (str): The unique ID of the vector to be used as a query vector. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -269,9 +269,9 @@ def __init__(self, top_k, *args, **kwargs): # noqa: E501 filter ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The filter to apply. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/.. [optional] # noqa: E501 include_values (bool): Indicates whether vector values are included in the response.. [optional] if omitted the server will use the default value of False # noqa: E501 include_metadata (bool): Indicates whether metadata is included in the response as well as the ids.. [optional] if omitted the server will use the default value of False # noqa: E501 - queries ([QueryVector]): DEPRECATED. The query vectors.. [optional] # noqa: E501 - vector ([float]): The query vector. This should be the same length as the dimension of the index being queried.. [optional] # noqa: E501 - id (str): The vector's unique id.. [optional] # noqa: E501 + queries ([QueryVector]): DEPRECATED. The query vectors. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.. [optional] # noqa: E501 + vector ([float]): The query vector. This should be the same length as the dimension of the index being queried. Each `query()` request can contain only one of the parameters `id` or `vector`.. [optional] # noqa: E501 + id (str): The unique ID of the vector to be used as a query vector. Each `query()` request can contain only one of the parameters `queries`, `vector`, or `id`.. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/pinecone/core/client/model/query_response.py b/pinecone/core/client/model/query_response.py index d476dd77c..5023ce286 100644 --- a/pinecone/core/client/model/query_response.py +++ b/pinecone/core/client/model/query_response.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/query_vector.py b/pinecone/core/client/model/query_vector.py index 46976f561..81cc6e632 100644 --- a/pinecone/core/client/model/query_vector.py +++ b/pinecone/core/client/model/query_vector.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/rpc_status.py b/pinecone/core/client/model/rpc_status.py index 65aeeaccf..ad0ccf827 100644 --- a/pinecone/core/client/model/rpc_status.py +++ b/pinecone/core/client/model/rpc_status.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/scored_vector.py b/pinecone/core/client/model/scored_vector.py index 71ca84529..4c050ddcf 100644 --- a/pinecone/core/client/model/scored_vector.py +++ b/pinecone/core/client/model/scored_vector.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/single_query_results.py b/pinecone/core/client/model/single_query_results.py index d5b884579..ad0e42c59 100644 --- a/pinecone/core/client/model/single_query_results.py +++ b/pinecone/core/client/model/single_query_results.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/update_request.py b/pinecone/core/client/model/update_request.py index cbcab0343..a0adba8e2 100644 --- a/pinecone/core/client/model/update_request.py +++ b/pinecone/core/client/model/update_request.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/upsert_request.py b/pinecone/core/client/model/upsert_request.py index aa9ffbaf6..3dbd72432 100644 --- a/pinecone/core/client/model/upsert_request.py +++ b/pinecone/core/client/model/upsert_request.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/upsert_response.py b/pinecone/core/client/model/upsert_response.py index 781c2e5bb..e7baeeb88 100644 --- a/pinecone/core/client/model/upsert_response.py +++ b/pinecone/core/client/model/upsert_response.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model/vector.py b/pinecone/core/client/model/vector.py index cd428c3c4..7c1bff0d8 100644 --- a/pinecone/core/client/model/vector.py +++ b/pinecone/core/client/model/vector.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/model_utils.py b/pinecone/core/client/model_utils.py index d9f36f885..40f8d2fa5 100644 --- a/pinecone/core/client/model_utils.py +++ b/pinecone/core/client/model_utils.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/client/models/__init__.py b/pinecone/core/client/models/__init__.py index 64914b494..2b10e7808 100644 --- a/pinecone/core/client/models/__init__.py +++ b/pinecone/core/client/models/__init__.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + # flake8: noqa diff --git a/pinecone/core/client/rest.py b/pinecone/core/client/rest.py index d017b3566..25cecf2d5 100644 --- a/pinecone/core/client/rest.py +++ b/pinecone/core/client/rest.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + """ Pinecone API diff --git a/pinecone/core/grpc/protos/vector_service_pb2.py b/pinecone/core/grpc/protos/vector_service_pb2.py index a488b451e..e417d49e0 100644 --- a/pinecone/core/grpc/protos/vector_service_pb2.py +++ b/pinecone/core/grpc/protos/vector_service_pb2.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! @@ -18,7 +18,6 @@ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 -from google.rpc import error_details_pb2 as google_dot_rpc_dot_error__details__pb2 from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 @@ -28,9 +27,9 @@ syntax='proto3', serialized_options=b'\n\021io.pinecone.protoP\001Z/github.com/pinecone-io/new-go-pinecone/pinecone\222A\366\002\022K\n\014Pinecone API\";\n\017Pinecone.io Ops\022\023https://pinecone.io\032\023support@pinecone.io\0329{index_name}-{project_name}.svc.{environment}.pinecone.io*\001\0022\020application/json:\020application/jsonZx\nv\n\nApiKeyAuth\022h\010\002\022YAn API Key is required to call Pinecone APIs. Get yours at https://www.pinecone.io/start/\032\007Api-Key \002b\020\n\016\n\nApiKeyAuth\022\000r9\n\031More Pinecone.io API docs\022\034https://www.pinecone.io/docs', create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x14vector_service.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1egoogle/rpc/error_details.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xd7\x01\n\x06Vector\x12,\n\x02id\x18\x01 \x01(\tB \x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe0\x41\x02\x12G\n\x06values\x18\x02 \x03(\x02\x42\x37\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\xe0\x41\x02\x12V\n\x08metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\"\xed\x01\n\x0cScoredVector\x12,\n\x02id\x18\x01 \x01(\tB \x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe0\x41\x02\x12\x18\n\x05score\x18\x02 \x01(\x02\x42\t\x92\x41\x06J\x04\x30.08\x12=\n\x06values\x18\x03 \x03(\x02\x42-\x92\x41*J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]\x12V\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\"d\n\rUpsertRequest\x12&\n\x07vectors\x18\x01 \x03(\x0b\x32\x07.VectorB\x0c\x92\x41\x06x\xe8\x07\x80\x01\x01\xe0\x41\x02\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"1\n\x0eUpsertResponse\x12\x1f\n\x0eupserted_count\x18\x01 \x01(\rB\x07\x92\x41\x04J\x02\x31\x30\"\xb6\x01\n\rDeleteRequest\x12(\n\x03ids\x18\x01 \x03(\tB\x1b\x92\x41\x18J\x10[\"id-0\", \"id-1\"]x\xe8\x07\x80\x01\x01\x12%\n\ndelete_all\x18\x02 \x01(\x08\x42\x11\x92\x41\x0e:\x05\x66\x61lseJ\x05\x66\x61lse\x12+\n\tnamespace\x18\x03 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12\'\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x10\n\x0e\x44\x65leteResponse\"h\n\x0c\x46\x65tchRequest\x12+\n\x03ids\x18\x01 \x03(\tB\x1e\x92\x41\x18J\x10[\"id-0\", \"id-1\"]x\xe8\x07\x80\x01\x01\xe0\x41\x02\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"\xa3\x01\n\rFetchResponse\x12,\n\x07vectors\x18\x01 \x03(\x0b\x32\x1b.FetchResponse.VectorsEntry\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x1a\x37\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x16\n\x05value\x18\x02 \x01(\x0b\x32\x07.Vector:\x02\x38\x01\"\xaa\x02\n\x0bQueryVector\x12G\n\x06values\x18\x01 \x03(\x02\x42\x37\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\xe0\x41\x02\x12(\n\x05top_k\x18\x02 \x01(\rB\x19\x92\x41\x16J\x02\x31\x30Y\x00\x00\x00\x00\x00\x88\xc3@i\x00\x00\x00\x00\x00\x00\xf0?\x12+\n\tnamespace\x18\x03 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12{\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructBR\x92\x41OJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}\"\xd4\x03\n\x0cQueryRequest\x12+\n\tnamespace\x18\x01 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12+\n\x05top_k\x18\x02 \x01(\rB\x1c\x92\x41\x16J\x02\x31\x30Y\x00\x00\x00\x00\x00\x88\xc3@i\x00\x00\x00\x00\x00\x00\xf0?\xe0\x41\x02\x12{\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructBR\x92\x41OJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}\x12(\n\x0einclude_values\x18\x04 \x01(\x08\x42\x10\x92\x41\r:\x05\x66\x61lseJ\x04true\x12*\n\x10include_metadata\x18\x05 \x01(\x08\x42\x10\x92\x41\r:\x05\x66\x61lseJ\x04true\x12)\n\x07queries\x18\x06 \x03(\x0b\x32\x0c.QueryVectorB\n\x18\x01\x92\x41\x05x\n\x80\x01\x01\x12\x44\n\x06vector\x18\x07 \x03(\x02\x42\x34\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\x12&\n\x02id\x18\x08 \x01(\tB\x1a\x92\x41\x17J\x12\"example-vector-1\"x\x80\x04\"a\n\x12SingleQueryResults\x12\x1e\n\x07matches\x18\x01 \x03(\x0b\x32\r.ScoredVector\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"l\n\rQueryResponse\x12(\n\x07results\x18\x01 \x03(\x0b\x32\x13.SingleQueryResultsB\x02\x18\x01\x12\x1e\n\x07matches\x18\x02 \x03(\x0b\x32\r.ScoredVector\x12\x11\n\tnamespace\x18\x03 \x01(\t\"\x8c\x02\n\rUpdateRequest\x12,\n\x02id\x18\x01 \x01(\tB \x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe0\x41\x02\x12\x44\n\x06values\x18\x02 \x03(\x02\x42\x34\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\x12Z\n\x0cset_metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\x12+\n\tnamespace\x18\x04 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"\x10\n\x0eUpdateResponse\"\x1b\n\x19\x44\x65scribeIndexStatsRequest\"4\n\x10NamespaceSummary\x12 \n\x0cvector_count\x18\x01 \x01(\rB\n\x92\x41\x07J\x05\x35\x30\x30\x30\x30\"\xf4\x02\n\x1a\x44\x65scribeIndexStatsResponse\x12?\n\nnamespaces\x18\x01 \x03(\x0b\x32+.DescribeIndexStatsResponse.NamespacesEntry\x12\x1c\n\tdimension\x18\x02 \x01(\rB\t\x92\x41\x06J\x04\x31\x30\x32\x34\x12!\n\x0eindex_fullness\x18\x03 \x01(\x02\x42\t\x92\x41\x06J\x04\x30.42\x1a\x44\n\x0fNamespacesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12 \n\x05value\x18\x02 \x01(\x0b\x32\x11.NamespaceSummary:\x02\x38\x01:\x8d\x01\x92\x41\x89\x01\x32\x86\x01{\"namespaces\": {\"\": {\"vectorCount\": 50000}, \"example-namespace-2\": {\"vectorCount\": 30000}}, \"dimension\": 1024, \"index_fullness\": 0.42}2\xa1\x05\n\rVectorService\x12\x63\n\x06Upsert\x12\x0e.UpsertRequest\x1a\x0f.UpsertResponse\"8\x82\xd3\xe4\x93\x02\x14\"\x0f/vectors/upsert:\x01*\x92\x41\x1b\n\x11Vector Operations*\x06upsert\x12v\n\x06\x44\x65lete\x12\x0e.DeleteRequest\x1a\x0f.DeleteResponse\"K\x82\xd3\xe4\x93\x02\'\"\x0f/vectors/delete:\x01*Z\x11*\x0f/vectors/delete\x92\x41\x1b\n\x11Vector Operations*\x06\x64\x65lete\x12[\n\x05\x46\x65tch\x12\r.FetchRequest\x1a\x0e.FetchResponse\"3\x82\xd3\xe4\x93\x02\x10\x12\x0e/vectors/fetch\x92\x41\x1a\n\x11Vector Operations*\x05\x66\x65tch\x12V\n\x05Query\x12\r.QueryRequest\x1a\x0e.QueryResponse\".\x82\xd3\xe4\x93\x02\x0b\"\x06/query:\x01*\x92\x41\x1a\n\x11Vector Operations*\x05query\x12\x63\n\x06Update\x12\x0e.UpdateRequest\x1a\x0f.UpdateResponse\"8\x82\xd3\xe4\x93\x02\x14\"\x0f/vectors/update:\x01*\x92\x41\x1b\n\x11Vector Operations*\x06update\x12\x98\x01\n\x12\x44\x65scribeIndexStats\x12\x1a.DescribeIndexStatsRequest\x1a\x1b.DescribeIndexStatsResponse\"I\x82\xd3\xe4\x93\x02\x17\x12\x15/describe_index_stats\x92\x41)\n\x11Vector Operations*\x14\x64\x65scribe_index_statsB\xc0\x03\n\x11io.pinecone.protoP\x01Z/github.com/pinecone-io/new-go-pinecone/pinecone\x92\x41\xf6\x02\x12K\n\x0cPinecone API\";\n\x0fPinecone.io Ops\x12\x13https://pinecone.io\x1a\x13support@pinecone.io\x1a\x39{index_name}-{project_name}.svc.{environment}.pinecone.io*\x01\x02\x32\x10\x61pplication/json:\x10\x61pplication/jsonZx\nv\n\nApiKeyAuth\x12h\x08\x02\x12YAn API Key is required to call Pinecone APIs. Get yours at https://www.pinecone.io/start/\x1a\x07\x41pi-Key \x02\x62\x10\n\x0e\n\nApiKeyAuth\x12\x00r9\n\x19More Pinecone.io API docs\x12\x1chttps://www.pinecone.io/docsb\x06proto3' + serialized_pb=b'\n\x14vector_service.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\xd7\x01\n\x06Vector\x12,\n\x02id\x18\x01 \x01(\tB \x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe0\x41\x02\x12G\n\x06values\x18\x02 \x03(\x02\x42\x37\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\xe0\x41\x02\x12V\n\x08metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\"\xed\x01\n\x0cScoredVector\x12,\n\x02id\x18\x01 \x01(\tB \x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe0\x41\x02\x12\x18\n\x05score\x18\x02 \x01(\x02\x42\t\x92\x41\x06J\x04\x30.08\x12=\n\x06values\x18\x03 \x03(\x02\x42-\x92\x41*J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]\x12V\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\"d\n\rUpsertRequest\x12&\n\x07vectors\x18\x01 \x03(\x0b\x32\x07.VectorB\x0c\x92\x41\x06x\xe8\x07\x80\x01\x01\xe0\x41\x02\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"1\n\x0eUpsertResponse\x12\x1f\n\x0eupserted_count\x18\x01 \x01(\rB\x07\x92\x41\x04J\x02\x31\x30\"\xb6\x01\n\rDeleteRequest\x12(\n\x03ids\x18\x01 \x03(\tB\x1b\x92\x41\x18J\x10[\"id-0\", \"id-1\"]x\xe8\x07\x80\x01\x01\x12%\n\ndelete_all\x18\x02 \x01(\x08\x42\x11\x92\x41\x0e:\x05\x66\x61lseJ\x05\x66\x61lse\x12+\n\tnamespace\x18\x03 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12\'\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x10\n\x0e\x44\x65leteResponse\"h\n\x0c\x46\x65tchRequest\x12+\n\x03ids\x18\x01 \x03(\tB\x1e\x92\x41\x18J\x10[\"id-0\", \"id-1\"]x\xe8\x07\x80\x01\x01\xe0\x41\x02\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"\xa3\x01\n\rFetchResponse\x12,\n\x07vectors\x18\x01 \x03(\x0b\x32\x1b.FetchResponse.VectorsEntry\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x1a\x37\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x16\n\x05value\x18\x02 \x01(\x0b\x32\x07.Vector:\x02\x38\x01\"\xaa\x02\n\x0bQueryVector\x12G\n\x06values\x18\x01 \x03(\x02\x42\x37\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\xe0\x41\x02\x12(\n\x05top_k\x18\x02 \x01(\rB\x19\x92\x41\x16J\x02\x31\x30Y\x00\x00\x00\x00\x00\x88\xc3@i\x00\x00\x00\x00\x00\x00\xf0?\x12+\n\tnamespace\x18\x03 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12{\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x17.google.protobuf.StructBR\x92\x41OJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}\"\xd4\x03\n\x0cQueryRequest\x12+\n\tnamespace\x18\x01 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\x12+\n\x05top_k\x18\x02 \x01(\rB\x1c\x92\x41\x16J\x02\x31\x30Y\x00\x00\x00\x00\x00\x88\xc3@i\x00\x00\x00\x00\x00\x00\xf0?\xe0\x41\x02\x12{\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructBR\x92\x41OJM{\"genre\": {\"$in\": [\"comedy\", \"documentary\", \"drama\"]}, \"year\": {\"$eq\": 2019}}\x12(\n\x0einclude_values\x18\x04 \x01(\x08\x42\x10\x92\x41\r:\x05\x66\x61lseJ\x04true\x12*\n\x10include_metadata\x18\x05 \x01(\x08\x42\x10\x92\x41\r:\x05\x66\x61lseJ\x04true\x12)\n\x07queries\x18\x06 \x03(\x0b\x32\x0c.QueryVectorB\n\x18\x01\x92\x41\x05x\n\x80\x01\x01\x12\x44\n\x06vector\x18\x07 \x03(\x02\x42\x34\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\x12&\n\x02id\x18\x08 \x01(\tB\x1a\x92\x41\x17J\x12\"example-vector-1\"x\x80\x04\"a\n\x12SingleQueryResults\x12\x1e\n\x07matches\x18\x01 \x03(\x0b\x32\r.ScoredVector\x12+\n\tnamespace\x18\x02 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"l\n\rQueryResponse\x12(\n\x07results\x18\x01 \x03(\x0b\x32\x13.SingleQueryResultsB\x02\x18\x01\x12\x1e\n\x07matches\x18\x02 \x03(\x0b\x32\r.ScoredVector\x12\x11\n\tnamespace\x18\x03 \x01(\t\"\x8c\x02\n\rUpdateRequest\x12,\n\x02id\x18\x01 \x01(\tB \x92\x41\x1aJ\x12\"example-vector-1\"x\x80\x04\x80\x01\x01\xe0\x41\x02\x12\x44\n\x06values\x18\x02 \x03(\x02\x42\x34\x92\x41\x31J([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8]x\xa0\x9c\x01\x80\x01\x01\x12Z\n\x0cset_metadata\x18\x03 \x01(\x0b\x32\x17.google.protobuf.StructB+\x92\x41(J&{\"genre\": \"documentary\", \"year\": 2019}\x12+\n\tnamespace\x18\x04 \x01(\tB\x18\x92\x41\x15J\x13\"example-namespace\"\"\x10\n\x0eUpdateResponse\"D\n\x19\x44\x65scribeIndexStatsRequest\x12\'\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"4\n\x10NamespaceSummary\x12 \n\x0cvector_count\x18\x01 \x01(\rB\n\x92\x41\x07J\x05\x35\x30\x30\x30\x30\"\xf2\x02\n\x1a\x44\x65scribeIndexStatsResponse\x12?\n\nnamespaces\x18\x01 \x03(\x0b\x32+.DescribeIndexStatsResponse.NamespacesEntry\x12\x1c\n\tdimension\x18\x02 \x01(\rB\t\x92\x41\x06J\x04\x31\x30\x32\x34\x12 \n\x0eindex_fullness\x18\x03 \x01(\x02\x42\x08\x92\x41\x05J\x03\x30.4\x1a\x44\n\x0fNamespacesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12 \n\x05value\x18\x02 \x01(\x0b\x32\x11.NamespaceSummary:\x02\x38\x01:\x8c\x01\x92\x41\x88\x01\x32\x85\x01{\"namespaces\": {\"\": {\"vectorCount\": 50000}, \"example-namespace-2\": {\"vectorCount\": 30000}}, \"dimension\": 1024, \"index_fullness\": 0.4}2\xbd\x05\n\rVectorService\x12\x63\n\x06Upsert\x12\x0e.UpsertRequest\x1a\x0f.UpsertResponse\"8\x82\xd3\xe4\x93\x02\x14\"\x0f/vectors/upsert:\x01*\x92\x41\x1b\n\x11Vector Operations*\x06upsert\x12v\n\x06\x44\x65lete\x12\x0e.DeleteRequest\x1a\x0f.DeleteResponse\"K\x82\xd3\xe4\x93\x02\'\"\x0f/vectors/delete:\x01*Z\x11*\x0f/vectors/delete\x92\x41\x1b\n\x11Vector Operations*\x06\x64\x65lete\x12[\n\x05\x46\x65tch\x12\r.FetchRequest\x1a\x0e.FetchResponse\"3\x82\xd3\xe4\x93\x02\x10\x12\x0e/vectors/fetch\x92\x41\x1a\n\x11Vector Operations*\x05\x66\x65tch\x12V\n\x05Query\x12\r.QueryRequest\x1a\x0e.QueryResponse\".\x82\xd3\xe4\x93\x02\x0b\"\x06/query:\x01*\x92\x41\x1a\n\x11Vector Operations*\x05query\x12\x63\n\x06Update\x12\x0e.UpdateRequest\x1a\x0f.UpdateResponse\"8\x82\xd3\xe4\x93\x02\x14\"\x0f/vectors/update:\x01*\x92\x41\x1b\n\x11Vector Operations*\x06update\x12\xb4\x01\n\x12\x44\x65scribeIndexStats\x12\x1a.DescribeIndexStatsRequest\x1a\x1b.DescribeIndexStatsResponse\"e\x82\xd3\xe4\x93\x02\x33\"\x15/describe_index_stats:\x01*Z\x17\x12\x15/describe_index_stats\x92\x41)\n\x11Vector Operations*\x14\x64\x65scribe_index_statsB\xc0\x03\n\x11io.pinecone.protoP\x01Z/github.com/pinecone-io/new-go-pinecone/pinecone\x92\x41\xf6\x02\x12K\n\x0cPinecone API\";\n\x0fPinecone.io Ops\x12\x13https://pinecone.io\x1a\x13support@pinecone.io\x1a\x39{index_name}-{project_name}.svc.{environment}.pinecone.io*\x01\x02\x32\x10\x61pplication/json:\x10\x61pplication/jsonZx\nv\n\nApiKeyAuth\x12h\x08\x02\x12YAn API Key is required to call Pinecone APIs. Get yours at https://www.pinecone.io/start/\x1a\x07\x41pi-Key \x02\x62\x10\n\x0e\n\nApiKeyAuth\x12\x00r9\n\x19More Pinecone.io API docs\x12\x1chttps://www.pinecone.io/docsb\x06proto3' , - dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_rpc_dot_error__details__pb2.DESCRIPTOR,protoc__gen__openapiv2_dot_options_dot_annotations__pb2.DESCRIPTOR,]) + dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,protoc__gen__openapiv2_dot_options_dot_annotations__pb2.DESCRIPTOR,]) @@ -76,8 +75,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=198, - serialized_end=413, + serialized_start=166, + serialized_end=381, ) @@ -129,8 +128,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=416, - serialized_end=653, + serialized_start=384, + serialized_end=621, ) @@ -168,8 +167,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=655, - serialized_end=755, + serialized_start=623, + serialized_end=723, ) @@ -200,8 +199,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=757, - serialized_end=806, + serialized_start=725, + serialized_end=774, ) @@ -253,8 +252,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=809, - serialized_end=991, + serialized_start=777, + serialized_end=959, ) @@ -278,8 +277,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=993, - serialized_end=1009, + serialized_start=961, + serialized_end=977, ) @@ -317,8 +316,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1011, - serialized_end=1115, + serialized_start=979, + serialized_end=1083, ) @@ -356,8 +355,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1226, - serialized_end=1281, + serialized_start=1194, + serialized_end=1249, ) _FETCHRESPONSE = _descriptor.Descriptor( @@ -394,8 +393,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1118, - serialized_end=1281, + serialized_start=1086, + serialized_end=1249, ) @@ -447,8 +446,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1284, - serialized_end=1582, + serialized_start=1252, + serialized_end=1550, ) @@ -528,8 +527,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1585, - serialized_end=2053, + serialized_start=1553, + serialized_end=2021, ) @@ -567,8 +566,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2055, - serialized_end=2152, + serialized_start=2023, + serialized_end=2120, ) @@ -613,8 +612,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2154, - serialized_end=2262, + serialized_start=2122, + serialized_end=2230, ) @@ -666,8 +665,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2265, - serialized_end=2533, + serialized_start=2233, + serialized_end=2501, ) @@ -691,8 +690,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2535, - serialized_end=2551, + serialized_start=2503, + serialized_end=2519, ) @@ -704,6 +703,13 @@ containing_type=None, create_key=_descriptor._internal_create_key, fields=[ + _descriptor.FieldDescriptor( + name='filter', full_name='DescribeIndexStatsRequest.filter', index=0, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -716,8 +722,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2553, - serialized_end=2580, + serialized_start=2521, + serialized_end=2589, ) @@ -748,8 +754,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2582, - serialized_end=2634, + serialized_start=2591, + serialized_end=2643, ) @@ -787,8 +793,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2797, - serialized_end=2865, + serialized_start=2805, + serialized_end=2873, ) _DESCRIBEINDEXSTATSRESPONSE = _descriptor.Descriptor( @@ -819,21 +825,21 @@ has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=b'\222A\006J\0040.42', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + serialized_options=b'\222A\005J\0030.4', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], nested_types=[_DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY, ], enum_types=[ ], - serialized_options=b'\222A\211\0012\206\001{\"namespaces\": {\"\": {\"vectorCount\": 50000}, \"example-namespace-2\": {\"vectorCount\": 30000}}, \"dimension\": 1024, \"index_fullness\": 0.42}', + serialized_options=b'\222A\210\0012\205\001{\"namespaces\": {\"\": {\"vectorCount\": 50000}, \"example-namespace-2\": {\"vectorCount\": 30000}}, \"dimension\": 1024, \"index_fullness\": 0.4}', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=2637, - serialized_end=3009, + serialized_start=2646, + serialized_end=3016, ) _VECTOR.fields_by_name['metadata'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT @@ -850,6 +856,7 @@ _QUERYRESPONSE.fields_by_name['results'].message_type = _SINGLEQUERYRESULTS _QUERYRESPONSE.fields_by_name['matches'].message_type = _SCOREDVECTOR _UPDATEREQUEST.fields_by_name['set_metadata'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT +_DESCRIBEINDEXSTATSREQUEST.fields_by_name['filter'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT _DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY.fields_by_name['value'].message_type = _NAMESPACESUMMARY _DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY.containing_type = _DESCRIBEINDEXSTATSRESPONSE _DESCRIBEINDEXSTATSRESPONSE.fields_by_name['namespaces'].message_type = _DESCRIBEINDEXSTATSRESPONSE_NAMESPACESENTRY @@ -1057,8 +1064,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=3012, - serialized_end=3685, + serialized_start=3019, + serialized_end=3720, methods=[ _descriptor.MethodDescriptor( name='Upsert', @@ -1117,7 +1124,7 @@ containing_service=None, input_type=_DESCRIBEINDEXSTATSREQUEST, output_type=_DESCRIBEINDEXSTATSRESPONSE, - serialized_options=b'\202\323\344\223\002\027\022\025/describe_index_stats\222A)\n\021Vector Operations*\024describe_index_stats', + serialized_options=b'\202\323\344\223\0023\"\025/describe_index_stats:\001*Z\027\022\025/describe_index_stats\222A)\n\021Vector Operations*\024describe_index_stats', create_key=_descriptor._internal_create_key, ), ]) diff --git a/pinecone/core/grpc/protos/vector_service_pb2.pyi b/pinecone/core/grpc/protos/vector_service_pb2.pyi index fc25bb74c..65f0093d1 100644 --- a/pinecone/core/grpc/protos/vector_service_pb2.pyi +++ b/pinecone/core/grpc/protos/vector_service_pb2.pyi @@ -288,8 +288,15 @@ type___UpdateResponse = UpdateResponse class DescribeIndexStatsRequest(google___protobuf___message___Message): DESCRIPTOR: google___protobuf___descriptor___Descriptor = ... + @property + def filter(self) -> google___protobuf___struct_pb2___Struct: ... + def __init__(self, + *, + filter : typing___Optional[google___protobuf___struct_pb2___Struct] = None, ) -> None: ... + def HasField(self, field_name: typing_extensions___Literal[u"filter",b"filter"]) -> builtin___bool: ... + def ClearField(self, field_name: typing_extensions___Literal[u"filter",b"filter"]) -> None: ... type___DescribeIndexStatsRequest = DescribeIndexStatsRequest class NamespaceSummary(google___protobuf___message___Message): diff --git a/pinecone/core/grpc/protos/vector_service_pb2_grpc.py b/pinecone/core/grpc/protos/vector_service_pb2_grpc.py index dd9eb2944..f04d95ca1 100644 --- a/pinecone/core/grpc/protos/vector_service_pb2_grpc.py +++ b/pinecone/core/grpc/protos/vector_service_pb2_grpc.py @@ -1,6 +1,6 @@ -# -# Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. -# + +//Copyright (c) 2020-2021 Pinecone Systems Inc. All right reserved. + # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" @@ -79,7 +79,7 @@ def Delete(self, request, context): def Fetch(self, request, context): """Fetch - The `Fetch` operation looks up and returns vectors, by id, from a single namespace. + The `Fetch` operation looks up and returns vectors, by ID, from a single namespace. The returned vectors include the vector data and/or metadata. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED)