Search augmentation
Function
RAG.
URI
POST /v1/koosearch/search
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
query |
Yes |
String |
Definition: User question. Constraints: N/A Value range: The maximum length is 1,024 characters. Default value: N/A |
knowledge_threshold |
No |
Float |
Definition: Unidata knowledge base threshold. Constraints: N/A Value range: 0-1 Default value: 0.98 |
faq_threshold |
No |
Float |
Definition: Unidata FAQ library threshold. Constraints: N/A Value range: 0-1 Default value: 0.9 |
repo_id |
No |
String |
Definition: KooSearch knowledge base 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 |
plan |
No |
SearchPlanningRsp object |
Definition: Search planning response. Constraints: N/A Value range: N/A Default value: N/A |
debug |
No |
Boolean |
Definition: Whether to enable the debug mode Constraints: N/A Value range: N/A Default value: N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
query |
String |
Definition: Original user question. Value range: N/A |
documents |
Array of Document objects |
Definition: Search result. Value range: N/A |
Parameter |
Type |
Description |
---|---|---|
title |
String |
Definition: Title. Use this name and URL to create a hyperlink. Clicking the hyperlink will take the user to the web page. Value range: N/A |
content |
String |
Definition: Content. Value range: N/A |
url |
String |
Definition: Hyperlink. Value range: N/A |
score |
Float |
Definition: Relevance. Value range: N/A |
timestamp |
String |
Definition: Update time (time when the web page is captured last time). The date format is YYYY-MM-DDTHH:MM:SS. Value range: N/A |
category |
String |
Definition: Directory, single value. Value range: N/A |
tags |
Array of strings |
Definition: Tag list. Value range: N/A |
query |
String |
Definition: Query. Value range: N/A |
type |
String |
Definition: Search type. Value range: N/A |
id |
String |
Definition: ID. Value range: N/A |
file_id |
String |
Definition: File ID. Value range: N/A |
size |
Long |
Definition: Size. Value range: N/A |
has_html |
Boolean |
Definition: Whether HTML is used. Value range: N/A |
rank |
String |
Definition: Ranking of the documents during web search recall. Value range: N/A |
source |
String |
Definition: Source Value range: N/A |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Definition: Value range: N/A |
error_msg |
String |
Definition: Error message. Value range: N/A |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Definition: Value range: N/A |
error_msg |
String |
Definition: Error message. Value range: N/A |
Example Requests
None
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
200 |
Search response. |
400 |
Client error. |
500 |
Server error. |
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