Class OpenAiEmbeddingParameters
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.model.OpenAiEmbeddingParameters
Deprecated.
OpenAI embedding input parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated.booleanDeprecated.inthashCode()Deprecated.Deprecated.Input text to get embeddings for, encoded as a string.setInputType(String inputType) Deprecated.input type of embedding search to use, e.g.Deprecated.A unique identifier representing your end-user.toString()Deprecated.
-
Constructor Details
-
OpenAiEmbeddingParameters
public OpenAiEmbeddingParameters()Deprecated.
-
-
Method Details
-
setInput
Deprecated.Input text to get embeddings for, encoded as a string. The number of input tokens varies depending on what model you are using. Unless you're embedding code, we suggest replacing newlines (\n) in your input with a single space, as we have observed inferior results when newlines are present.- Parameters:
input- Input text to get embeddings for, encoded as a string.- Returns:
- ${code this} instance for chaining.
-
equals
Deprecated. -
canEqual
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
setUser
Deprecated.A unique identifier representing your end-user. This will help Azure OpenAI monitor and detect abuse. Do not pass PII identifiers instead use pseudo anonymized values such as GUIDs.- Returns:
this.
-
setInputType
Deprecated.input type of embedding search to use, e.g. "query".- Returns:
this.
-