Open pavlovmilen opened 8 months ago
hey @pavlovmilen, sorry this got dropped!
This should be a very easy change to make. I'd be happy to review a PR if you want to add this to the embedding function (https://github.com/chroma-core/chroma/blob/main/chromadb/utils/embedding_functions.py#L103-L180) or I may be able to get to it next week.
I have a PR ready for review
What happened?
As a chromadb user, when I use Azure Open AI, I want to be able to use my embedding funciton with collection creation but currently it does not let me specify
azure_deployment
so it throws DeploymentNotFound exception (see logs):In embedding_functions.py there is a code execution path that gets triggered when
api_type="azure"
The issue is that it is missing
azure_deployment="your_deployment_name_here"
Whithout it my azure deployment cannot be reached. See attached log for more detailsTo test it I have this setup:
When I skip
azure_deployment="my_azure_open_ai_deployment",
my text embedding function throws not found exception. Azure Open AI endpoints need the deployment name in order for it to work.See https://github.com/openai/openai-python?tab=readme-ov-file#microsoft-azure-openai for more details Also can you update docs to include link to api versioning in Azure: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#rest-api-versioning
Versions
ChromaDB 0.4.21, Python 3.11.5
Relevant log output