Hello,
Hope this message finds you well. We work with Azure OpenAI and Azure Cognitive search, and we developed an OpenAI model that works with our data. We make API calls from Postman in order to query our model. Here is the request:
POST https://boi.openai.azure.com/openai/deployments/dep2/extensions/chat/completions?api-version=2023-08-01-preview
{
"messages": [
{
"role": "user",
"content": "Dress",
}
],
"dataSources": [
{
"type": "AzureCognitiveSearch",
"parameters": {
"endpoint": "XXXXXX",
"key": "XXXXXX",
"indexName": "XXXXX"
}
}
]
}
Since September 13, the api-version 2023-07-01-preview does not work anymore and this exact same request stopped working. Here is the answer we get:
{
"id": "8460041f-f0a4-409a-8e1b-e63b85170f50",
"model": "gpt-35-turbo-16k",
"created": 1694684697,
"object": "extensions.chat.completion",
"choices": [
{
"index": 0,
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": "The requested information is not available in the retrieved data. Please try another query or topic.",
"end_turn": true,
"context": {
"messages": [
{
"role": "tool",
"content": "{\"citations\": [], \"intent\": \"[]\"}",
"end_turn": false
}
]
}
}
}
]
}
The OpenAI part seems to work, but the Azure Cognitive Search does not product any result. When we query Cognitive search alone, we get:
{
"@odata.context": "https://bayretail-sc.search.windows.net/indexes('product-gpt-index')/$metadata#docs(*)",
"value": [
{
"@search.score": 5.926734,
"Product_ID": "34",
"Product_Name": "Boho Print Maxi Dress",
"Price": "42.99",
"Description": "Channel your bohemian spirit with this flowy maxi dress adorned with a boho-inspired print. The dress features a deep V-neckline and adjustable spaghetti straps. Color: Rustic Orange",
"Gender": "Women's",
"Url": "https://example.com/product/34"
},
...
We can see it works perfectly. Using Cognitive search in the "dataSources" part seems to be the problem. But once again, it was still working perfectly two days ago.
Thanks for your help !