Skip to content

searchpioneer/pinecone-dotnet-client

Repository files navigation

Learn more about our services and expertise: https://searchpioneer.com/

Pinecone .NET client

A .NET gRPC client for Pinecone vector database.

Getting started

Installing

dotnet add package Pinecone.Grpc --version 1.0.0-alpha1

Usage

The Pinecone.Grpc.VectorService provides an entry point to interact with all of Pinecone's gRPC services

using static Pinecone.Grpc.VectorService;

namespace Example;

public class Program
{
	public static void Main(string[] args)
	{
		var configuration = new ClientConfiguration(
		    "<environment>",
		    "<projectName>",
		    "<apiKey>");
		    
		var channel = PineconeChannel.ForConfiguration(configuration, "<indexName>");
		var client = new VectorServiceClient(channel);

		var describeIndexStatsResponse = 
		    client.DescribeIndexStats(new DescribeIndexStatsRequest());
	}
}