Class PineconeOptions
Configuration options for PineconeStore.
public class PineconeOptions
- Inheritance
-
PineconeOptions
- Inherited Members
Properties
ApiKey
Pinecone API key. Required.
public string ApiKey { get; set; }
Property Value
AutoCreateIndex
When true, the store will automatically create the Pinecone index
via the Control Plane API if it does not already exist.
The index is created with dotproduct metric (required for hybrid search).
Requires IndexName, Dimension,
Cloud, and Region to be set.
Default: false.
public bool AutoCreateIndex { get; set; }
Property Value
Cloud
Cloud provider for serverless index (e.g. "aws", "gcp", "azure"). Required when AutoCreateIndex is true.
public string? Cloud { get; set; }
Property Value
ControlPlaneHost
Pinecone Control Plane API host.
Default: https://api.pinecone.io.
public string ControlPlaneHost { get; set; }
Property Value
Dimension
Vector dimension. Required when AutoCreateIndex is true.
public int Dimension { get; set; }
Property Value
IndexHost
Pinecone data plane host for a specific index. Examples:
- https://my-index-xxxx.svc.us-east1-gcp.pinecone.io
- my-index-xxxx.svc.us-east1-gcp.pinecone.io Required.
public string IndexHost { get; set; }
Property Value
IndexName
Name of the Pinecone index. Required when AutoCreateIndex is true. Used to create or discover the index via the Control Plane API.
public string? IndexName { get; set; }
Property Value
Namespace
Optional Pinecone namespace for data isolation within a single index.
When set, all operations (upsert, query, fetch, delete) are scoped to this namespace.
When null (default), the Pinecone default namespace ("") is used.
public string? Namespace { get; set; }
Property Value
Region
Cloud region for serverless index (e.g. "us-east-1"). Required when AutoCreateIndex is true.
public string? Region { get; set; }
Property Value
RequestTimeoutSeconds
Timeout for requests when the store creates its own HttpClient. Default: 100 seconds.
public int RequestTimeoutSeconds { get; set; }
Property Value
UpsertBatchSize
Max vectors per upsert request. Default: 100.
public int UpsertBatchSize { get; set; }
Property Value
Methods
Validate()
Validates the options and throws ArgumentException if invalid.
public void Validate()