Skip to content

Index Management

Manage Pinecone indexes -- list, describe, and inspect your vector database indexes.

This example assumes using Pinecone; is in scope and apiKey contains your Pinecone API key.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
// List all indexes in the project.
using var client = new PineconeClient(apiKey);

var indexes = await client.ManageIndexes.ListIndexesAsync();

Console.WriteLine($"Found {indexes.Indexes?.Count ?? 0} indexes");
foreach (var index in indexes.Indexes ?? [])
{
    Console.WriteLine($"  {index.Name}: {index.Metric}, dim={index.Dimension}, host={index.Host}");
}