Hello,
Thanks for your response. Please see my API call and the API Body request below. I have attached the response as a file. I only wish to get back the answer to my question, the follow up questions and particularly the citations ONLY for my indexed documents that are relevant to the response. I see the tool: property in my response, but not the doc references you allude to. I am also getting back the entire document which I do not need for performance reasons. I do see the cited documents being returned as a filepath.
So how do I get just:
- The answer to my prompt
- The inline citations to my indexed documents
- The links to the citations as references?**
API CALL**
https://openaidevnewintellectual.openai.azure.com/openai/deployments/depoaidevnewintellectual/extensions/chat/completions?api-version=2023-08-01-preview&Content-Type=application/json
API REQUEST BODY
{
"dataSources": [
{
"type": "AzureCognitiveSearch",
"parameters": {
"endpoint": "https://csdevnewintellectual.search.windows.net",
"key": "hgpY8K5SN1gUK6age6fLO1ka4QCA5Kmy4EMytVdO6zAzSeB4oTWu",
"indexName": "pdfsazureblob-index01",
"semanticConfiguration": "default",
"queryType": "simple",
"fieldsMapping": {
"contentFields": [
// "ChapterID",
//"BookTitle",
//Title"
//"ChapterID",
//"Body",
//"Summary",
//"Thumbnail",
//"URL"
],
"contentFieldsSeparator": "|||"
}
}
}
],
"inScope": true,
"roleInformation": "You are an AI assistant that helps people find information.",
"filter": null,
"embeddingEndpoint": null,
"embeddingKey": null,
"strictness": 3,
"topNDocuments": 5,
"queryType":"simple",
"messages": [
{
"role": "user",
"content": "what is a smart contract? Please give me a bulleted list of 5 follow up questions to your response, and precede with the words 'follow up questions' as a heading."
}
],
"deployment": "depoaidevnewintellectual",
"temperature": 0,
"top_p": 1,
"max_tokens": 300,
"stop": null,
"stream": false
}