Return StoragePath as a URL in my citations when using GPT 4o on my Index.
Viswavaageesh Chandramouli
20
Reputation points
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):
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 :
I'd appreciate some help here @VenkateshDodda-MSFT
Sign in to answer