"Q&A on Your Data" Prompt Flow example - why python node cannot grab output from vector index lookup?

Tano 0 Reputation points
2024-02-01T14:01:01.1933333+00:00

Hi. I tried many times to replicate the prompt flow examples "Q&A on Your Data", both simple Q&A and Multi-Round versions, and I end up with the same issue. The python node generate_prompt_context is not capable or reading the input from the previous node, the vector index lookup search_question_from_indexed_docs that contains the extracted chunks from the text that I provided. I can see clearly that search_question_from_indexed_docs contains all the output I am expecting (python object that includes metadata and the 4 text chunks) and the input is stated correctly in my opinion, but after running the python node the input appear empty and consequently also the output has the same issue: User's image

User's image

User's image

User's image

All the following nodes can successfully run, but because the context is not carried on, the final result the flow is simply confirming that there is not available context to be used to answer to the question. User's image

What is wrong in my flow?

Azure Machine Learning
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
{count} votes

Your answer

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