Return StoragePath as a URL in my citations when using GPT 4o on my Index.

Viswavaageesh Chandramouli 20 Reputation points
2024-10-17T08:42:32.2566667+00:00

URL field in the POST HTTP request is returned null when I call on GPT 4o deployed in Azure AI Studio on my Azure AI search Index. It's returned as part of Content in my citations.

This is despite the Index in Azure AI studio showing I've mapped url to a DocUrl ( custom field created to map to metadata_storage_path in the import and vectorize data section of Azure AI search):

User's image

HTTP Request in Power Automate:

{
  "messages": @{variables('messagesArray')},
  "max_tokens": 4096,
  "temperature": 0.7,
  "top_p": 0.95,
  "frequency_penalty": 0,
  "presence_penalty": 0,
  "stream": false,
  "data_sources": [
    {
      "type": "azure_search",
      "parameters": {
        "endpoint": "https://**********.search.windows.net",
        "index_name": "brs-***-index",
        "semantic_configuration": "brs-***-index-semantic-configuration",
        "authentication": {
          "type": "api_key",
          "key": "********"
        },
        "embedding_dependency": {
          "type": "endpoint",
          "endpoint": "https://****/openai/deployments/text-embedding-ada-002/embeddings?api-version=2023-03-15-preview",
          "authentication": {
            "type": "api_key",
            "key": "****"
          }
        },
        "query_type": "vector_simple_hybrid",
        "in_scope": true,
        "role_information": "You are an AI assistant for the company '***' called '***™ AI' that helps people find information from *** support documents.",
        "strictness": 3,
        "top_n_documents": 5
      }
    }
  ]
}

I want the URL being sent back as part of the URL instead of the Content. Current output :
User's image

I'd appreciate some help here @VenkateshDodda-MSFT

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,052 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,896 questions
{count} votes

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.