Adding more fields to retrieve via Azure OpenAI API

johananmahendran 115 Reputation points
2024-09-28T14:35:03.6666667+00:00

Hi,

I am using Azure OpenAI API to search data from my Azure AI Search service. I have additional fields in the search index, that I would like to retrieve alongside the filename, url, filepath, content and vector fields.

On the reference, it just mentions these fields (and vector field). I am not sure if this is truly impossible or if it is a hidden feature.

My current plan is to use one of the fields, e.g. url, to search for the id on the AI Search document and retrieve the full document using this id. But it seems like an extra step if Azure OpenAI API can do it already.

I would like some insight on this.

Thank you.

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,049 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,192 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sina Salam 11,991 Reputation points
    2024-09-30T02:16:04.8166667+00:00

    Hello johananmahendran,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    You can retrieve an additional field from your Azure AI Search index using the Azure OpenAI API. Also, to ensure that your search index schema includes these additional fields and that your search query explicitly requests them. Follow these links for more step by steps: https://learn.microsoft.com/en-us/azure/ai-services/openai/references/azure-search and https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/use-your-data

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

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.