Closed ghoshaishik505 closed 11 months ago
Thanks for reporting. We are working on it.
@ghoshaishik505 thanks for reporting this, this is fixed in the newest release.♥️
@sidmohanty11 thanks for the update. Checked in the newest version(0.1.5), the validation passes. But Azure OpenAI Embeddings still doesn't work as for embedding, its still using the OpenAIEmbeddings class, and the keys and details are searched in the OpenAI platform instead of Azure OpenAI. Giving the full logs here, faced with the quickstart sample code in the docs. Please note the warning as well.
'''
MyDir/env/lib/python3.10/site-packages/langchain/embeddings/openai.py:320: UserWarning: If you have openai>=1.0.0 installed and are using Azure, please use the AzureOpenAIEmbeddings
class.
warnings.warn(
Adding Data
Traceback (most recent call last):
File "MyDir/sample.py", line 6, in
Thanks
@sidmohanty11 , any luck with this?
Please have a look in the recent logs:
With Chroma:
"""
/MyDir/MyBot//env/lib/python3.10/site-packages/langchain/embeddings/openai.py:320: UserWarning: If you have openai>=1.0.0 installed and are using Azure, please use the AzureOpenAIEmbeddings
class.
warnings.warn(
Traceback (most recent call last):
File "/MyDir/MyBot//sample.py", line 2, in
"""
With Elastic Search:
"""
/MyDir/MyBot/env/lib/python3.9/site-packages/langchain/embeddings/openai.py:320: UserWarning: If you have openai>=1.0.0 installed and are using Azure, please use the AzureOpenAIEmbeddings
class.
warnings.warn(
Creating index es-em-0115_1536 {'mappings': {'properties': {'text': {'type': 'text'}, 'embeddings': {'type': 'dense_vector', 'index': False, 'dims': 1536}}}}
Adding Data
Traceback (most recent call last):
File "/MyDir/MyBot/sample.py", line 6, in
@deshraj @sidmohanty11 , probably its better to merge these two issues: https://github.com/embedchain/embedchain/issues/926
Thanks a lot @ghoshaishik505 ! This is definitely in our radar, will target to fix this soon next week
🐛 azure_openai embedder: validation of config.yaml with azure_openai fails from in v0.0.92 to v0.1.1
When using azure openai's embedding functions, the config.yaml is
The last few versions validate this yaml file, and throws Key 'provider' error: Or('openai', 'gpt4all', 'huggingface', 'vertexai') did not validate 'azure_openai')
Please add 'azure_openai' options in the validations.