FileKnowledgeSourceParameters Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.FileKnowledgeSourceParameters

Implements

public final class FileKnowledgeSourceParameters
implements JsonSerializable<FileKnowledgeSourceParameters>

Parameters for File knowledge source.

Constructor Summary

Constructor Description
FileKnowledgeSourceParameters()

Creates an instance of FileKnowledgeSourceParameters class.

Method Summary

Modifier and Type Method and Description
static FileKnowledgeSourceParameters fromJson(JsonReader jsonReader)

Reads an instance of FileKnowledgeSourceParameters from the JsonReader.

CreatedResources getCreatedResources()

Get the createdResources property: Resources created by the file knowledge source.

KnowledgeSourceIngestionParameters getIngestionParameters()

Get the ingestionParameters property: Consolidates all general ingestion settings for the File knowledge source, including the content extraction mode and an optional embeddingModel.

FileKnowledgeSourceParameters setIngestionParameters(KnowledgeSourceIngestionParameters ingestionParameters)

Set the ingestionParameters property: Consolidates all general ingestion settings for the File knowledge source, including the content extraction mode and an optional embeddingModel.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

FileKnowledgeSourceParameters

public FileKnowledgeSourceParameters()

Creates an instance of FileKnowledgeSourceParameters class.

Method Details

fromJson

public static FileKnowledgeSourceParameters fromJson(JsonReader jsonReader)

Reads an instance of FileKnowledgeSourceParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FileKnowledgeSourceParameters 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 FileKnowledgeSourceParameters.

getCreatedResources

public CreatedResources getCreatedResources()

Get the createdResources property: Resources created by the file knowledge source.

Returns:

the createdResources value.

getIngestionParameters

public KnowledgeSourceIngestionParameters getIngestionParameters()

Get the ingestionParameters property: Consolidates all general ingestion settings for the File knowledge source, including the content extraction mode and an optional embeddingModel.

Returns:

the ingestionParameters value.

setIngestionParameters

public FileKnowledgeSourceParameters setIngestionParameters(KnowledgeSourceIngestionParameters ingestionParameters)

Set the ingestionParameters property: Consolidates all general ingestion settings for the File knowledge source, including the content extraction mode and an optional embeddingModel.

Parameters:

ingestionParameters - the ingestionParameters value to set.

Returns:

the FileKnowledgeSourceParameters object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to