-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
313 additions
and
3,341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
|
||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
""" | ||
Pinecone index operations API | ||
Pinecone API | ||
# noqa: E501 | ||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 | ||
The version of the OpenAPI document: version not set | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
|
||
|
@@ -24,6 +26,7 @@ | |
from pinecone.core.client.model.create_collection_request import CreateCollectionRequest | ||
from pinecone.core.client.model.create_request import CreateRequest | ||
from pinecone.core.client.model.index_meta import IndexMeta | ||
from pinecone.core.client.model.inline_response200 import InlineResponse200 | ||
from pinecone.core.client.model.patch_request import PatchRequest | ||
|
||
|
||
|
@@ -75,7 +78,7 @@ def __configure_index(self, index_name, **kwargs): | |
async_req (bool): execute request asynchronously | ||
Returns: | ||
str | ||
IndexMeta | ||
If the method is called asynchronously, returns the request | ||
thread. | ||
""" | ||
|
@@ -91,7 +94,7 @@ def __configure_index(self, index_name, **kwargs): | |
|
||
self.configure_index = _Endpoint( | ||
settings={ | ||
"response_type": (str,), | ||
"response_type": (IndexMeta,), | ||
"auth": ["ApiKeyAuth"], | ||
"endpoint_path": "/databases/{indexName}", | ||
"operation_id": "configure_index", | ||
|
@@ -137,15 +140,15 @@ def __configure_index(self, index_name, **kwargs): | |
}, | ||
"collection_format_map": {}, | ||
}, | ||
headers_map={"accept": ["text/plain"], "content_type": ["application/json"]}, | ||
headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, | ||
api_client=api_client, | ||
callable=__configure_index, | ||
) | ||
|
||
def __create_collection(self, **kwargs): | ||
"""create_collection # noqa: E501 | ||
This operation creates a Pinecone collection from an existing index. # noqa: E501 | ||
This operation creates a Pinecone collection. # noqa: E501 | ||
This method makes a synchronous HTTP request by default. To make an | ||
asynchronous HTTP request, please pass async_req=True | ||
|
@@ -238,7 +241,7 @@ def __create_collection(self, **kwargs): | |
def __create_index(self, **kwargs): | ||
"""create_index # noqa: E501 | ||
This operation creates a Pinecone index. Specify the distance metric, the dimension of vectors to be stored in the index, the numbers replicas to use, and the collection from which to create the index, if applicable. # noqa: E501 | ||
This operation creates a Pinecone index. You can use it to specify the measure of similarity, the dimension of vectors to be stored in the index, the numbers of shards and replicas to use, and more. # noqa: E501 | ||
This method makes a synchronous HTTP request by default. To make an | ||
asynchronous HTTP request, please pass async_req=True | ||
|
@@ -269,7 +272,7 @@ def __create_index(self, **kwargs): | |
async_req (bool): execute request asynchronously | ||
Returns: | ||
str | ||
IndexMeta | ||
If the method is called asynchronously, returns the request | ||
thread. | ||
""" | ||
|
@@ -284,7 +287,7 @@ def __create_index(self, **kwargs): | |
|
||
self.create_index = _Endpoint( | ||
settings={ | ||
"response_type": (str,), | ||
"response_type": (IndexMeta,), | ||
"auth": ["ApiKeyAuth"], | ||
"endpoint_path": "/databases", | ||
"operation_id": "create_index", | ||
|
@@ -323,7 +326,7 @@ def __create_index(self, **kwargs): | |
}, | ||
"collection_format_map": {}, | ||
}, | ||
headers_map={"accept": ["text/plain"], "content_type": ["application/json"]}, | ||
headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, | ||
api_client=api_client, | ||
callable=__create_index, | ||
) | ||
|
@@ -535,7 +538,7 @@ def __delete_index(self, index_name, **kwargs): | |
def __describe_collection(self, collection_name, **kwargs): | ||
"""describe_collection # noqa: E501 | ||
Get a description of a collection, including the name, size, and status. # noqa: E501 | ||
Get a description of a collection. # noqa: E501 | ||
This method makes a synchronous HTTP request by default. To make an | ||
asynchronous HTTP request, please pass async_req=True | ||
|
@@ -637,7 +640,7 @@ def __describe_collection(self, collection_name, **kwargs): | |
def __describe_index(self, index_name, **kwargs): | ||
"""describe_index # noqa: E501 | ||
Get a description of an index, including dimension, distance metric, number of replicas, and more. # noqa: E501 | ||
Get a description of an index. # noqa: E501 | ||
This method makes a synchronous HTTP request by default. To make an | ||
asynchronous HTTP request, please pass async_req=True | ||
|
@@ -822,7 +825,7 @@ def __list_collections(self, **kwargs): | |
def __list_indexes(self, **kwargs): | ||
"""list_indexes # noqa: E501 | ||
This operation returns a list of the indexes in the current project. # noqa: E501 | ||
This operation returns a list of your Pinecone indexes. # noqa: E501 | ||
This method makes a synchronous HTTP request by default. To make an | ||
asynchronous HTTP request, please pass async_req=True | ||
|
@@ -852,7 +855,7 @@ def __list_indexes(self, **kwargs): | |
async_req (bool): execute request asynchronously | ||
Returns: | ||
[str] | ||
InlineResponse200 | ||
If the method is called asynchronously, returns the request | ||
thread. | ||
""" | ||
|
@@ -867,7 +870,7 @@ def __list_indexes(self, **kwargs): | |
|
||
self.list_indexes = _Endpoint( | ||
settings={ | ||
"response_type": ([str],), | ||
"response_type": (InlineResponse200,), | ||
"auth": ["ApiKeyAuth"], | ||
"endpoint_path": "/databases", | ||
"operation_id": "list_indexes", | ||
|
Oops, something went wrong.