Closed sgautam666 closed 1 year ago
Hiya @sgautam666! There was a recent update in the Python SDK. I don't believe that LangChain has been updated yet.
Please see the below sample if you want to use the latest version: https://github.com/Azure/cognitive-search-vector-pr/blob/main/demo-python/code/azure-search-vector-python-sample.ipynb
Thanks @farzad528
I am trying to use this approach to use embeddings in Azure. For this, I am using langchain framework as well. While trying to create a vector store using AzureSearch(), I get this error:
ImportError: cannot import name 'VectorSearchAlgorithmConfiguration' from 'azure.search.documents.indexes.models' (/anaconda/envs/azureml_py310_sdkv2/lib/python3.10/site-packages/azure/search/documents/indexes/models/init.py)
Code for langchain:
I am using 'azure-search-documents==11.4.0b8' version. Please advise Thank you