Azure / azure-search-vector-samples

A repository of code samples for Vector search capabilities in Azure AI Search.
https://azure.microsoft.com/products/search
MIT License
759 stars 325 forks source link

cannot import name 'ScalarQuantizationCompression' from 'azure.search.documents.indexes.models #268

Open safdar23 opened 1 month ago

safdar23 commented 1 month ago

I ran requirement.txt but /azure-search-vector-samples/demo-python/code/integrated-vectorization/azure-search-integrated-vectorization-sample.ipynb throws the error cannot import name 'ScalarQuantizationCompression' from 'azure.search.documents.indexes.models.

safdar23 commented 1 month ago

requirement.txt mentions the document search version as - azure-search-documents==11.6.0b4

mattgotteiner commented 1 month ago

Hi @safdar23 - I'll update this to 11.6.0b5 and see if that solves the issue

mattgotteiner commented 1 month ago

Using that version, I can add a cell like this and run it:

from azure.search.documents.indexes.models import ScalarQuantizationCompression
mattgotteiner commented 1 month ago

270