Unclear option to pass 'dimensions' to 'AzureOpenAIDocumentEmbedder'. #8756
Closed
riturajraman-evs
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While Initializing the haystack
AzureOpenAIDocumentEmbedder
class there is a paramdimensions
to pass the dimension but when the dimension is passed, it calls a functionresponse = self._client.embeddings.create(
model=self.azure_deployment, dimensions=self.dimensions, input=batch
)
where there is a
dimensions
param that takes the passed dimension but there is no any param in.create()
that takes the dimension and it throws the error "TypeError: create() got an unexpected keyword argument 'dimensions'"Beta Was this translation helpful? Give feedback.
All reactions