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

[BUG] [VSCode Extension] unable to configure mlindex_content #3159

Open
JuhyunLee0 opened this issue May 8, 2024 · 4 comments
Open

[BUG] [VSCode Extension] unable to configure mlindex_content #3159

JuhyunLee0 opened this issue May 8, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@JuhyunLee0
Copy link

getting error when using the promptflow extension from vscode

from promptflow._sdk._utils import _retrieve_tool_func_result ModuleNotFoundError: No module named 'promptflow._sdk._utils'

when opening the dialog for the "lookup index - mlindex_content" box.

entire prompt flow was downloaded from freshly generated "QnA with your data" from Azure AI Studio

  • Windows 11
  • No virtual Environment
  • Python 3.11.9
  • pf -v
    • "promptflow": "1.10.1",
      "promptflow-core": "1.10.1",
      "promptflow-devkit": "1.10.1",
      "promptflow-tracing": "1.10.1"

image

things that I have tried, but failed to resolve

  • reinstall extension
  • install "pre-release" version of the extension
  • configure the prompt flow and the mlindex_content on the Azure AI studio, then import them to vscode
    • same issue rose, but on different field
    • image
@JuhyunLee0 JuhyunLee0 added the bug Something isn't working label May 8, 2024
@elliotzh
Copy link
Member

elliotzh commented May 9, 2024

Hi @JuhyunLee0 this is an compatibility issue brought in in promptflow 1.10.1. Please downgrade your prompftlow to 1.9.0 as a workaround and we will contact extension team to fix it as soon as possible

@JuhyunLee0
Copy link
Author

JuhyunLee0 commented May 9, 2024

Thank you @elliotzh I was able to resolve the issue by downgrading to 1.9.0 version.

but Im now getting this error,

promptflow._utils.tool_utils.FunctionPathValidationError: Unable to display list of items due to 'Failed to parse function from function path: 'promptflow_vectordb.tool.common_index_lookup_utils.list_available_index_types'. Expected format: format 'my_module.my_func'. Detailed error: cannot import name 'MLClient' from 'azure.ai.ml' (unknown location)'. Please contact the tool author/support team for troubleshooting assistance.

any help would be greatly appreciated

image

things I have tried

  • downgraded all the package related to promptflow to 1.9.0
  • installed promptflow-vectordb
  • installed azure-ai-ml

@VRAJP-07
Copy link

Hello @JuhyunLee0

The error which message which you've shared is because you haven't installed promptflow_vectordb instead you've installed promptflow-vectordb

I was getting same error message when I executed the promptflow, but after installing promptflow_vectordb error was resolved.

After installing promptflow_vectordb you can refer to this site if you're getting any errors related to list_endpoint_names.

Feel free to ask if you need further assistance!

@pgr-lopes
Copy link

Hey. Did anyone ever get this to work? I'm getting the same error when using pf version 1.11. If I bring it back to 1.9 I get this error instead:

promptflow._utils.tool_utils.FunctionPathValidationError: Unable to retrieve result due to 'Failed to parse function from function path: 'promptflow_vectordb.tool.common_index_lookup_utils.list_available_index_types'. Expected format: format 'my_module.my_func'. Detailed error: No module named 'azureml.rag''. Please contact the tool author/support team for troubleshooting assistance.

Tried to manually install de aml-rag library, but that didn't help. I noticed that the VectorDB activity does not show up in the tools in the PF vscode extension, so I'm wondering if this is a problem with the promptflow-tools library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants