Forum Discussion

harishalwala's avatar
harishalwala
Copper Contributor
May 08, 2024

Azure AI for Organization data. How to refer to the file names in prompts to get response

Hi

I went through Azure AI documentation to come up with ChatGPT like feature using Azure AI services for my data set.

 

I have created Azure Storage account and container to store my files. Created the deployment with GPT3.5 turbo model. Linked the container as source.

 

I could able to get the response for the prompts.

 

However, I would like to be more precise to get the answers from a given file uploaded, instead of referring to all the files.

I tried prompts like--

'Refer to "abc.txt", and generate the summary',

'Consider file with name "abc.txt", get me the entities from this file'. 

 

Unfortunately, I dont get the relevant response. I see model is not able to identify my reference file in the prompt.

 

Can you tell me how to ask or refer a file to get responses from that file in the prompt.

 

Do I need to use fields in indexe. I used fields "title" and "filepath" that gets generated automatically. Still no luck.

 

Can you help me here please.

1 Reply

  • harishalwala's avatar
    harishalwala
    Copper Contributor
    After researching more, I could get the results by adding the file name as [<filename>] will help the application to look in to this file for asked question.

Resources