Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QnAMaker DTO changes for Multiturn #5738

Merged
merged 7 commits into from Apr 24, 2019
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,14 @@
"$ref": "#/definitions/UpdateMetadataDTO"
}
]
},
"context": {
"description": "Context associated with Qna to be updated.",
"allOf": [
{
"$ref": "#/definitions/UpdateContextDTO"
}
]
}
}
},
Expand Down Expand Up @@ -671,6 +679,31 @@
}
}
},
"UpdateContextDTO": {
"type": "object",
"description": "Update Body schema to represent context to be updated",
"properties": {
"promptsToDelete": {
This conversation was marked as resolved.
Show resolved Hide resolved
"type": "array",
"description": "List of prompts associated with qna to be deleted",
"items": {
"type": "integer",
"format": "int32"
}
},
"promptsToAdd": {
This conversation was marked as resolved.
Show resolved Hide resolved
"type": "array",
"description": "List of prompts to be added to the qna.",
"items": {
"$ref": "#/definitions/PromptDTO"
}
},
"isContextOnly": {
"type": "boolean",
"description": "To mark if a prompt is relevant only with a previous question or not.\ntrue - Do not include this QnA as search result for queries without context\nfalse - ignores context and includes this QnA in search result"
}
}
},
"DeleteKbContentsDTO": {
"type": "object",
"description": "PATCH body schema of Delete Operation in UpdateKb",
Expand Down Expand Up @@ -870,6 +903,62 @@
"items": {
"$ref": "#/definitions/MetadataDTO"
}
},
"context": {
"description": "Context of a QnA",
"allOf": [
{
"$ref": "#/definitions/ContextDTO"
}
]
}
}
},
"ContextDTO": {
"type": "object",
"description": "Context associated with Qna.",
"properties": {
"isContextOnly": {
"type": "boolean",
"description": "To mark if a prompt is relevant only with a previous question or not.\ntrue - Do not include this QnA as search result for queries without context\nfalse - ignores context and includes this QnA in search result"
},
"prompts": {
"type": "array",
"description": "List of prompts associated with the answer.",
"maxItems": 20,
"items": {
"$ref": "#/definitions/PromptDTO"
}
}
}
},
"PromptDTO": {
"type": "object",
"description": "Prompt for an answer.",
"additionalProperties": false,
This conversation was marked as resolved.
Show resolved Hide resolved
This conversation was marked as resolved.
Show resolved Hide resolved
"properties": {
"displayOrder": {
"type": "integer",
"description": "Index of the prompt - used in ordering of the prompts",
"format": "int32"
},
"qnaId": {
"type": "integer",
"description": "Qna id corresponding to the prompt - if QnaId is present, QnADTO object is ignored.",
"format": "int32"
},
"qna": {
"description": "QnADTO - Either QnaId or QnADTO needs to be present in a PromptDTO object",
"allOf": [
{
"$ref": "#/definitions/QnADTO"
}
]
},
"displayText": {
"type": "string",
"description": "Text displayed to represent a follow up question prompt",
"maxLength": 200
}
}
},
Expand Down