Open prabhupant opened 4 months ago
A shameless plug, but I regularly update another Java OpenAI library - https://github.com/StefanBratanov/jvm-openai . It has the ability to specify the dimension for the Embedding requests.
If anyone hasn't taken up this issue, I am working on it. Will be submitting the pull request shortly.
Currently in the EmbeddingRequest, we cannot specify the dimension size.
So the embedding size that we will get will always be 1536. If we want to generate embeddings with a reduced size, currently this is not possible