AI Miaosou – Intelligent Search Generation: This API delivers the search and generation capabilities of the Miaosou homepage. It supports general search and media asset search, along with features such as user query clarification, multimodal knowledge search, and multi-agent generation. – General Search: Performs semantic retrieval on centralized knowledge data and applies multi-agent post-processing to the results, such as summary generation, abstracting, and timeline summarization. – Media Asset Search: Conducts an exhaustive full-text search to retrieve highly relevant knowledge and supports multi-agent post-processing, such as clustering and news extraction.
Operation description
Integration notes:
- This API uses the HTTP Server-Sent Events (SSE) protocol.
- The OpenAPI portal currently does not support the SSE inference protocol (direct debugging is not available). For API SDK integration examples (the Java and Python versions of the SDK are supported), see the Miaosou Best Practices documentation.
- To obtain the latest version of the Java asynchronous SDK, click this link.
Data sources for search:
Supports three dataset types. See the Miaosou Best Practices documentation for details.
- Built-in “Internet search” dataset: Supports open-domain text, images, and video (video is not yet available) from the Internet.
- Semantic (RAG) dataset: Manages enterprise private knowledge bases and supports text, images, video, and voice (voice is not yet available).
- Third-party API dataset: Integrates directly with your own enterprise search APIs.
Permissions
Prerequisites
- Log on to the Alibaba Cloud Model Studio console and confirm that Model Studio is activated and available.
- Primary account calls: a primary account has the permissions to call all APIs by default.
- RAM user calls: a RAM user has no permission (AccessForbid) to call this API by default. You must grant permissions in both the RAM console and the Alibaba Cloud Model Studio console.
RAM console authorization
Go to the RAM console to grant permissions. For detailed RAM authorization operations, see the RAM documentation. The steps are as follows:
Grant the built-in permission policy
Grant the RAM user the " AliyunAiMiaoBiFullAccess " policy.
Model Studio console authorization
With the primary account or a RAM user with Model Studio administrator permissions, open Permissions and click Add User to add the target RAM user.
Try it now
You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After the call succeeds, OpenAPI Explorer can automatically generate SDK code examples.
RAM authorization
The following table describes the authorization information for this API. You can use the Action element in RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
- Action: the specific permission point.
- Access level: the access level of each action. Valid values: Write, Read, or List.
-
Resource type: the resource types supported for authorization in the action. Details are as follows:
- Required resource types are marked with a leading asterisk (*).
- For actions that do not support resource-level authorization,
All Resourcesis used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent action: other permissions required to successfully perform the action. The caller must have the permissions of all dependent actions for the action to succeed.
Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
aimiaobi:RunSearchGeneration | create | *All Resource
| None | None |
Request syntax
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| WorkspaceId | string | Yes | ID of the Alibaba Cloud Model Studio workspace. To learn how to obtain this ID, see How to use workspaces. | llm-xxx |
| TaskId | string | No | Unique identifier for the session task. By default, you do not need to provide a TaskId. The system generates one automatically. If you specify the same TaskId in subsequent requests, those tasks are grouped into the same conversation. | 7AA2AE16-D873-5C5F-9708-15396C382EB1 |
| Prompt | string | No | Search query. | 杭州亚运会吉祥物是什么 |
| OriginalSessionId | string | No | Original session identifier. Usually empty. When non-empty, it indicates that the current conversation is based on the referenced session. The system loads parameters and search results from that session and replaces the generated result. Use this for re-generation, changing data sources, or adding new agents. | xxx |
| ChatConfig | object | No | Session configuration. | xxx |
| GenerateTechnology | string | No | Generation technology:
| copilotReference |
| SearchParam | object | No | Search parameters. | |
| StartTime | integer | No | Start time. | 1725983999999 |
| EndTime | integer | No | End time. | 1725983999999 |
| SearchSources | array<object> | No | List of search sources. | |
| object | No | Search source:You must provide both Code and DatasetName to uniquely identify a search source.For the built-in Internet search, use:
| ||
| Code | string | No | Search source type:
| SystemSearch |
| DatasetName | string | No | Unique identifier for the search source: matches the dataset name shown in the console, such as 4cb0eda3fad841758262dbe8d61191. | QuarkCommonNews |
| MultimodalSearchTypes | array | No | Search scope list. | |
| string | No | Search scope:
| text | |
| SearchTextMinScore | number | No | Text search threshold: Applies only to custom data sources (range: 0 to 1). | 0.66 |
| SearchImageMinScore | number | No | Image search threshold: Applies only to custom data sources (range: 0 to 1). | 0.66 |
| SearchVideoMinScore | number | No | Video search threshold: Applies only to custom data sources (range: 0 to 1). | 0.66 |
| SearchAudioMinScore | number | No | Voice search threshold: Applies only to custom data sources (range: 0 to 1). | 0.66 |
| CategoryUuids | array | No | Unique category identifier. | |
| string | No | Unique category identifier. | xx | |
| Tags | array | No | Tags. | |
| string | No | A tag. | xx | |
| Extend1 | string | No | Extension field 1. | xxx |
| Extend2 | string | No | Extension field 2. | xxx |
| Extend3 | string | No | Extension field 3. | xxx |
| CreateTimeStart | integer | No | Start creation time, in UNIX timestamp format. | 111111111111 |
| CreateTimeEnd | integer | No | End creation time, in UNIX timestamp format. | 111111111111 |
| DocIds | array | No | Array of document IDs. | |
| string | No | Document ID. | x | |
| DocUuids | array | No | Unique document identifier. | |
| string | No | Unique document identifier. | x | |
| SearchModels | array | No | List of search types. | |
| string | No | Search type:
| TextGenerate | |
| GenerateLevel | string | No | Detailedness of the response:
| concise |
| EnableThinking | boolean | No | Enable deep thinking. | false |
| ExcludeGenerateOptions | array | No | List of generation options to skip. | |
| string | No | Generation option to skip:
| think | |
| ModelCustomPromptTemplate | string | No | Plain-text prompt template for Q&A-style search and summary generation. Must include variables {query} and {content}. Example: | RoleYou are an expert article retrieval and Q&A assistant, skilled in article retrieval and answering user questions.GoalBased on the retrieved relevant articles, answer or express the user's question “{query}”.Constraints
Input dataRetrieved relevant articles{content} |
| ModelCustomVlPromptTemplate | string | No | Plain-text prompt template for Q&A-style search and summary generation. Must include variables {query} and {content}. Example: | RoleYou are an expert article retrieval and Q&A assistant, skilled in article retrieval and answering user questions.GoalBased on the retrieved relevant articles and images, answer or express the user's question “{query}”.Constraints
Input dataRetrieved relevant articles{content} |
| AgentContext | object | No | Context. | |
| BizContext | object | No | Business context. | |
| MultimodalMediaSelection | object | No | User-provided or selected multimodal data. | |
| SelectionType | string | No | The type of referenced data source. Valid values: ‒ all: Retrieves the full data from historical sessions. This value is supported only in clustering scenarios. ‒ selected: Retrieves data from textSearchResult during generation. | all |
| SessionId | string | No | Unique identifier for the session used as reference during generation. Used for clustering in media asset search. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| OriginalSessionId | string | No | Unique identifier for the original session. Used to retrieve full results from that session. Required only for media asset search. | Original session unique identifier: search results are taken in full from this session; currently only required for media asset search scenarios. |
| SearchModel | string | No | Used only for clustering. Pass ClusterGenerate when performing secondary clustering on cluster subtopics. | TextGenerate |
| SearchModelDataValue | string | No | When SearchModel = ClusterGenerate, enter the topic name for the subtopic. Include quotation marks if the original value has them. | 分类1 |
| TextSearchResult | object | No | Text search results. | |
| SearchResult | array<object> | No | List of text search results. | |
| object | No | Text search result. | ||
| SearchSourceType | string | No | Search source type. Same as searchSource.code. | SystemSearch |
| SearchSource | string | No | Unique identifier for the search source. Same as searchSource.datasetName. | QuarkCommonNews |
| SearchSourceName | string | No | Name of the search source. | 互联网搜索 |
| PubTime | string | No | Publication time. | 2024-11-25 14:25:59 |
| Source | string | No | Source. | 新华社 |
| Title | string | No | Title. | 文章标题 |
| Content | string | No | Content. | 文章内容 |
| Url | string | No | Article URL. | https://www.example.com/aaa.docx |
| Summary | string | No | Article summary. | 文章摘要 |
| DocUuid | string | No | Internal unique document identifier. | xxx |
| Score | number | No | Relevance score. | 1 |
| Chunks | array | No | Relevant chunks. | |
| string | No | Chunk. | xx | |
| DocId | string | No | Custom unique document ID. | 文档-自定义的唯一ID |
| SkipCurrentSupplement | boolean | No | Skip follow-up questions. | false |
| AskUser | string | No | Follow-up question. | 您想了解关于xx的哪些信息? |
| AskUserKeywords | array | No | List of recommended keywords for follow-up questions. | |
| string | No | Recommended keyword for follow-up questions. | xx | |
| UserBack | string | No | User feedback to follow-up questions. | 地点 |
| UserBackKeywords | array | No | List of keywords from user feedback to follow-up questions. | |
| string | No | Keyword from user feedback to follow-up questions. | xx | |
| CurrentStep | string | No | Current step. | think |
| NextStep | string | No | Next step. | generate |
| SupplementDataType | string | No | Data type needed for reasoning: searchQuery. | searchQuery |
| SupplementEnable | boolean | No | Specifies whether supplementation is required. | true |
| ModelId | string | No | Model ID:
| quanmiao-max |
| FileUrl | string | No | Image URL. Used for image search and hybrid text-and-image (prompt) search generation. | http://xxxx |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | Response schema. | ||
| Payload | object | Response body. | |
| Output | object | Outputs. | |
| AgentContext | object | Context data. | |
| BizContext | object | Business context. | |
| CurrentStep | string | Current step in the task. | start |
| NextStep | string | Next step: think, search, or generate. | search |
| GeneratedContent | object | Generated content. | |
| ClusterTopicResult | object | Clustering result. | |
| ClusterTopics | array<object> | List of clusters. | |
array<object> | Cluster. | ||
| Topic | string | Topic. | xx |
| ImageSearchResult | object | Image search result. | |
| SearchResult | array<object> | List of search results. | |
array<object> | Search result. | ||
| Article | object | Article. | |
| SearchSourceName | string | Search source name. | 互联网搜索 |
| Title | string | Title. | xx |
| Url | string | Article URL. | xx |
| Summary | string | Summary. | xx |
| DocUuid | string | Internal unique document identifier. | xx |
| DocId | string | Custom unique document ID. | xx |
| CategoryUuid | string | Unique category identifier. | xx |
| Tags | array | Tags. | |
string | Tag value. | xx | |
| Extend1 | string | Extension field 1. | xx |
| Extend2 | string | Extension field 2. | xx |
| Extend3 | string | Extension field 3. | xx |
| SearchSourceType | string | Dataset type. | xx |
| SearchSource | string | Dataset unique identifier. | xx |
| MediaId | string | Unique multimodal data identifier. | xx |
| FileUrl | string | File URL. | xx |
| Current | integer | Current page number. | 1 |
| Size | integer | Records per page. | 1 |
| Total | integer | Total records. | 1 |
| TextSearchResult | object | Document search results | |
| SearchResult | array<object> | Search results list | |
array<object> | Search results | ||
| SearchSourceType | string | Search source type, same as searchSource.code. | SystemSearch |
| SearchSource | string | The unique identifier of the search source. This is the same as searchSource.datasetName. | QuarkCommonNews |
| SearchSourceName | string | The name of the search source. | 互联网搜索 |
| PubTime | string | Publication time, in the format yyyy-MM-dd HH:mm:ss | 2023-04-04 08:39:09 |
| Title | string | Title | xx |
| Url | string | Article URL | xx |
| Summary | string | Summary | xx |
| DocUuid | string | Unique identifier for internal documents. | xx |
| DocId | string | The custom unique ID of the document. | xx |
| MultimodalMedias | array<object> | A list of multimodal information. | |
object | Multimodal media information | ||
| MediaId | string | The unique ID of the multimodal data. | xx |
| MediaType | string | Multimodal data file type. Valid values:
| image |
| FileUrl | string | The URL of the file. | xx |
| CategoryUuid | string | Category unique identifier | xx |
| Tags | array | Tags | |
string | Tag | xx | |
| Extend1 | string | Extension field 1 | xx |
| Extend2 | string | Extension field 2 | xx |
| Extend3 | string | Extension field 3 | xx |
| Current | integer | Current page number | 1 |
| Size | integer | Number of records per page | 1 |
| Total | integer | The total number of entries. | 1 |
| VideoSearchResult | object | Video search results | |
| SearchResult | array<object> | Search results | |
array<object> | Search results | ||
| Article | object | Article | |
| SearchSourceName | string | The name of the search source. | 互联网搜索 |
| Title | string | Title | xx |
| Url | string | The URL of the article. | xx |
| Summary | string | Summary | xx |
| DocUuid | string | The unique identifier of the internal document. | xx |
| DocId | string | Document: a custom unique ID | xx |
| CategoryUuid | string | Category | xx |
| Tags | array | Tags | |
string | Tag | xx | |
| Extend1 | string | Extension field 1 | xx |
| Extend2 | string | Extension field 2 | xx |
| Extend3 | string | Extension field 3 | x |
| SearchSourceType | string | Dataset type | xx |
| SearchSource | string | The unique identifier of the dataset. | xx |
| MediaId | string | Unique identifier for the multimodal data | xx |
| ClipInfos | array<object> | A list of matching information. | |
object | Match information | ||
| Score | number | Reference confidence level | 0.9 |
| From | number | Start time | 1 |
| To | number | End time | 1 |
| Text | string | Corresponding text, such as ASR transcription results. | xx |
| Type | string | Text type, such as ASR. | asr |
| FileUrl | string | The URL of the file. | xx |
| Current | integer | The current page number. | 1 |
| Size | integer | Number of records per page | 1 |
| Total | integer | Total records | 1 |
| AudioSearchResult | object | Audio result | |
| SearchResult | object | Audio search results | |
| FileUrl | string | URL | http://xx |
| MediaId | string | The ID. | xxx |
| ClipInfos | array<object> | List of matching information | |
object | Match information | ||
| Score | number | The threshold. | 1 |
| From | number | Start position | 1 |
| To | number | The end position. | 1 |
| Text | string | Text content | xx |
| Type | string | Type | asr |
| Article | object | Corresponding document | |
| Title | string | Title | xx |
| Url | string | The URL of the article. | http://xx |
| Summary | string | Summary | xx |
| DocUuid | string | docUuid | xx |
| DocId | string | docId | xx |
| SearchSourceName | string | Search source | xx |
| CategoryUuid | string | Category identity | xx |
| Tags | array | Tag name | |
string | Tag value. | xx | |
| Extend1 | string | Extension field 1 | xx |
| Extend2 | string | Extension field 2 | xx |
| Extend3 | string | Extension field 3 | xx |
| SearchSourceType | string | The type of the dataset. | xx |
| SearchSource | string | Unique identifier of the dataset | xx |
| Current | integer | Current page | 1 |
| Size | integer | Size | 1 |
| Total | integer | Total count | 1 |
| TextGenerate | string | Text result. | xx |
| GenerateFinished | boolean | Indicates whether the current agent has finished generating. | true |
| ExcerptResult | object | Result of answering with original sentences. | |
| TextGenerate | string | Generated text. | xx |
| SearchResult | array<object> | List of search results. | |
array<object> | Search result. | ||
| TraceabilityId | integer | Traceability ID. | 1 |
| SearchSourceType | string | Search source type. Same as searchSource.code. | SystemSearch |
| SearchSource | string | Search source unique identifier. Same as searchSource.datasetName. | QuarkCommonNews |
| SearchSourceName | string | Search source name. | 互联网搜索 |
| PubTime | string | Publication time. Format: yyyy-MM-dd HH:mm:ss. | 2023-04-04 08:39:09 |
| Title | string | Title. | xx |
| Content | string | Body. | xx |
| Url | string | Article URL. | xx |
| Summary | string | Summary. | xx |
| Excerpt | string | Content answered with original sentences. | xx |
| Select | boolean | Indicates whether it is a reference. | true |
| DocUuid | string | Internal unique document identifier. | xx |
| Score | number | Confidence score. For reference only. | 0.99 |
| Chunks | array | List of chunks. | |
string | Chunk. | xx | |
| DocId | string | Custom unique document ID. | xx |
| TextGenerateMultimodalMediaList | array<object> | List of accompanying images. | |
array<object> | Accompanying image. | ||
| Start | integer | Start position. | 1 |
| End | integer | End position. | 1 |
| DocUuid | string | Internal unique document identifier. | xx |
| MultimodalMediaList | array<object> | List of multimodal data. | |
array<object> | Multimodal data. | ||
| Article | object | Article. | |
| DocId | string | Custom unique document ID. | xx |
| DocUuid | string | Internal unique document identifier. | xx |
| SearchSourceName | string | Search source name. | 互联网搜索 |
| Title | string | Title. | xx |
| Url | string | Article URL. | xx |
| MediaId | string | Unique multimodal data identifier. | xx |
| MediaType | string | Multimodal file type. Valid values: video, image. | image |
| FileUrl | string | File URL. | xx |
| MultimodalMedias | array<object> | List of multimodal information items. | |
object | Multimodal information item. | ||
| MediaId | string | Unique multimodal data identifier. | xx |
| MediaType | string | Multimodal file type. Valid values:
| image |
| FileUrl | string | File URL. | xx |
| CategoryUuid | string | Unique category identifier. | xx |
| Extend1 | string | Extension field 1. | xx |
| Extend2 | string | Extension field 2. | xx |
| Extend3 | string | Extension field 3. | xx |
| Tags | array | Tag name. | |
string | Tag name. | xx | |
| GenerateFinished | boolean | Indicates whether the current agent has finished generating. | true |
| GenerateLevel | string | Detailedness of the response:
| concise |
| ReasonTextGenerate | string | Deep thinking content. | xx |
| NewsElementResult | object | News extraction result. | |
| TextGenerate | string | Generated text content. | x |
| NewsElementArticleList | array<object> | List of news extractions. | |
array<object> | News extraction. | ||
| TextGenerate | string | Generated text content. | xx |
| Article | object | Article. | |
| SearchSourceType | string | Search source type. Same as searchSource.code. | SystemSearch |
| SearchSource | string | Search source unique identifier. Same as searchSource.datasetName. | QuarkCommonNews |
| SearchSourceName | string | Search source name. | 互联网搜索 |
| PubTime | string | Publication time. Format: yyyy-MM-dd HH:mm:ss. | 2023-04-04 08:39:09 |
| Title | string | Title. | xx |
| Content | string | Body. | xx |
| Url | string | Article URL. | xx |
| Summary | string | Summary. | xx |
| Select | boolean | Indicates whether it is a reference. | true |
| DocUuid | string | Internal unique document identifier. | xx |
| Score | number | Confidence score. For reference only. | 0.99 |
| DocId | string | Custom unique document ID. | xx |
| CategoryUuid | string | Unique category identifier. | xx |
| Tags | array | Tag name. | |
string | Tag name. | xx | |
| Extend1 | string | Extension field 1. | xx |
| Extend2 | string | Extension field 2. | xx |
| Extend3 | string | Extension field 3. | xx |
| NewsElementList | array<object> | List of news items. | |
array<object> | News item. | ||
| Time | string | Time. | 时间 |
| Location | string | Location. | xx |
| People | string | People. | xx |
| Event | object | Event. | task-started |
| CauseList | array | List of causes. | |
string | Cause. | xx | |
| ProcessList | array | List of processes. | |
string | Process. | xx | |
| ResultList | array | List of results. | |
string | Result. | xx | |
| GenerateFinished | boolean | Indicates whether the current agent has finished generating. | true |
| TextGenerateResult | object | Summarized answer. | |
| TextGenerate | string | Text generation result. | xx |
| TextGenerateMultimodalMediaList | array<object> | List of accompanying images. | |
array<object> | Accompanying image. | ||
| Start | integer | Start position. | 1 |
| End | integer | End position. | 1 |
| MultimodalMediaList | array<object> | List of multimodal data. | |
array<object> | Multimodal data. | ||
| Article | object | Article. | |
| SearchSourceName | string | Search source name. | xx |
| Title | string | Title. | xx |
| Url | string | Article URL. | xx |
| Summary | string | Summary. | xx |
| DocUuid | string | Internal unique document identifier. | xx |
| DocId | string | Custom unique document ID. | xx |
| MediaId | string | Media asset ID. | xx |
| MediaType | string | Multimodal file type. Valid values: video, image. | image |
| FileUrl | string | File URL. | xx |
| ReferenceList | array<object> | List of reference articles. | |
object | Reference article. | ||
| TraceabilityId | integer | Traceability ID. | 1 |
| SearchSourceType | string | Search source type. Same as searchSource.code. | SystemSearch |
| SearchSource | string | Search source unique identifier. Same as searchSource.datasetName. | QuarkCommonNews |
| SearchSourceName | string | Search source name. | 互联网搜索 |
| PubTime | string | Publication time. Format: yyyy-MM-dd HH:mm:ss. | 2023-04-04 08:39:09 |
| Source | string | Source. | 新华社 |
| Title | string | Title. | xx |
| Content | string | Body. | xx |
| Url | string | Article URL. | xx |
| Summary | string | Summary. | xx |
| Select | boolean | Indicates whether it is a reference. | true |
| DocUuid | string | Internal unique document identifier. | xx |
| Score | number | Confidence score. For reference only. | 0.99 |
| Chunks | array | List of chunks. | |
string | Chunk. | xx | |
| DocId | string | Custom unique document ID. | xx |
| CategoryUuid | string | Category unique identifier | xx |
| Tags | array | Tag name. | |
string | Tag name. | xx | |
| Extend1 | string | Extension field 1. | xx |
| Extend2 | string | Extension field 2. | xx |
| Extend3 | string | Extension field 3. | xx |
| MultimodalSearchResultList | array<object> | List of multimodal search results. | |
array<object> | Multimodal search result. | ||
| SearchResult | array<object> | List of search results. | |
array<object> | Search result. | ||
| Article | object | Article. | |
| SearchSourceName | string | Search source name. | xx |
| Title | string | Title. | xx |
| Url | string | Article URL. | xx |
| Summary | string | Summary. | xx |
| DocUuid | string | Internal unique document identifier. | xx |
| DocId | string | Custom unique document ID. | xx |
| MediaId | string | Media asset ID. | xx |
| MediaType | string | Multimodal file type. Valid values: video, image. | image |
| ClipInfos | array<object> | List of matching segments. | |
object | Matching segment. | ||
| Score | number | Confidence score. For reference only. | 0.1 |
| From | number | Start time. | 1 |
| To | number | End time. | 1 |
| Text | string | Corresponding text, such as ASR transcription. | xx |
| Type | string | Type. Example: asr. | asr |
| FileUrl | string | File URL. | xx |
| TimelineDateStr | string | Timeline date. | 时间脉络-时间 |
| Current | integer | Current page. | 1 |
| Size | integer | Items per page. | 1 |
| Total | integer | Total items. | 1 |
| SearchType | string | Search type. | realtime |
| SearchQuery | string | Search query. | xx |
| GenerateTraceability | object | Traceability information. | |
| Duplicate | number | Overall traceability relevance. | 0.9 |
| Coordinates | array<object> | List of traceability locations. | |
array<object> | Traceability location. | ||
| GenerateCoordinate | object | Coordinates of the generated document block. | |
| X | integer | Number, starting from 1. | 1 |
| Y | integer | Start position. | 1 |
| Z | integer | End position. | 1 |
| NewsCoordinate | object | Coordinates of the reference document block. | |
| X | integer | Number, starting from 1. | 1 |
| Y | integer | Start position. | 1 |
| Z | integer | End position. | 1 |
| MediaType | string | Media asset type. | image |
| GenerateFinished | boolean | Indicates whether the current agent has finished generating. | true |
| GenerateLevel | string | Detailedness of the response:
| concise |
| ReasonTextGenerate | string | Deep thinking content. | xx |
| TimelineResult | object | Result of summarizing by time. | |
| TextGenerate | string | Text generation result. | xx |
| ReferenceList | array<object> | List of reference articles. | |
object | Reference article. | ||
| TraceabilityId | integer | Traceability ID. | 1 |
| SearchSourceType | string | Search source type. Same as searchSource.code. | SystemSearch |
| SearchSource | string | Search source unique identifier. Same as searchSource.datasetName. | QuarkCommonNews |
| SearchSourceName | string | Search source name. | 互联网搜索 |
| PubTime | string | Publication time. Format: yyyy-MM-dd HH:mm:ss. | 2023-04-04 08:39:09 |
| Source | string | Source. | 新华社 |
| Title | string | Title. | xx |
| Content | string | Body. | xx |
| Url | string | Article URL. | xx |
| Summary | string | Summary. | xx |
| Select | boolean | Selection status. | true |
| DocUuid | string | Internal unique document identifier. | xx |
| Score | number | Confidence score. For reference only. | 0.99 |
| Chunks | array | List of chunks. | |
string | Chunk. | xx | |
| DocId | string | Custom unique document ID. | xx |
| CategoryUuid | string | Unique category identifier. | xx |
| Tags | array | Tag name. | |
string | Tag name. | xx | |
| Extend1 | string | Extension field 1. | xx |
| Extend2 | string | Extension field 2. | xx |
| Extend3 | string | Extension field 3. | xx |
| MultimodalSearchResultList | array<object> | List of multimodal search results. | |
array<object> | Multimodal search result. | ||
| SearchResult | array<object> | List of search results. | |
array<object> | Search result. | ||
| Article | object | Article. | |
| SearchSourceName | string | Search source name. | 互联网搜索 |
| Title | string | Title. | xx |
| Url | string | Article URL. | xx |
| Summary | string | Summary. | xx |
| DocUuid | string | Internal unique document identifier. | xx |
| DocId | string | Custom unique document ID. | xx |
| MediaId | string | Unique multimodal data identifier. | xx |
| MediaType | string | Multimodal file type. Valid values: video, image. | image |
| ClipInfos | array<object> | List of matching segments. | |
object | Matching segment. | ||
| Score | number | Confidence score. For reference only. | 0.99 |
| From | number | Start time. | 1 |
| To | number | End time. | 1 |
| Text | string | Corresponding text, such as ASR transcription. | xx |
| Type | string | Type. Example: asr. | asr |
| FileUrl | string | File URL. | xx |
| TimelineDateStr | string | Date string. | 2024-09-11 |
| GenerateTraceability | object | Traceability information. | |
| Duplicate | number | Relevance score. | 0.9 |
| Coordinates | array<object> | Traceability location. | |
array<object> | Traceability location. | ||
| GenerateCoordinate | object | Coordinates of the generated document block. | |
| X | integer | Number, starting from 1. | 1 |
| Y | integer | Start position. | 1 |
| Z | integer | End position. | 1 |
| NewsCoordinate | object | Coordinates of the reference article. | |
| X | integer | Number, starting from 1. | 1 |
| Y | integer | Start position. | 1 |
| Z | integer | End position. | 1 |
| MediaType | string | Media asset type. | image |
| TextGenerateMultimodalMediaList | array<object> | List of accompanying images. | |
array<object> | Accompanying image. | ||
| Start | integer | Start position. | 1 |
| End | integer | End position. | 1 |
| MultimodalMediaList | array<object> | List of multimodal data. | |
array<object> | Multimodal data. | ||
| Article | object | Article. | |
| SearchSourceName | string | Search source name. | 互联网搜索 |
| Title | string | Title. | xxxx |
| Url | string | Article URL. | xx |
| Summary | string | Summary. | xx |
| DocUuid | string | Internal unique document identifier. | xx |
| DocId | string | Custom unique document ID. | xx |
| MediaId | string | Unique multimodal data identifier. | xx |
| MediaType | string | Multimodal file type. Valid values: video, image. | image |
| FileUrl | string | File URL. | xx |
| GenerateFinished | boolean | Indicates whether the current agent has finished generating. | true |
| ReasonTextGenerate | string | Deep thinking content. | xx |
| VideoSearchResult | object | Video search result. | |
| SearchResult | array<object> | List of search results. | |
array<object> | Search result. | ||
| Article | object | Article. | |
| SearchSourceName | string | Search source name. | 互联网搜索 |
| Title | string | Title. | xx |
| Url | string | Article URL. | xx |
| Summary | string | Summary. | xx |
| DocUuid | string | Internal unique document identifier. | xx |
| DocId | string | Custom unique document ID. | xx |
| CategoryUuid | string | Unique category identifier. | xx |
| Tags | array | Tags. | |
string | Tag. | xx | |
| Extend1 | string | Extension field 1. | xx |
| Extend2 | string | Extension field 2. | xx |
| Extend3 | string | Extension field 3. | xx |
| MediaId | string | Unique multimodal data identifier. | xx |
| ClipInfos | array<object> | List of matching segments. | |
object | Matching segment. | ||
| Score | number | Confidence score. For reference only. | 0.8 |
| From | number | Start time of the segment. | 1 |
| To | number | End time. | 1 |
| Text | string | Corresponding text, such as ASR transcription. | xx |
| Type | string | Type. Example: asr. | asr |
| FileUrl | string | File URL. | xx |
| TraceabilityId | string | Unique traceability identifier. | 1 |
| ImageSearchResult | object | Image search result. | |
| SearchResult | array<object> | List of search results. | |
array<object> | Search result. | ||
| Article | object | Article. | |
| SearchSourceName | string | Search source name. | 互联网搜索 |
| Title | string | Title. | xx |
| Url | string | Article URL. | xx |
| Summary | string | Article summary. | xx |
| DocUuid | string | Internal unique document identifier. | xx |
| DocId | string | Custom unique document ID. | xx |
| CategoryUuid | string | Unique category identifier. | xx |
| Tags | array | Tag name. | |
string | Tag name. | xx | |
| Extend1 | string | Extension field 1. | xx |
| Extend2 | string | Extension field 2. | xx |
| Extend3 | string | Extension field 3. | xx |
| MediaId | string | Media data unique identifier. | xx |
| FileUrl | string | File URL. | xx |
| TraceabilityId | string | Unique traceability identifier. | 1 |
| TextSearchResult | object | Text document search result. | |
| Current | integer | Current page. | 1 |
| Size | integer | Current page size. | 1 |
| Total | integer | Total count. | 1 |
| SearchResult | array<object> | The structure of the search result. | |
object | Search result. | ||
| DocId | string | Unique document business identifier. | xx |
| DocUuid | string | System internal unique document identifier. | xx |
| SearchSourceType | string | Data source type. | SystemSearch |
| SearchSource | string | Data source unique identifier. | QuarkCommonNews |
| SearchSourceName | string | Data source description. | xxx |
| PubTime | string | Publication time. | 2024-11-25 14:25:59 |
| Content | string | Body. | xx |
| Url | string | URL. | xx |
| Title | string | Title. | xx |
| Summary | string | Summary. | xx |
| TraceabilityId | string | Unique traceability identifier. | 1 |
| CategoryUuid | string | Unique category identifier. | xx |
| Tags | array | Tag name. | |
string | Tag name. | xx | |
| Extend1 | string | Extension field 1. | xx |
| Extend2 | string | Extension field 2. | xx |
| Extend3 | string | Extension field 3. | xx |
| AudioSearchResult | object | Voice search result. | |
| SearchResult | array<object> | Voice search result. | |
array<object> | Voice search result. | ||
| MediaId | string | ID. | xxx |
| FileUrl | string | URL. | http://xxx |
| Article | object | Associated document. | |
| Title | string | Title. | xx |
| Url | string | URL. | http://xxx |
| Summary | string | Summary. | xxx |
| DocUuid | string | UUID. | xx |
| DocId | string | ID. | xx |
| SearchSourceName | string | Search source. | xx |
| Extend1 | string | Extension field 1. | xx |
| Extend2 | string | Extension field 2. | xx |
| Extend3 | string | Extension field 3. | xx |
| Tags | array | List of tags. | |
string | Tag value. | x | |
| CategoryUuid | string | Unique category identifier. | xx |
| ClipInfos | array<object> | List of matching segments. | |
object | Matching segment. | ||
| Score | number | Threshold. | 0.9 |
| From | number | Start position. | 1 |
| To | number | End position. | 2 |
| Text | string | Text content. | xx |
| Type | string | Text type. | asr |
| TraceabilityId | string | Unique traceability identifier. | 1 |
| SearchKeywords | array | Reasoning - list of query understanding keywords. | |
string | Reasoning - query understanding keyword. | xx | |
| SearchQueryList | array | List of text search queries. | |
string | Text search query. | xx | |
| RecommendSearchQueryList | array | Generation - list of recommendations. | |
string | Generation - recommendation. | xx | |
| SupplementDataType | string | Reasoning - data type to supplement: searchQuery. | searchQuery |
| SupplementEnable | boolean | Reasoning - whether supplementation is needed. | true |
| ModelId | string | Model ID. | xx |
| TokenCalculate | object | Runtime performance statistics. | |
| FirstTokenTime | number | First token time. | 1 |
| SearchTime | number | Search time cost. | 1 |
| OutputAvgTime | number | Average number of tokens output per second. | 1 |
| Time | number | Total time cost. | 1 |
| TotalTokens | integer | Total number of tokens. | 1 |
| AskUser | string | Follow-up question. | 您想了解关于xx的哪些信息? |
| AskUserKeywords | array | List of recommended keywords for follow-up questions. | |
string | Recommended keyword for follow-up questions. | 时间 | |
| Messages | array<object> | List of messages in research mode. | |
array<object> | Message in research mode. | ||
| Id | string | Node ID. | xx |
| Content | string | Generated text. | xx |
| GenerateFinished | boolean | Indicates whether the current node has finished. | |
| Clarifications | boolean | Indicates whether clarification is needed. | |
| SearchQueries | array | List of search queries. | |
string | Search query. | xx | |
| SearchResult | array<object> | Search result. | |
array<object> | Search result. | ||
| MultimodalSearchQuery | string | Multimodal search query. | xx |
| Texts | array<object> | List of text searches. | |
object | Text search. | ||
| DocUuid | string | ID. | xx |
| Images | array<object> | List of image searches. | |
object | Image search. | ||
| MediaId | string | ID. | xx |
| Audios | array<object> | List of audio results. | |
object | Audio result. | ||
| MediaId | string | ID. | xx |
| Videos | array<object> | List of video results. | |
object | Video result. | ||
| MediaId | string | ID. | 1 |
| NodeCode | string | Node code:
| generateStartStatement |
| SearchQuery | string | Current node search query. | xx |
| Usage | object | Token usage. | |
| OutputTokens | integer | The number of output tokens. | 2 |
| InputTokens | integer | The number of input tokens. | 1 |
| TotalTokens | integer | Total token count | 3 |
| Header | object | Response header. | |
| SessionId | string | Conversation ID. | x |
| TraceId | string | Full link ID. | xx |
| TaskId | string | Task ID. | x |
| OriginSessionId | string | Source session ID. | 3f7045e099474ba28ceca1b4eb6d6e21 |
| Event | string | SSE event. | task-failed |
| ErrorCode | string | Error code. | AccessForbid |
| ErrorMessage | string | Error message. | xx |
| EventInfo | string | Event description. | xx |
| ResponseTime | integer | Response time, in milliseconds (ms). | 1 |
| RequestId | string | Unique request identifier. | xx |
Examples
Success response
JSON format
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 |