Class KnowledgeAgentTargetIndex
java.lang.Object
com.azure.search.documents.indexes.models.KnowledgeAgentTargetIndex
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeAgentTargetIndex>
public final class KnowledgeAgentTargetIndex
extends Object
implements com.azure.json.JsonSerializable<KnowledgeAgentTargetIndex>
The KnowledgeAgentTargetIndex model.
-
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeAgentTargetIndex(String indexName) Creates an instance of KnowledgeAgentTargetIndex class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeAgentTargetIndexfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeAgentTargetIndex from the JsonReader.Get the defaultMaxDocsForReranker property: Limits the number of documents considered for ranking.Get the defaultRerankerThreshold property: A threshold for reranking results (range: 0-4).Get the indexName property: The name of the target index.Get the defaultIncludeReferenceSourceData property: Indicates whether reference source data should be included.setDefaultIncludeReferenceSourceData(Boolean defaultIncludeReferenceSourceData) Set the defaultIncludeReferenceSourceData property: Indicates whether reference source data should be included.setDefaultMaxDocsForReranker(Integer defaultMaxDocsForReranker) Set the defaultMaxDocsForReranker property: Limits the number of documents considered for ranking.setDefaultRerankerThreshold(Float defaultRerankerThreshold) Set the defaultRerankerThreshold 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
-
KnowledgeAgentTargetIndex
Creates an instance of KnowledgeAgentTargetIndex class.- Parameters:
indexName- the indexName value to set.
-
-
Method Details
-
getIndexName
Get the indexName property: The name of the target index.- Returns:
- the indexName value.
-
getDefaultRerankerThreshold
Get the defaultRerankerThreshold property: A threshold for reranking results (range: 0-4).- Returns:
- the defaultRerankerThreshold value.
-
setDefaultRerankerThreshold
Set the defaultRerankerThreshold property: A threshold for reranking results (range: 0-4).- Parameters:
defaultRerankerThreshold- the defaultRerankerThreshold value to set.- Returns:
- the KnowledgeAgentTargetIndex object itself.
-
isDefaultIncludeReferenceSourceData
Get the defaultIncludeReferenceSourceData property: Indicates whether reference source data should be included.- Returns:
- the defaultIncludeReferenceSourceData value.
-
setDefaultIncludeReferenceSourceData
public KnowledgeAgentTargetIndex setDefaultIncludeReferenceSourceData(Boolean defaultIncludeReferenceSourceData) Set the defaultIncludeReferenceSourceData property: Indicates whether reference source data should be included.- Parameters:
defaultIncludeReferenceSourceData- the defaultIncludeReferenceSourceData value to set.- Returns:
- the KnowledgeAgentTargetIndex object itself.
-
getDefaultMaxDocsForReranker
Get the defaultMaxDocsForReranker property: Limits the number of documents considered for ranking.- Returns:
- the defaultMaxDocsForReranker value.
-
setDefaultMaxDocsForReranker
Set the defaultMaxDocsForReranker property: Limits the number of documents considered for ranking.- Parameters:
defaultMaxDocsForReranker- the defaultMaxDocsForReranker value to set.- Returns:
- the KnowledgeAgentTargetIndex object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeAgentTargetIndex>- Throws:
IOException
-
fromJson
public static KnowledgeAgentTargetIndex fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeAgentTargetIndex from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeAgentTargetIndex if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the KnowledgeAgentTargetIndex.
-