Interface EmbeddingModel
- All Known Implementing Classes:
EmbeddingModelImpl
public interface EmbeddingModel
Interface for embedding text with OCI GenAI Service.
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.oracle.bmc.generativeaiinference.responses.EmbedTextResponse
Embeds a single line of text.List
<com.oracle.bmc.generativeaiinference.responses.EmbedTextResponse> Embeds a list of text inputs.fromResponse
(com.oracle.bmc.generativeaiinference.responses.EmbedTextResponse response) Convert an EmbedTextResponse to a list of embedding vectors.fromResponses
(List<com.oracle.bmc.generativeaiinference.responses.EmbedTextResponse> responses) Convert a list of EmbedTextResponses to a list of embedding vectors.
-
Method Details
-
embedAll
-
embed
Embeds a single line of text.- Parameters:
text
- Text to embed.- Returns:
- The EmbedTextResponse for the input.
-
fromResponse
-
fromResponses
-