Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.04 KB

README.md

File metadata and controls

43 lines (30 loc) · 1.04 KB

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());
	}
}