Search code examples
azuresearchvector

Azure Cognitive Search in Python using Vector embeddings Error


I am trying to use Azure Cognitive Search for Vector search. Trying to use the python sdk and I am getting an error saying ImportError: cannot import name 'Vector' from 'azure.search.documents.models'.

I did install azure-search-documents using pip and it is the latest version. Any pointers on what I am missing here.

Using the github sample on creating a vector store in Azure Cognitive Search


Solution

  • Azure Cognitive Search for Vector search is available only for private preview . If you want to use it, you need to install specific version. azure-search-documents==11.4.0a20230509004

    for more info: refer this link https://github.com/Azure/cognitive-search-vector-pr/blob/main/demo-python/code/azure-search-vector-python-sample.ipynb