Module models

Source
Expand description

Models for the Pinecone SDK.

Structs§

CollectionList
CollectionList : The list of collections that exist in the project.
CollectionModel
CollectionModel : The CollectionModel describes the configuration and status of a Pinecone collection.
ConfigureIndexRequest
ConfigureIndexRequest : Configuration used to scale an index.
ConfigureIndexRequestSpec
ConfigureIndexRequestSpecPod
CreateCollectionRequest
CreateCollectionRequest : The configuration needed to create a Pinecone collection.
DescribeIndexStatsResponse
The response for the describe_index_stats operation.
EmbedRequestParameters
EmbedRequestParameters : Model-specific parameters.
Embedding
Embedding
EmbeddingsList
EmbeddingsList : Embeddings generated for the input
EmbeddingsListUsage
EmbeddingsListUsage : Usage statistics for model inference including any instruction prefixes
FetchResponse
The response for the fetch operation.
IndexList
IndexList : The list of indexes that exist in the project.
IndexModel
IndexModel : The IndexModel describes the configuration and status of a Pinecone index.
IndexModelSpec
IndexModelStatus
IndexSpec
IndexSpec : The spec object defines how the index should be deployed. For serverless indexes, you define only the cloud and region where the index should be hosted. For pod-based indexes, you define the environment where the index should be hosted, the pod type and size to use, and other index characteristics.
ListResponse
The response for the List operation.
Metadata
Struct represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, Struct might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language.
Namespace
The namespace of an index
PodSpec
PodSpec : Configuration needed to deploy a pod-based index.
PodSpecMetadataConfig
PodSpecMetadataConfig : 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. These configurations are only valid for use with pod-based indexes.
QueryResponse
The response for the query operation. These are the matches found for a particular query vector. The matches are ordered from most similar to least similar.
ServerlessSpec
ServerlessSpec : Configuration needed to deploy a serverless index.
SparseValues
UpdateResponse
The response for the update operation.
UpsertResponse
The response for the upsert operation.
Value
Value represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of these variants. Absence of any variant indicates an error.
Vector

Enums§

Cloud
The public cloud where you would like your index hosted.
DeletionProtection
DeletionProtection : Whether deletion protection is enabled/disabled for the index. Whether deletion protection is enabled/disabled for the index.
Kind
The kind of value.
Metric
The distance metric to be used for similarity search. You can use ‘euclidean’, ‘cosine’, or ‘dotproduct’.
State
WaitPolicy
Defines the wait policy for index creation.