Giter VIP home page Giter VIP logo

Comments (19)

Kevinlee49 avatar Kevinlee49 commented on June 18, 2024

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.

D-W- avatar D-W- commented on June 18, 2024

Hi @dans-msft @Adarsh-Ramanathan , could you help confirm @Kevinlee49's comment? Thanks!

from promptflow.

tvanvalkenburg avatar tvanvalkenburg commented on June 18, 2024

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:

image

image

from promptflow.

Kevinlee49 avatar Kevinlee49 commented on June 18, 2024

My index lookup looks like this

image

from promptflow.

Adarsh-Ramanathan avatar Adarsh-Ramanathan commented on June 18, 2024

@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 avatar tvanvalkenburg commented on June 18, 2024

@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.

The output of pip list is attached.
piplist.txt

from promptflow.

Adarsh-Ramanathan avatar Adarsh-Ramanathan commented on June 18, 2024

@tvanvalkenburg - can you also run pf tool list and share the output?

from promptflow.

tvanvalkenburg avatar tvanvalkenburg commented on June 18, 2024

I've attached the output
pf_tool_list.txt

from promptflow.

Adarsh-Ramanathan avatar Adarsh-Ramanathan commented on June 18, 2024

@tvanvalkenburg , can you run pip install promptflow-vectordb[azure] and see if that resolves your issue?

from promptflow.

tvanvalkenburg avatar tvanvalkenburg commented on June 18, 2024

I tried this previously and got an error. I've tried it again just now to confirm:

image

from promptflow.

Adarsh-Ramanathan avatar Adarsh-Ramanathan commented on June 18, 2024

This is the likely source of the issue that you're seeing. What python version are you using?

from promptflow.

tvanvalkenburg avatar tvanvalkenburg commented on June 18, 2024

In this environment I am runnning 3.11.6.

from promptflow.

Adarsh-Ramanathan avatar Adarsh-Ramanathan commented on June 18, 2024

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.

tvanvalkenburg avatar tvanvalkenburg commented on June 18, 2024

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:

image

from promptflow.

Adarsh-Ramanathan avatar Adarsh-Ramanathan commented on June 18, 2024

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.

diogoazevedo15 avatar diogoazevedo15 commented on June 18, 2024

Try to pip install like this:
pip install "promptflow-vectordb[azure]"

from promptflow.

tvanvalkenburg avatar tvanvalkenburg commented on June 18, 2024

Unfortunately it doesn't work. I tried in a fresh Python 3.11.6 container

from promptflow.

tvanvalkenburg avatar tvanvalkenburg commented on June 18, 2024

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.

tvanvalkenburg avatar tvanvalkenburg commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.