Azure AI Studio: Error in Index Lookup Step of Prompt Flow ('search_function_construction')

Hector Rosado 45 Reputation points
2024-12-23T23:46:04.3433333+00:00

I'm experiencing an issue with Azure AI Studio while working on a prompt flow. I had successfully deployed multiple versions before, but suddenly, I started encountering an error during the index lookup step. The error message is:

lookup : Execution failure in 'lookup': (Exception) Exception occured in search_function_construction.

Here are the steps I’ve taken to troubleshoot:

  1. Tried running the same prompt flow with different AI search services and indexes.
  2. Created new projects with entirely new prompt flows, but the error persists.
  3. Tested the flow with different compute sessions (both compute instance and serverless), but the issue remains.
  4. Deployed the prompt flow to a live endpoint, and the error still occurs during execution.

The error seems to be related to the search_function_construction, but I'm unable to pinpoint the root cause.

I would appreciate any insights or suggestions on how to resolve this issue. Are there any known limitations or configurations I might be missing?

Thank you in advance for your help!

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,119 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,453 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,001 questions
{count} votes

Accepted answer
  1. romungi-MSFT 48,141 Reputation points Microsoft Employee
    2024-12-26T06:56:34.3766667+00:00

    @Hector Rosado Deirdre O'Regan Arun Sivaraj A P Hosoya Kazuki/細谷 和輝 Could you please try this workaround and start/restart the compute session and check if it works?

    • Open requirements.txt from expanding the files section and clicking on requirements.txt
    • User's image
    • Insert following 3 lines before promptflow-vectordb[azure]
    azureml-rag==0.2.36 
    langchain>=0.1.20,<0.3   
    langchain-community<0.3.0
    
    • Start/restart the compute session.
    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.