Hello
I am developing a chatbot for Teams using the "gpt-35-turbo-16k" model of Azure AI Chat.
We are currently training the chatbot to use a cognitive search index as a data source and verifying the content of the responses.
If a hyperlink is included in the response text, the URL will be only the title name and the link will not be valid.
For links, I would like to specify the full path address "metadata_spo_item_weburi" in the index as the URL.
What should I do?
http request
https://***.openai.azure.com/openai/deployments/***/extensions/chat/completions?api-version=2023-09-01-preview
{
"dataSources": [
{
"parameters": {
"endpoint": "https://***.search.windows.net",
"indexName": "sharepoint-index",
"key": "****",
"queryType": "semantic",
"semanticConfiguration": "semantic**",
"topNDocuments": 10,
"fieldsMapping": {
"titleField": "metadata_spo_item_name",
"urlField": "metadata_spo_item_weburi",
"filepathField": "metadata_spo_item_weburi",
"inScope": true,
"contentFields": [
"content"
],
"contentFieldsSeparator": "\n"
}
},
"type": "AzureCognitiveSearch"
}
],
"messages": [
{
"content": "PM研修の資料一覧をください",
"role": "user"
}
],
"temperature": 0,
"top_p": 1,
"frequency_penalty": 1,
"presence_penalty": 0.4,
"max_tokens": 2000,
"stop": null
}
{
"id": "***",
"model": "gpt-35-turbo-16k",
"created": 1111,
"object": "extensions.chat.completion",
"choices": [
{
"index": 0,
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": "以下はPM研修の資料一覧です:\n\n1. [03_PM研修_リスク管理の実践.pptx](03_PM研修_リスク管理の実践.pptx)\n -。\n\n2. [02_PM研修_ト゛キュメントの実践.pptx](file:///02_PM研修_ト゛キュメントの実践.pptx)\n ",
"end_turn": true,
"context": {
"messages": [
{
"role": "tool",
"content": "****",
"end_turn": false
}
]
}
}
}
]
}