Partager via


PineconeClient(String, String, ILoggerFactory, HttpClient) Constructor

Definition

Initializes a new instance of the PineconeClient class.

public PineconeClient (string pineconeEnvironment, string apiKey, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default, System.Net.Http.HttpClient? httpClient = default);
new Microsoft.SemanticKernel.Connectors.Pinecone.PineconeClient : string * string * Microsoft.Extensions.Logging.ILoggerFactory * System.Net.Http.HttpClient -> Microsoft.SemanticKernel.Connectors.Pinecone.PineconeClient
Public Sub New (pineconeEnvironment As String, apiKey As String, Optional loggerFactory As ILoggerFactory = Nothing, Optional httpClient As HttpClient = Nothing)

Parameters

pineconeEnvironment
String

The environment for Pinecone.

apiKey
String

The API key for accessing Pinecone services.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

httpClient
HttpClient

An optional HttpClient instance for making HTTP requests.

Applies to