Package com.sap.ai.sdk.orchestration
Class OrchestrationEmbeddingRequest
java.lang.Object
com.sap.ai.sdk.orchestration.OrchestrationEmbeddingRequest
Represents a request for generating embeddings through the SAP AI Core Orchestration service.
- Since:
- 1.12.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder step for specifying text inputs to embed. -
Method Summary
Modifier and TypeMethodDescriptionConfigures this request to optimize embeddings for document content.asQuery()Configures this request to optimize embeddings for query content.asText()Configures this request to optimize embeddings for general text content.booleanCreate an embedding request using fluent API starting with model selection.The list of text inputs to be converted into embeddings.Optional masking providers for data privacy and security.getModel()The embedding model to use for generating vector representations.inthashCode()toString()withMasking(MaskingProvider maskingProvider, MaskingProvider... maskingProviders) Adds data masking providers to enable detection and masking of sensitive information.
-
Method Details
-
forModel
@Nonnull public static OrchestrationEmbeddingRequest.InputStep forModel(@Nonnull OrchestrationEmbeddingModel model) Create an embedding request using fluent API starting with model selection.OrchestrationEmbeddingRequest.forModel(myModel).forInputs("text to embed");- Parameters:
model- the embedding model to use- Returns:
- a step for specifying inputs
-
withMasking
@Nonnull public OrchestrationEmbeddingRequest withMasking(@Nonnull MaskingProvider maskingProvider, @Nonnull MaskingProvider... maskingProviders) Adds data masking providers to enable detection and masking of sensitive information.- Parameters:
maskingProvider- the primary masking providermaskingProviders- additional masking providers- Returns:
- a new request instance with the specified masking providers
- See Also:
-
asDocument
Configures this request to optimize embeddings for document content.- Returns:
- a new request instance configured for document embedding
-
asText
Configures this request to optimize embeddings for general text content.- Returns:
- a new request instance configured for text embedding
-
asQuery
Configures this request to optimize embeddings for query content.- Returns:
- a new request instance configured for query embedding
-
getModel
The embedding model to use for generating vector representations. -
getInputs
The list of text inputs to be converted into embeddings. -
getMasking
Optional masking providers for data privacy and security. -
equals
-
hashCode
public int hashCode() -
toString
-