BedrockTitanEmbeddingClient only support configuration embedding type when startup in BedrockTitanEmbeddingProperties.inputType property.

Add new BedrockTitanEmbeddingOptions to support dynamic embedding request types while runtime.

For example:

bedrockTitanEmbeddingClient.call(new EmbeddingRequest(List.of("hello world"),
              BedrockTitanEmbeddingOptions.builder().withInputType(InputType.TEXT).build()));

Comment From: tzolov

Thanks @wmz7year , Could you please add the related documentation to the https://docs.spring.io/spring-ai/reference/1.0-SNAPSHOT/api/embeddings/bedrock-titan-embedding.html ? e.g to the https://github.com/spring-projects/spring-ai/blob/main/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/embeddings/bedrock-titan-embedding.adoc You can use the https://docs.spring.io/spring-ai/reference/1.0-SNAPSHOT/api/chat/bedrock/bedrock-titan.html#chat-options as an example

Comment From: maxjiang153

@tzolov done.

Comment From: tzolov

Thanks @wmz7year , let me have a look.