I'm using my Own Data with Azure OpenAI - Is it possible to get the filepath in the chat response

Jamil Hallal 21 Reputation points
2023-08-05T19:47:29.8066667+00:00

I'm using my own data with Azure OpenAI and the data is a list of documents stored in the blob storage. I need to have the filepath in the chat response of the post request to:

https://mytenantname.openai.azure.com/openai/deployments/my-deployment/extensions/chat/completions?api-version=2023-06-01-preview

Currently I receive the citation but the filepath is always null. The following is a part of the JSON response:

"id": null, "title": null, "filepath": null, "url": null, "metadata": {"chunking": "orignal document size=29204. Scores=3.6135864 and None.Org Highlight count=91.Filtering to chunk no. 4/Highlights=7 of size=193"}, "chunk_id": "4"}

If I check the filepath in the index in the cognitive search, I can see that the filepath is populated properly with the actual filepath.

You can also refer to the response example in Microsoft documentation and you can see that the filepath is null. Is there a way to get this filepath in the response?

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,081 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Kelly Yuan 0 Reputation points
    2024-01-11T17:33:33.4366667+00:00

    @Jamil Hallal Hey I met the same issue, but interestingly, I can get URL field response via Postman by adding fieldsMapping urlField parameter, but it doesn't work in the custom connector. Any new findings?


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.