Table of Contents

Class ExternalApiElasticSearchParams

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

The search parameters to use for the ELASTIC_SEARCH spec.

public class ExternalApiElasticSearchParams
Inheritance
ExternalApiElasticSearchParams
Inherited Members
Extension Methods

Properties

Index

The ElasticSearch index to use.

[JsonPropertyName("index")]
public string? Index { get; set; }

Property Value

string

NumHits

Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the num_hits param.

[JsonPropertyName("numHits")]
public int? NumHits { get; set; }

Property Value

int?

SearchTemplate

The ElasticSearch search template to use.

[JsonPropertyName("searchTemplate")]
public string? SearchTemplate { get; set; }

Property Value

string