Comments (19)
It seems to be a duplicate of #788
And if you use the Vector Index Lookup tool, it has been deprecated. Therefore, I recommend you to upgrade to the new index lookup tool.
It is well written in this link.
https://learn.microsoft.com/en-us/azure/ai-studio/how-to/prompt-flow-tools/index-lookup-tool
from promptflow.
Hi @dans-msft @Adarsh-Ramanathan , could you help confirm @Kevinlee49's comment? Thanks!
from promptflow.
It seems to be a duplicate of #788
And if you use the Vector Index Lookup tool, it has been deprecated. Therefore, I recommend you to upgrade to the new index lookup tool.
It is well written in this link. https://learn.microsoft.com/en-us/azure/ai-studio/how-to/prompt-flow-tools/index-lookup-tool
I believe that I am using the index lookup tool. My code is below:
- name: lookup_question_from_indexed_docs
type: python
source:
type: package
tool: promptflow_vectordb.tool.common_index_lookup.search
This is the code that is auto-generated in the Studio when adding an IndexLookup:
from promptflow.
My index lookup looks like this
from promptflow.
@tvanvalkenburg, can you share the full output of running pip list
? I suspect you're missing one or more dependencies - maybe from forgetting to install promptflow-vectordb's azure
exta? Running pf tool list
and looking for errors in the output could also be useful.
from promptflow.
@tvanvalkenburg, can you share the full output of running
pip list
? I suspect you're missing one or more dependencies - maybe from forgetting to install promptflow-vectordb'sazure
exta? Runningpf tool list
and looking for errors in the output could also be useful.
The output of pip list
is attached.
piplist.txt
from promptflow.
@tvanvalkenburg - can you also run pf tool list
and share the output?
from promptflow.
I've attached the output
pf_tool_list.txt
from promptflow.
@tvanvalkenburg , can you run pip install promptflow-vectordb[azure]
and see if that resolves your issue?
from promptflow.
I tried this previously and got an error. I've tried it again just now to confirm:
from promptflow.
This is the likely source of the issue that you're seeing. What python version are you using?
from promptflow.
In this environment I am runnning 3.11.6.
from promptflow.
That's strange - I ran pip install promptflow-vectordb[azure]
in a python 3.11.6 container to verify, and it does work for me. Do you have a custom index source configuration in your environment, by any chance?
In any case, based on your pip list
output, the only packages you're missing from the azure extra are azure-keyvault and azureml-rag. Can you try manually installing them?
azure.keyvault>=4.2.0
azureml.rag[azure,azure_cosmos_mongo_vcore,cognitive_search,faiss,milvus,pinecone]>=0.2.23
from promptflow.
So I think we may be onto something.
Firstly, I have been using Python installed through pyenv
. I think that this may be the cause of problem related to not being able to find promptflow-vectordb[azure]
.
I've tried installing the packages in a container build on the official Python 3.11.6 image, and pip is able to find the packages. However, when trying to run the install I get the following error:
from promptflow.
It's strange that pip is attempting to install azureml-rag 0.2.23 instead of 0.2.25, which is the latest version that's compliant with that version constraint.
I set up container with pyenv, ran pyenv install 3.11.6
followed by pyenv global 3.11.6
, pip install promptflow promptflow-tools
, and pip install promptflow-vectordb[azure]
; everything ran without errors, including installing azureml-rag 0.2.25
.
Is there anything else different about your environment that you think would be helpful in getting a repro going?
from promptflow.
Try to pip install like this:
pip install "promptflow-vectordb[azure]"
from promptflow.
Unfortunately it doesn't work. I tried in a fresh Python 3.11.6 container
from promptflow.
An update on this issue. I ran into a similar problem trying to install the az ml
CLI. The problem with the CLI was that there is no arm64 wheel for azureml-dataprep-rslex
. More details can be found at this issue: Azure/azure-cli#28600.
I got around the problem with the CLI by installing an older version, as is documented in the issue linked above. However, I am still not able to make it work when trying to install promptflow-vectordb
.
from promptflow.
I was able to solve the issue by creating a conda environment with x_86 architecture. Within that environment I am able to install the required packages without issue. It appears that the problem is that the Azure ML Python SDK has gaps on Apple's ARM chips.
from promptflow.
Related Issues (20)
- ImportError: DLL load failed while importing _rust: The specified procedure could not be found HOT 4
- [BUG] Non-retryable server side error: Operation returned an invalid status 'Bad Request'. HOT 1
- [BUG] Evaluate on test dataset using evaluate() with SimilarityEvaluator returns NaN HOT 3
- [BUG] Function `evaluate(...)` from promptflow.evals.evaluate can't be used / imported. HOT 3
- [BUG] pf.config.set failed with MissingAzurePackage: "promptflow[azure]" is required for this functionality, please install it by running "pip install promptflow-azure" with your version. HOT 2
- [BUG] I only want to send 1 trace, but PromptFlow sends 4 every time HOT 6
- [BUG] How do I change the icons in the trace report? HOT 1
- [BUG] Parsing of tool calls does not support arrays in the "arguments"
- [BUG] Cannot connect to promptflow tracing during release deploy pipeline HOT 10
- Bulk processing of inputs in an LLM - bulk categorization HOT 6
- All Blank Input Fields in PromptFlow UI HOT 3
- [FeatureAsk] Unable to use tracing in a promptflow endpoint that has been deployed to Azure Machine Learning HOT 3
- [BUG] Error when running AOAI function calling example HOT 3
- [BUG] Potential incompatible with mlflow>=2.13.1 HOT 1
- Integrate a APIM in front of deployments in PromptFlow HOT 1
- [Feature Request] Hiding Sensitive Inputs HOT 1
- [BUG] Promptflow tracing is not compatible with Azure Web Apps HOT 1
- [BUG] PFClient.run using flow with AsyncIterator raises `TypeError: cannot pickle '_thread.lock' object`
- [BUG] [VSCode Extension]Embedding Tool Error HOT 3
- Set Trace Destination fails with Cosmos DB is disabled error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promptflow.