Verify that the DocUrl
field is correctly mapped to metadata_storage_path
. The metadata_storage_path
is typically where URLs are stored in Azure Cognitive Search. Verify that this field contains valid URLs for the documents in your index.
Verify also that the field DocUrl
is correctly defined in your Azure Cognitive Search Index schema. It should be a searchable field, and the metadata_storage_path
(or custom mapped field) should contain valid URLs pointing to the documents.
You can do this by reviewing the index configuration in the Azure Portal and checking whether the metadata_storage_path
field is properly populated with URLs.
Before testing with GPT 4o, query the Azure Cognitive Search Index directly using the Azure Search REST API to verify that the DocUrl
field is returning proper URLs. You can do this by sending a query to the search index:
POST https://<your-search-service>.search.windows.net/indexes/<index-name>/docs/search?api-version=2020-06-30
{
"search": "*",
"select": "DocUrl,metadata_storage_path",
"top": 5
}
If the URLs are returned correctly here, the issue is likely in how the mapping or retrieval is done in the GPT integration.
In your Power Automate flow, check that the variable messagesArray
and the data_sources
parameters are correctly formatted and are pulling the correct values from your index.
- The
embedding_dependency.endpoint
is pointing to a specific embedding model, but the URL field mapping might need to be ensured. - Verify if
url
is being passed correctly in the Power Automate JSON payload.
Depending on the role you assigned to the AI assistant (role_information
), ensure that it is not affecting the visibility or inclusion of the url
field in the returned response. You can try reducing the strictness temporarily to check if that resolves the issue.
Since you're using a vector simple hybrid query (query_type: "vector_simple_hybrid"
), ensure that the vector query process and relevance scoring are not filtering out or omitting the URL information from the results.
If none of the above steps resolve the issue, it may be helpful to add detailed logging around the point where the URL field is being processed or raise a support ticket with Azure, providing the context of the issue.
Let me know if you need help with any of these steps!