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] Vector Search feature missing #3836

Open
SteveSitekitcare opened this issue Oct 28, 2024 · 1 comment
Open

[BUG] Vector Search feature missing #3836

SteveSitekitcare opened this issue Oct 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SteveSitekitcare
Copy link

SteveSitekitcare commented Oct 28, 2024

Describe the bug
I've installed a fresh copy of VSCODE on my Windows 11 PC. All the dependencies go green for the vscode prompt flow plugin setup.

Image

I have downloaded a Prompt Flow from ai.azure.com I made myself. It had a vector db lookup in it.
The issue is my local vscode doesnt know how to deal with the vector node in the flow.dag.yml (see screenshot below)

Image

I read I needed to install "python -m pip install promptflow-vectordb[azure]"
But I get the following issue

Image

System Info

  • Promptflow Package Version: 1.16.1
  • Operating System: Windows 11
  • Python Version: 3.12.6

Can anyone help?

UPDATE 1

I managed to get all the tooling installed and visible in VS Code. using the following

conda create -n conda311pf python=3.11
conda activate conda311pf

pip install pymongo pyopenssl cryptography --upgrade        
pip install promptflow-vectordb[azure]      
pip install promptflow
pip install promptflow-core
pip install promptflow-tools
pip install promptflow-devkit promptflow-tracing promptflow-azure
pip install azureml-rag

But now I cant seem to use the vectorloolup even though Ive created a connection to the relevant Azure AI Search.
Image

UPDATE 2

I have managed to get further with the vector support by doing the following

  1. Create file .azureml/config.json under flow or it's parent folder.
  2. Fill the workspace info into it with below format:
{
    "subscription_id": "..",
    "resource_group": "..",
    "workspace_name": ".."
}
  1. And running the following
az login --tenant <id>
az configure --defaults group=<groupid> workspace=<workspacename>

My issue is now the index_type fails to populate with the following error

promptflow._utils.tool_utils.RetrieveToolFuncResultError: Unable to retrieve result due to 'Error when calling function promptflow_vectordb.tool.common_index_lookup_utils.list_available_index_types: Invalid URL 'None': No scheme supplied. Perhaps you meant https://None?'. Please contact the tool author/support team for troubleshooting assistance.

Image

UPDATE 3

So I havent found a solution to fixing this vectordb plugin issue, so for the time being I've worked around the issue by writing my own python implementation that does the same thing, Below is a list of resources I used to do this.

@SteveSitekitcare SteveSitekitcare added the bug Something isn't working label Oct 28, 2024
@SteveSitekitcare SteveSitekitcare changed the title [BUG] [BUG] Vector Search feature missing Oct 28, 2024
@tuukkapuranen
Copy link

Regarding your update 1, I had the same issue and found the following question asking the same. I used pip install promptflow-vectordb==0.2.10 and pip install promptflow-vectordb[azure]==0.2.10 as a successful workaround.

Perhaps there is an issue with the latest release of vectordb package.

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

2 participants