Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create "contoso-manuals-index" #239

Closed
mk-orange opened this issue Jan 19, 2025 · 0 comments
Closed

Cannot create "contoso-manuals-index" #239

mk-orange opened this issue Jan 19, 2025 · 0 comments

Comments

@mk-orange
Copy link

Trying to integrate "contoso-web" frontend with "contoso-chat" backend.
"contoso-web" frontend is looking for "contoso-manuals-index" search index
Discovered that "contoso-manuals-index" search index was not created automatically during "contoso-chat" deployment.
Trying to create contoso-manuals-index" search index manually by executing "data/manual_info/contoso-manuals-index.ipynb"

Receiving an error:

Image

ImportError Traceback (most recent call last)
Cell In[3], line 2
1 import os
----> 2 from azure.ai.resources.client import AIClient
3 from azure.identity import DefaultAzureCredential
4 # from azure.ai.resources.operations._index_data_source import (
5 # LocalSource,
6 # ACSOutputConfig,
7 # )

File ~/.local/lib/python3.11/site-packages/azure/ai/resources/client/init.py:7
1 # ---------------------------------------------------------
2 # Copyright (c) Microsoft Corporation. All rights reserved.
3 # ---------------------------------------------------------
5 path = import("pkgutil").extend_path(path, name) # type: ignore
----> 7 from ._ai_client import AIClient
9 all = [
10 "AIClient",
11 ]

File ~/.local/lib/python3.11/site-packages/azure/ai/resources/client/_ai_client.py:17
15 from azure.ai.resources._utils._str_utils import build_connection_id
16 from azure.ai.resources.constants._common import DEFAULT_OPEN_AI_CONNECTION_NAME, DEFAULT_CONTENT_SAFETY_CONNECTION_NAME
---> 17 from azure.ai.resources.entities.mlindex import Index as MLIndexAsset
...
----> 8 from azure.ai.ml.entities import CustomerManagedKey, WorkspaceHub
9 from azure.ai.ml.entities._credentials import IdentityConfiguration
10 from azure.ai.ml.entities._workspace.networking import ManagedNetwork

ImportError: cannot import name 'WorkspaceHub' from 'azure.ai.ml.entities' (/home/vscode/.local/lib/python3.11/site-packages/azure/ai/ml/entities/init.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant