RunSearchSimilarArticles
Miao Search enables text-to-text search.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
RAM authorization
The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:
-
Action: The actions can be used in the
Actionelement of RAM permission policy statements to grant permissions to perform the operation. -
API: The API that you can call to perform the action.
-
Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.
-
Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
Resourceelement of the policy. - For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the
Resourceelement of the policy.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
-
Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.
-
Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.
Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
aimiaobi:RunSearchSimilarArticles | none | *All Resource
| None | None |
Request syntax
POST /quanmiao/aimiaosou/runSearchSimilarArticles HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| WorkspaceId | string | Yes | Unique identifier of the Alibaba Cloud Model Studio workspace. To get this ID, see Get the workspace ID. | xxxx |
| ChatConfig | object | No | Communication configuration parameters. | |
| SearchParam | object | No | Search configuration parameters. | |
| SearchSources | array<object> | No | Search sources. | |
object | No | |||
| Code | string | No | Search source type:
| SystemSearch |
| Name | string | No | Search source name (optional). | Internet search |
| DatasetName | string | No | Unique identifier of the search source. | QuarkCommonNews |
| CategoryUuids | array | No | ||
string | No | xx | ||
| Tags | array | No | ||
string | No | xx | ||
| Extend1 | string | No | xx | |
| Extend2 | string | No | xx | |
| Extend3 | string | No | xx | |
| CreateTimeStart | integer | No | 111 | |
| CreateTimeEnd | integer | No | 111 | |
| StartTime | integer | No | 1725983999999 | |
| EndTime | integer | No | 111 | |
| DocUuids | array | No | ||
string | No | xx | ||
| DocIds | array | No | ||
string | No | xx | ||
| DocTypes | array | No | ||
string | No | text | ||
| Title | string | No | Article title. | Title |
| DocType | string | No | Document type. | html |
| Url | string | Yes | Article URL. | https://xxx/xxx |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | BaseLlmResponse | ||
| Header | object | Response header. | |
| ErrorCode | string | Error code. | Error code |
| ErrorMessage | string | Error message. | Error message |
| Event | string | Server-sent event. Valid values: task-started, task-finished, and task-failed. | task-started |
| SessionId | string | Session ID. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| TaskId | string | Task ID. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| Payload | object | Response body. | |
| Output | object | Output. | |
| Text | string | Text generation result. | Text generation result |
| Articles | array<object> | Article list. | |
object | |||
| DocUuid | string | Article ID. | a26c2c1 |
| SearchSourceName | string | Search source name. | Internet search |
| PubTime | string | Publication time. | 2025-01-16 18:07:22 |
| Source | string | Source website. | xxx.com |
| Title | string | Title. | Title |
| Url | string | URL. | https://xxx |
| Summary | string | Summary. | xxx |
| DocId | string | Custom unique document ID. | xxx |
| CategoryUuid | string | xx | |
| Extend1 | string | xx | |
| Extend2 | string | xx | |
| Extend3 | string | xx | |
| Tags | array | ||
string | xx | ||
| SearchSource | string | QuarkCommonNews | |
| SearchSourceType | string | xx | |
| DocType | string | text | |
| Usage | object | instance: The image is running and used by an ECS instance. none: The image is idle and not used by any ECS instance. | |
| InputTokens | integer | Number of input tokens. | 81 |
| OutputTokens | integer | Number of output tokens. | 9 |
| TotalTokens | integer | Total number of tokens. | 50 |
| RequestId | string | Request ID. | 3f7045e099474ba28ceca1b4eb6d6e21 |
Examples
Success response
JSON format
{
"Header": {
"ErrorCode": "错误码",
"ErrorMessage": "错误信息",
"Event": "task-started",
"SessionId": "3f7045e099474ba28ceca1b4eb6d6e21",
"TaskId": "3f7045e099474ba28ceca1b4eb6d6e21"
},
"Payload": {
"Output": {
"Text": "文本生成结果",
"Articles": [
{
"DocUuid": "a26c2c1",
"SearchSourceName": "互联网搜索",
"PubTime": "2025-01-16 18:07:22",
"Source": "xxx.com",
"Title": "标题",
"Url": "https://xxx",
"Summary": "xxx",
"DocId": "xxx",
"CategoryUuid": "xx",
"Extend1": "xx",
"Extend2": "xx",
"Extend3": "xx",
"Tags": [
"xx"
],
"SearchSource": "QuarkCommonNews",
"SearchSourceType": "xx",
"DocType": "text"
}
]
},
"Usage": {
"InputTokens": 81,
"OutputTokens": 9,
"TotalTokens": 50
}
},
"RequestId": "3f7045e099474ba28ceca1b4eb6d6e21"
}
Error codes
HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action. | Please check the workspaceId assignment |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.