HOW CAN I SET FIELDS MAPPING ON AZURE OPENAI WITH COGNITIVE SEARCH

Anonymous
2023-07-19T20:20:53.9233333+00:00

Hey, guys. I'm studying a way to connect on cogntive search with the azure openai. I got success with that configuration

dataSources: [
      {
        type: "AzureCognitiveSearch",
        parameters: {
          endpoint: COGNITIVE_SEARCH_URL,
          key: COGNITIVE_SEARCH_API_KEY,
          indexName: indexName,
          topNDocuments: 5,
        },
      },
    ],

But I don't know how could I set the fields mapping, because I need to choose the option for the url return .

User's image

On the documentation have the option for the fieldsMapping, but don't have the example how to do this.

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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,341 Reputation points
    2023-07-24T14:21:44.42+00:00

    @Anonymous Thanks for reaching here! It seems you are looking for example documentation for the option for the fieldsMapping, you may refer to here- Map fields in indexers - Azure Cognitive Search | Microsoft Learn

    Hope this helps.


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.