Skip to content

List Rerankers

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

1
2
3
4
5
6
7
8
using var client = new VectaraClient(apiKey);

ListRerankersResponse response = await client.Rerankers.ListAsync();

foreach (var reranker in response.Rerankers ?? [])
{
    Console.WriteLine(reranker.Name);
}