Azure AI ML: Prompt Flow deployment to Online endpoint results an error Execution failure in 'vector_db_lookup': (ImportError) cannot import name 'Vector' from 'azure.search.documents.models' (/azureml-envs/prompt-flow/runtime/lib/python3.9/site-packages/

Andrey 0 Баллы репутации
2024-04-18T10:49:48.9833333+00:00

Hello

In Azure AI Machine Learning studio I'm working on designing model via Prompt Flow, using Vector DB Lookup tool to get data from documents stored in Vectorized DB . Flow is working as intended in a prompt Flow environment.

However when i deploy model to online endpoint i get exception:

Execution failure in 'vector_db_lookup': (ImportError) cannot import name 'Vector' from 'azure.search.documents.models' (/azureml-envs/prompt-flow/runtime/lib/python3.9/site-packages/azure/search/documents/models/init.py)

Previously i used this exact flow in same endpoint and it was functional in both Prompt Flow and Managed Online Endpoint. Then i cloned flow and have updated it, not changing vector_db_lookup; deployed Prompt Flow in Online Endpoint and get problem listed above.

I tryed to roll back, get back to proven working flow and deployed it to endpoint but now it also leads to listed problem (everything is fine in Prompt Flow environment, but problem in endpoint.

Same issue happens when I create new prompt flow from scratch, using example template and then deploying to new endpoint.

Vector database wasn't changed for months, search explorer works fine with this vector DB index.

Any hints what can cause it?

Thanks!

Andrey

Azure
Azure
Платформа и инфраструктура облачных вычислений для создания, развертывания приложений и служб и управления ими через глобальную сеть центров обработки данных, управляемых корпорацией Майкрософт.
Вопросы: 58
Комментариев: 0 Без комментариев
Голосов: {count}

1 ответ

Сортировать по: Наиболее полезные
  1. Ivan Prodanov 400 Баллы репутации
    2024-04-18T13:40:57.42+00:00

    Hello, This is a Russian speaking Q&A. Would you like to continue working on your issue in Russian? In case you wish to continue in English, you may ask your question on the English Q&A: https://learn.microsoft.com/en-us/answers/

    Комментариев: 0 Без комментариев

Ваш ответ

Автор вопроса может помечать ответы как принятые. Это позволяет пользователям узнать, что ответ помог решить проблему автора.