Skip to content

Models

List and inspect available Pinecone embedding and reranking models.

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 available embedding and reranking models.
using var client = new PineconeClient(apiKey);

var response = await client.Inference.ListModelsAsync();

Console.WriteLine($"Found {response.Models?.Count ?? 0} models");
foreach (var model in response.Models ?? [])
{
    Console.WriteLine($"  {model.Model}: type={model.Type}, dim={model.DefaultDimension}");
}