microsoft / promptflow

Build high-quality LLM apps - from prototyping, testing to production deployment and monitoring.
https://microsoft.github.io/promptflow/
MIT License
9.51k stars 869 forks source link

[BUG] Vector Search feature missing #3836

Open SteveSitekitcare opened 2 weeks ago

SteveSitekitcare commented 2 weeks ago

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

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.

tuukkapuranen commented 4 days ago

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.