The EmbeddingClient
interface has List<List<Double>> embed(List<String> texts);
and some providers (need to find out again which one) do not accept sending a list of text in one operation. The current impl in BedrockTitanEmbeddingClient
does this
Assert.isTrue(inputContents.size() == 1, "Titan Embedding does not support batch embedding!");
Perhaps we should iterate over the inputContents and issue a warning vs. fail?
This also applies for * Ollama