• Add dimension method to the EmbeddingClient interface. Default dimension implementation uses the embed method to produce results and counts the result dimensions.
  • Add EmbeddingUtil#dimensions utilities that look up the model dimensions from a pre-defined (static) file. If the requested model is unknown, fallback to the default behaviour.
  • Override the dimensions method in the OpenAiEmbeddingClient and AzureOpenAiEmbeddingClient to implement local caching.
  • Add unit and IT tests.

Resolves #28

Comment From: markpollack

merged as 92773f17c041b2c140aa13039abe32fe62310c94