Class KnowledgeAgentIndexParams
java.lang.Object
com.azure.search.documents.agents.models.KnowledgeAgentIndexParams
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgentIndexParams>
public final class KnowledgeAgentIndexParams
extends Object
implements com.azure.json.JsonSerializable<KnowledgeAgentIndexParams>
The KnowledgeAgentIndexParams model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeAgentIndexParams class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeAgentIndexParamsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgentIndexParams from the JsonReader.Get the filterAddOn property: A filter condition applied to the index (e.g., 'State eq VA').Get the indexName property: The name of the index the params apply to.Get the maxDocsForReranker property: Limits the number of documents considered for ranking.Get the rerankerThreshold property: A threshold for reranking results (range: 0-4).Get the includeReferenceSourceData property: Indicates whether reference source data should be included.setFilterAddOn(String filterAddOn) Set the filterAddOn property: A filter condition applied to the index (e.g., 'State eq VA').setIncludeReferenceSourceData(Boolean includeReferenceSourceData) Set the includeReferenceSourceData property: Indicates whether reference source data should be included.setIndexName(String indexName) Set the indexName property: The name of the index the params apply to.setMaxDocsForReranker(Integer maxDocsForReranker) Set the maxDocsForReranker property: Limits the number of documents considered for ranking.setRerankerThreshold(Float rerankerThreshold) Set the rerankerThreshold property: A threshold for reranking results (range: 0-4).com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
KnowledgeAgentIndexParams
public KnowledgeAgentIndexParams()Creates an instance of KnowledgeAgentIndexParams class.
-
-
Method Details
-
getIndexName
Get the indexName property: The name of the index the params apply to.- Returns:
- the indexName value.
-
setIndexName
Set the indexName property: The name of the index the params apply to.- Parameters:
indexName- the indexName value to set.- Returns:
- the KnowledgeAgentIndexParams object itself.
-
getFilterAddOn
Get the filterAddOn property: A filter condition applied to the index (e.g., 'State eq VA').- Returns:
- the filterAddOn value.
-
setFilterAddOn
Set the filterAddOn property: A filter condition applied to the index (e.g., 'State eq VA').- Parameters:
filterAddOn- the filterAddOn value to set.- Returns:
- the KnowledgeAgentIndexParams object itself.
-
getMaxDocsForReranker
Get the maxDocsForReranker property: Limits the number of documents considered for ranking.- Returns:
- the maxDocsForReranker value.
-
setMaxDocsForReranker
Set the maxDocsForReranker property: Limits the number of documents considered for ranking.- Parameters:
maxDocsForReranker- the maxDocsForReranker value to set.- Returns:
- the KnowledgeAgentIndexParams object itself.
-
getRerankerThreshold
Get the rerankerThreshold property: A threshold for reranking results (range: 0-4).- Returns:
- the rerankerThreshold value.
-
setRerankerThreshold
Set the rerankerThreshold property: A threshold for reranking results (range: 0-4).- Parameters:
rerankerThreshold- the rerankerThreshold value to set.- Returns:
- the KnowledgeAgentIndexParams object itself.
-
isIncludeReferenceSourceData
Get the includeReferenceSourceData property: Indicates whether reference source data should be included.- Returns:
- the includeReferenceSourceData value.
-
setIncludeReferenceSourceData
Set the includeReferenceSourceData property: Indicates whether reference source data should be included.- Parameters:
includeReferenceSourceData- the includeReferenceSourceData value to set.- Returns:
- the KnowledgeAgentIndexParams object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeAgentIndexParams>- Throws:
IOException
-
fromJson
public static KnowledgeAgentIndexParams fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeAgentIndexParams from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeAgentIndexParams if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the KnowledgeAgentIndexParams.
-