-
Notifications
You must be signed in to change notification settings - Fork 796
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] AI Search connection in mlindex_content
not detected
#3313
Comments
I've been playing around with this test with my I'm not sure if the code has changed to break this, if the generated |
Looks like there has been a change to this recently https://learn.microsoft.com/en-us/azure/machine-learning/prompt-flow/tools-reference/index-lookup-tool?view=azureml-api-2#how-to-migrate-from-legacy-tools-to-the-index-lookup-tool. |
Pretty sure you hit the same problem I did: #2876 You have to do the metadata account set manually, for whatever reason the activity is not taking the config.json file into consideration:
|
I've hardcoded a connection in the I am now getting a response of:
I have also deployed this to an AML endpoint using the deploy button in AML and get the same error there. As it stands, from what I can tell, using Azure AI Search with Prompt Flow is currently unusable unless invoked from AML Studio. |
The response didn't show the full error reason, you could reach the error detail from the app service's container logs. When deploying to Azure App service, promptflow will use connection locally ( here the locally means the connections meta stored in local sqlite ), I took a look at your flow, there are 2 connections, the AI search one and the OpenAI one. If you wanna use Azure AI connections which stored in the Azure AI project, please set the connection provider config to let promptflow fetching Azure AI connections ( you may need to add command in the container startup script, also remember to add the app service as reader roles to your AI project to access the connection keys ). Refer to here for the connection config. |
Usually we won't assume user is deploying app service with AzureAI connections, that will cause many problems, like the permission, the service principal role, balabala, so by default we will guide user setup connections again for there app service locally by setting the app service environment variables. The locally setup guides you could reach via the following documentation: |
Heya, thanks for your response! Unfortunately, even after setting the Regarding the
|
Hi, we're sending this friendly reminder because we haven't heard back from you in 30 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 7 days of this comment, the issue will be automatically closed. Thank you! |
Describe the bug
I have a
Multi-Round Q&A on Your Data
chat flow which queries Azure AI Search and passes the results, along with the chat history and question to Azure OpenAI. After exporting the flow, with the intention of deploying to Azure App Service. I am unable to successfully run a built flow (either as an executable or docker image). I believe this is due to the Azure AI Search connection being ignored.When running
pf flow serve
the flow runs correctly and I am able to get responses.I have tried this with prompt flow verisons
1.9.0
,1.10.0
and1.11.0
.How To Reproduce the bug
Steps to reproduce the behavior, how frequent can you experience the bug:
Multi-Round Q&A on your data
chat flow.pip install -r requirements.txt
pf connection create -f <file>
pf flow build --source . --output dist-docker --format docker
dist-docker/connections
directory and observe that the AI Search connection is missingExpected behavior
The AI search connection is picked up and connection file created.
Screenshots
If applicable, add screenshots to help explain your problem.
Running Information(please complete the following information):
pf -v
: [e.g. 0.0.102309906]python --version
: [e.g. python==3.10.12]Additional context
Example files, click to expand:
A shorterned and redacted example prompt flow
AI Search Connection
The text was updated successfully, but these errors were encountered: