Package com.azure.ai.inference.models
Class EmbeddingInputType
java.lang.Object
com.azure.core.util.ExpandableStringEnum<EmbeddingInputType>
com.azure.ai.inference.models.EmbeddingInputType
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class EmbeddingInputType
extends com.azure.core.util.ExpandableStringEnum<EmbeddingInputType>
Represents the input types used for embedding search.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EmbeddingInputTypeIndicates the input represents a document that is stored in a vector database.static final EmbeddingInputTypeIndicates the input represents a search query to find the most relevant documents in your vector database.static final EmbeddingInputTypeIndicates the input is a general text input. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EmbeddingInputTypefromString(String name) Creates or finds a EmbeddingInputType from its string representation.static Collection<EmbeddingInputType> values()Gets known EmbeddingInputType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
TEXT
Indicates the input is a general text input. -
QUERY
Indicates the input represents a search query to find the most relevant documents in your vector database. -
DOCUMENT
Indicates the input represents a document that is stored in a vector database.
-
-
Constructor Details
-
EmbeddingInputType
Deprecated.Use thefromString(String)factory method.Creates a new instance of EmbeddingInputType value.
-
-
Method Details
-
fromString
Creates or finds a EmbeddingInputType from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding EmbeddingInputType.
-
values
Gets known EmbeddingInputType values.- Returns:
- known EmbeddingInputType values.
-
fromString(String)factory method.