AzureOpenAIEmbeddingSkill Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerSkill - com.
azure. search. documents. indexes. models. AzureOpenAIEmbeddingSkill
- com.
- com.
public final class AzureOpenAIEmbeddingSkill
extends SearchIndexerSkill
Allows you to generate a vector embedding for a given text input using the Azure OpenAI resource.
Constructor Summary
| Constructor | Description |
|---|---|
| AzureOpenAIEmbeddingSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) |
Creates an instance of Azure |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
| String |
getApiKey()
Get the api |
|
Search |
getAuthIdentity()
Get the auth |
| String |
getDeploymentName()
Get the deployment |
| Integer |
getDimensions()
Get the dimensions property: The number of dimensions the resulting output embeddings should have. |
|
Azure |
getModelName()
Get the model |
| String |
getOdataType()
Get the odata |
| String |
getResourceUrl()
Get the resource |
|
Azure |
setApiKey(String apiKey)
Set the api |
|
Azure |
setAuthIdentity(SearchIndexerDataIdentity authIdentity)
Set the auth |
|
Azure |
setContext(String context)
Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). |
|
Azure |
setDeploymentName(String deploymentName)
Set the deployment |
|
Azure |
setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill. |
|
Azure |
setDimensions(Integer dimensions)
Set the dimensions property: The number of dimensions the resulting output embeddings should have. |
|
Azure |
setModelName(AzureOpenAIModelName modelName)
Set the model |
|
Azure |
setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. |
|
Azure |
setResourceUrl(String resourceUrl)
Set the resource |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from SearchIndexerSkill
Methods inherited from java.lang.Object
Constructor Details
AzureOpenAIEmbeddingSkill
public AzureOpenAIEmbeddingSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs)
Creates an instance of AzureOpenAIEmbeddingSkill class.
Parameters:
Method Details
fromJson
public static AzureOpenAIEmbeddingSkill fromJson(JsonReader jsonReader)
Reads an instance of AzureOpenAIEmbeddingSkill from the JsonReader.
Parameters:
Returns:
Throws:
getApiKey
public String getApiKey()
Get the apiKey property: API key of the designated Azure OpenAI resource.
Returns:
getAuthIdentity
public SearchIndexerDataIdentity getAuthIdentity()
Get the authIdentity property: The user-assigned managed identity used for outbound connections.
Returns:
getDeploymentName
public String getDeploymentName()
Get the deploymentName property: ID of the Azure OpenAI model deployment on the designated resource.
Returns:
getDimensions
public Integer getDimensions()
Get the dimensions property: The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models.
Returns:
getModelName
public AzureOpenAIModelName getModelName()
Get the modelName property: The name of the embedding model that is deployed at the provided deploymentId path.
Returns:
getOdataType
public String getOdataType()
Get the odataType property: A URI fragment specifying the type of skill.
Overrides:
AzureOpenAIEmbeddingSkill.getOdataType()Returns:
getResourceUrl
public String getResourceUrl()
Get the resourceUrl property: The resource URI of the Azure OpenAI resource.
Returns:
setApiKey
public AzureOpenAIEmbeddingSkill setApiKey(String apiKey)
Set the apiKey property: API key of the designated Azure OpenAI resource.
Parameters:
Returns:
setAuthIdentity
public AzureOpenAIEmbeddingSkill setAuthIdentity(SearchIndexerDataIdentity authIdentity)
Set the authIdentity property: The user-assigned managed identity used for outbound connections.
Parameters:
Returns:
setContext
public AzureOpenAIEmbeddingSkill setContext(String context)
Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). The default is /document.
Overrides:
AzureOpenAIEmbeddingSkill.setContext(String context)Parameters:
setDeploymentName
public AzureOpenAIEmbeddingSkill setDeploymentName(String deploymentName)
Set the deploymentName property: ID of the Azure OpenAI model deployment on the designated resource.
Parameters:
Returns:
setDescription
public AzureOpenAIEmbeddingSkill setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.
Overrides:
AzureOpenAIEmbeddingSkill.setDescription(String description)Parameters:
setDimensions
public AzureOpenAIEmbeddingSkill setDimensions(Integer dimensions)
Set the dimensions property: The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models.
Parameters:
Returns:
setModelName
public AzureOpenAIEmbeddingSkill setModelName(AzureOpenAIModelName modelName)
Set the modelName property: The name of the embedding model that is deployed at the provided deploymentId path.
Parameters:
Returns:
setName
public AzureOpenAIEmbeddingSkill setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'.
Overrides:
AzureOpenAIEmbeddingSkill.setName(String name)Parameters:
setResourceUrl
public AzureOpenAIEmbeddingSkill setResourceUrl(String resourceUrl)
Set the resourceUrl property: The resource URI of the Azure OpenAI resource.
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AzureOpenAIEmbeddingSkill.toJson(JsonWriter jsonWriter)Parameters:
Throws: