Obtaining Feedback
Function
Query feedback on a specific question.
URI
GET /v1/{project_id}/applications/{application_id}/uni-search/feedback-manage/{question_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
question_id |
Yes |
String |
Definition: Question ID. Constraints: N/A Value range: The value can contain 1 to 64 characters. It can only contain letters, digits, underscores (_), and hyphens (-). Default value: N/A |
project_id |
Yes |
String |
Definition: Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. Constraints: N/A Value range: The value can contain 1 to 64 characters. Only digits, letters, hyphens (-), and underscores (_) are allowed. The value must start with a letter. Default value: N/A |
application_id |
Yes |
String |
Definition: Application ID. For details about how to obtain the application ID, see Obtaining an Application ID. Constraints: Character string Value range: The value can contain 1 to 64 characters. Only digits, letters, hyphens (-), and underscores (_) are allowed. The value must start with a letter. Default value: N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
repo_id |
No |
String |
Definition: Knowledge base ID. This parameter is required for granting user permissions. Constraints: N/A Value range: 1 to 64 characters. Default value: N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Definition: Token used for API authentication. For details about how to obtain the token, see Obtaining an IAM User Token. Constraints: N/A Value range: N/A Default value: N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
feedback_id |
String |
Definition: Feedback ID. Value range: N/A |
repo_id |
String |
Definition: Knowledge base ID. Value range: N/A |
repo_name |
String |
Definition: Knowledge base name. Value range: N/A |
question_id |
String |
Definition: Q&A ID. Value range: N/A |
chart_id |
String |
Definition: Session ID. Value range: N/A |
question |
String |
Definition: Question. Value range: N/A |
answer |
String |
Definition: Answer. Value range: N/A |
expect_answer |
String |
Definition: Expected answer. Value range: N/A |
feedback_detail |
String |
Definition: Feedback details. Value range: N/A |
user_name |
String |
Definition: Username. Value range: N/A |
feedback_type |
String |
Definition: Feedback type. Value range:
|
feedback_second_type |
String |
Definition: Level-2 feedback type. Value range: N/A |
feedback_date_time |
String |
Definition: Feedback time. Value range: N/A |
feedback_status |
Integer |
Definition: Feedback type. Value range:
|
context_relation |
String |
Definition: Context association type. Value range: N/A |
revised_answer |
String |
Definition: Revise questions. Value range: N/A |
revised_reason |
String |
Definition: Revise reasons. Value range: N/A |
standard_answer |
String |
Definition: Standard answer. Value range: N/A |
project_id |
String |
Definition: Project ID. Value range: N/A |
question_model |
QuestionModel object |
Definition: Model. Value range: N/A |
question_reference_models |
Array of QuestionReferenceModel objects |
Definition: Reference model. Value range: N/A |
Parameter |
Type |
Description |
---|---|---|
question_id |
String |
Definition: Question ID. Value range: N/A |
chat_id |
String |
Definition: Session ID. Value range: N/A |
question |
String |
Definition: Question. Value range: N/A |
rewrited_question |
String |
Definition: Rewritten question. Value range: N/A |
answer |
String |
Definition: Answer. Value range: N/A |
pangu_answer |
String |
Definition: Pangu answer. Value range: N/A |
user_name |
String |
Definition: Username. Value range: N/A |
create_date_time |
String |
Definition: Chat occurrent time. Value range: N/A |
feedback_status |
Integer |
Definition: Whether there is any feedback Value range: N/A |
feedback_type |
String |
Definition: Feedback type. Value range: N/A |
pangu_question |
String |
Definition: Pangu question. Value range: N/A |
feedback_date_time |
String |
Definition: Feedback time. Value range: N/A |
feedback_detail |
String |
Definition: Feedback details. Value range: N/A |
context_relation |
String |
Definition: Associated context. Value range: N/A |
revised_answer |
String |
Definition: Optimization result. Value range: N/A |
revised_reason |
String |
Definition: Optimized question. Value range: N/A |
standard_answer |
String |
Definition: Standard answer. Value range: N/A |
project_id |
String |
Definition: Project ID. Value range: N/A |
search_plan |
String |
Definition: Search planning content. Value range: N/A |
web_reference |
String |
Definition: Web reference. Value range: N/A |
question_reference_models |
Array of QuestionReferenceModel objects |
Definition: Reference file and segment details of the current answer. Value range: N/A |
Parameter |
Type |
Description |
---|---|---|
id |
Integer |
Definition: Reference chunk ID. Value range: N/A |
file_id |
String |
Definition: File ID. Value range: N/A |
reference_id |
String |
Definition: Reference file ID. Value range: N/A |
question_id |
String |
Definition: Question ID. Value range: N/A |
doc_index |
String |
Definition: Reference document index. Value range: N/A |
doc_title |
String |
Definition: Reference document name. Value range: N/A |
subtitle |
String |
Definition: Subheading of the reference segment. Value range: N/A |
doc_content |
String |
Definition: Reference segment content. Value range: N/A |
score |
Float |
Definition: Relevance score between the reference segment and the question. Value range: N/A |
type |
String |
Definition: Type. Value range: N/A |
page_num |
Integer |
Definition: Page number. Value range: N/A |
component_num |
Integer |
Definition: Number of components. Value range: N/A |
extend |
String |
Definition: JSON data used for document highlighting and locating. Example: { "element_id": "abc123", "elements": [ "elem1", "elem2", "elem3" ], "pdf_coordinate": [ [ 202, 687 ], [ 1031, 687 ] ] } Constraints: This parameter is supported only in clusters 25.7.T1 or later. Value range: N/A |
Example Requests
/v1/1235345/applications/12353454/uni-search/feedback-manage/57886567883 Obtain feedbacks.
Example Responses
Status code: 200
Feedback details.
{ "question_id" : "123533453", "question" : "Will AI replace humans?", "answer" : "Yes", "feedback_detail" : "", "user_name" : "", "feedback_type" : "like", "feedback_date_time" : "168866789978", "feedback_status" : 0, "context_relation" : "not_closely", "revised_answer" : "", "revised_reason" : "", "standard_answer" : "" }
Status Codes
Status Code |
Description |
---|---|
200 |
Feedback details. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot