Class OpenAiEmbeddingClient
java.lang.Object
org.springframework.ai.openai.embedding.OpenAiEmbeddingClient
- All Implemented Interfaces:
EmbeddingClient
-
Constructor Summary
ConstructorDescriptionOpenAiEmbeddingClient
(com.theokanning.openai.service.OpenAiService openAiService) OpenAiEmbeddingClient
(com.theokanning.openai.service.OpenAiService openAiService, String model) OpenAiEmbeddingClient
(com.theokanning.openai.service.OpenAiService openAiService, String model, MetadataMode metadataMode) -
Method Summary
-
Constructor Details
-
OpenAiEmbeddingClient
public OpenAiEmbeddingClient(com.theokanning.openai.service.OpenAiService openAiService) -
OpenAiEmbeddingClient
public OpenAiEmbeddingClient(com.theokanning.openai.service.OpenAiService openAiService, String model) -
OpenAiEmbeddingClient
public OpenAiEmbeddingClient(com.theokanning.openai.service.OpenAiService openAiService, String model, MetadataMode metadataMode)
-
-
Method Details
-
embed
- Specified by:
embed
in interfaceEmbeddingClient
-
embed
- Specified by:
embed
in interfaceEmbeddingClient
-
embed
- Specified by:
embed
in interfaceEmbeddingClient
-
embedForResponse
- Specified by:
embedForResponse
in interfaceEmbeddingClient
-
dimensions
public int dimensions()- Specified by:
dimensions
in interfaceEmbeddingClient
-