diff options
Diffstat (limited to 'data/zh_cn/iqs/2024-11-11/api-docs.php')
| -rw-r--r-- | data/zh_cn/iqs/2024-11-11/api-docs.php | 2344 |
1 files changed, 2344 insertions, 0 deletions
diff --git a/data/zh_cn/iqs/2024-11-11/api-docs.php b/data/zh_cn/iqs/2024-11-11/api-docs.php new file mode 100644 index 0000000..16d7008 --- /dev/null +++ b/data/zh_cn/iqs/2024-11-11/api-docs.php @@ -0,0 +1,2344 @@ +<?php return [ + 'version' => '1.0', + 'info' => [ + 'style' => 'ROA', + 'product' => 'IQS', + 'version' => '2024-11-11', + ], + 'directories' => [ + 'UnifiedSearch', + [ + 'id' => 206773, + 'title' => '其他', + 'type' => 'directory', + 'children' => [ + 'GenericSearch', + 'AiSearch', + 'GenericAdvancedSearch', + 'GlobalSearch', + ], + ], + [ + 'id' => 0, + 'title' => '其它', + 'type' => 'directory', + 'children' => [ + 'GetIqsUsage', + 'MultimodalSearch', + 'ReadPageBasic', + 'ReadPageScrape', + ], + ], + ], + 'components' => [ + 'schemas' => [ + 'AISearchQuery' => [ + 'title' => '搜索查询条件', + 'type' => 'object', + 'properties' => [ + 'searchEngine' => [ + 'title' => '搜索引擎', + 'type' => 'string', + 'required' => false, + 'enum' => [ + 'quark', + 'bing', + 'baidu', + 'google', + ], + ], + 'searchPlan' => [ + 'title' => '套餐计划', + 'type' => 'string', + 'required' => false, + 'enum' => [ + 'basic', + 'advanced', + ], + ], + 'query' => [ + 'title' => '待查询问题', + 'type' => 'string', + 'required' => false, + ], + 'cardQuery' => [ + 'title' => '卡片类型', + 'type' => 'string', + 'required' => false, + 'enum' => [ + 'active', + 'off', + ], + ], + 'page' => [ + 'title' => '页码', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + ], + 'sessionId' => [ + 'title' => '会话id', + 'type' => 'string', + 'required' => false, + ], + 'card' => [ + 'title' => '是否开启卡片搜索', + 'type' => 'string', + 'required' => false, + ], + 'timeRange' => [ + 'title' => '网页发布时间范围', + 'type' => 'string', + 'required' => false, + 'enum' => [ + 'OneDay', + 'OneWeek', + 'OneMonth', + 'OneYear', + 'NoLimit', + ], + ], + ], + ], + 'GenericSearchResult' => [ + 'title' => '搜索结果', + 'type' => 'object', + 'properties' => [ + 'pageItems' => [ + 'title' => '网页内容列表', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/ScorePageItem', + ], + ], + 'requestId' => [ + 'title' => 'requestId', + 'type' => 'string', + 'example' => '123456', + ], + 'weiboItems' => [ + 'title' => '微博列表', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/WeiboItem', + ], + ], + 'searchInformation' => [ + 'title' => '搜索信息', + '$ref' => '#/components/schemas/SearchInformation', + ], + 'sceneItems' => [ + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/SceneItem', + ], + ], + 'queryContext' => [ + 'title' => '查询上下文信息', + '$ref' => '#/components/schemas/QueryContext', + ], + ], + ], + 'GetIqsUsageResult' => [ + 'type' => 'object', + 'properties' => [ + 'records' => [ + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'date' => [ + 'type' => 'string', + ], + 'billingQps' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'totalCalls' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'valueAddedSummary' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'failedCalls' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'valueAddedAdvanced' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'subAccountId' => [ + 'type' => 'string', + ], + 'engineType' => [ + 'type' => 'string', + ], + 'ladderType' => [ + 'type' => 'string', + ], + 'api' => [ + 'type' => 'string', + ], + 'successCalls' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'mainAccountId' => [ + 'type' => 'string', + ], + ], + ], + ], + ], + ], + 'GlobalPageItem' => [ + 'title' => '搜索结果内容项', + 'description' => '搜索网页结果', + 'type' => 'object', + 'properties' => [ + 'snippet' => [ + 'title' => '搜索结果的description截取(文本格式)', + 'description' => '搜索结果的description截取(文本格式)', + 'type' => 'string', + 'example' => '100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,小米SU7确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...', + ], + 'link' => [ + 'title' => '搜索结果指向的完整网址', + 'description' => '搜索结果指向的完整网址', + 'type' => 'string', + 'required' => true, + 'example' => 'https://baijiahao.baidu.com/s?id=1787881554557805096', + ], + 'title' => [ + 'title' => '搜索结果标题(纯文本)', + 'description' => '搜索结果标题(纯文本)', + 'type' => 'string', + 'required' => true, + 'example' => '小米SU7售价22.99万元起 高管亲自辟谣:发布前不会有价格', + ], + ], + ], + 'GlobalQueryContext' => [ + 'description' => '查询上下文信息', + 'type' => 'object', + 'properties' => [ + 'originalQuery' => [ + 'title' => '初始查询条件', + 'description' => '初始查询条件', + 'type' => 'object', + 'properties' => [ + 'query' => [ + 'description' => '查询关键字', + 'type' => 'string', + 'example' => '特朗普关税最新消息', + ], + 'page' => [ + 'description' => '页码', + 'type' => 'string', + 'example' => '1', + ], + 'timeRange' => [ + 'description' => '时间范围', + 'type' => 'string', + 'example' => 'NoLimit', + ], + ], + ], + ], + ], + 'GlobalSceneItem' => [ + 'description' => '场景化垂类 API召回', + 'type' => 'object', + 'properties' => [ + 'detail' => [ + 'description' => 'JSON结构的明细信息', + 'type' => 'string', + 'example' => '{'."\n" + .'"snippet": "截至2025年3月7日,SpaceX星舰已经发射了8次,并取得4次成功及4次失败。",'."\n" + .'"snippetHighlighted": ["8次"],'."\n" + .'"title": "星舰发射任务列表"'."\n" + .'}', + ], + 'type' => [ + 'description' => '垂类数据的类型', + 'type' => 'string', + 'example' => 'answerBox', + ], + ], + ], + 'GlobalSearchInformation' => [ + 'title' => '搜索执行信息', + 'description' => '搜索执行信息', + 'type' => 'object', + 'properties' => [ + 'total' => [ + 'title' => '总数', + 'description' => '总数', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '10339', + ], + 'searchTime' => [ + 'title' => '搜索时间(ms)', + 'description' => '搜索时间(ms)', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1200', + ], + ], + ], + 'GlobalSearchResult' => [ + 'title' => '搜索结果', + 'description' => '搜索结果', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'title' => 'requestId', + 'description' => 'requestId', + 'type' => 'string', + 'example' => '123456', + ], + 'queryContext' => [ + 'description' => '查询上下文', + '$ref' => '#/components/schemas/GlobalQueryContext', + ], + 'pageItems' => [ + 'title' => '网页内容列表', + 'description' => '网页内容列表', + 'type' => 'array', + 'items' => [ + 'description' => '召回网页内容', + '$ref' => '#/components/schemas/GlobalPageItem', + ], + ], + 'sceneItems' => [ + 'description' => '场景化垂类API召回', + 'type' => 'array', + 'items' => [ + 'description' => '场景化垂类API结构体', + '$ref' => '#/components/schemas/GlobalSceneItem', + ], + ], + 'searchInformation' => [ + 'description' => '搜索信息', + '$ref' => '#/components/schemas/GlobalSearchInformation', + ], + ], + ], + 'IncludeImage' => [ + 'title' => '图片信息', + 'description' => '搜索结果网址中的图片,最多三张', + 'type' => 'object', + 'properties' => [ + 'imageLink' => [ + 'title' => '图片链接', + 'type' => 'string', + 'required' => false, + 'example' => 'http://k.sinaimg.cn/n/sinakd20121/594/w2048h946/20240328/74cf-32c0d62e843df76567d760b4459d57c1.jpg/w700d1q75cms.jpg', + ], + 'width' => [ + 'title' => '图片宽度(像素)', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '700', + ], + 'height' => [ + 'title' => '图片高度(像素)', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '324', + ], + ], + 'example' => 'https://pics1.baidu.com/feed/a50f4bfbfbedab64b41c99a3014dc9ce78311ef4@f_auto?token=c559d5772cb91aae52ed5a8272c4525e&f=jpeg', + ], + 'LocationInfo' => [ + 'type' => 'object', + 'properties' => [ + 'ip' => [ + 'type' => 'string', + ], + 'city' => [ + 'type' => 'string', + ], + ], + ], + 'MultimodalOriginalQuery' => [ + 'type' => 'object', + 'properties' => [ + 'query' => [ + 'type' => 'string', + ], + ], + ], + 'MultimodalQueryContext' => [ + 'description' => '原始查询内容', + 'type' => 'object', + 'properties' => [ + 'originalQuery' => [ + 'description' => '阿里巴巴', + '$ref' => '#/components/schemas/MultimodalOriginalQuery', + ], + ], + ], + 'MultimodalSearchBody' => [ + 'description' => '搜索条件', + 'type' => 'object', + 'properties' => [ + 'query' => [ + 'description' => '查询内容', + 'type' => 'string', + 'example' => '阿里巴巴', + ], + 'advancedParams' => [ + 'description' => '附加查询项,比如屏蔽站点', + 'type' => 'object', + 'example' => '{'."\n" + .' "excludeSites": "www.360doc.com,weibo.com"'."\n" + .' }', + ], + ], + ], + 'MultimodalSearchOutput' => [ + 'description' => '查询结果', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'description' => '请求id', + 'type' => 'string', + 'example' => 'sdfsd234-2vxcg345-345vc', + ], + 'queryContext' => [ + 'description' => '查询上下文信息', + '$ref' => '#/components/schemas/MultimodalQueryContext', + ], + 'searchInformation' => [ + 'description' => '搜索基本信息', + '$ref' => '#/components/schemas/SearchInformation', + ], + 'imageItems' => [ + 'description' => '图像列表', + 'type' => 'array', + 'items' => [ + 'description' => '图像信息', + '$ref' => '#/components/schemas/UnifiedImageItem', + ], + ], + ], + ], + 'QueryContext' => [ + 'type' => 'object', + 'properties' => [ + 'originalQuery' => [ + 'title' => '初始查询条件', + 'type' => 'object', + 'properties' => [ + 'query' => [ + 'type' => 'string', + ], + 'timeRange' => [ + 'type' => 'string', + ], + 'industry' => [ + 'type' => 'string', + ], + 'page' => [ + 'type' => 'string', + ], + ], + ], + 'rewrite' => [ + 'type' => 'object', + 'properties' => [ + 'enabled' => [ + 'title' => '改写是否开启', + 'type' => 'boolean', + ], + 'timeRange' => [ + 'title' => '改写后的timeRange,空标识无改写或者改写结果与原始结果一致', + 'type' => 'string', + ], + ], + ], + ], + ], + 'ReadPageBody' => [ + 'description' => 'post body(json 格式)', + 'type' => 'object', + 'properties' => [ + 'url' => [ + 'description' => '解析的目标地址,必须以 http:// 或 https:// 开头', + 'type' => 'string', + 'required' => true, + 'example' => 'https://help.aliyun.com/document_detail/2837301.html?spm=a2c4g.11186623.help-menu-2837261.d_0_0_0.59ed3e95CppOt2&scm=20140722.H_2837301._.OR_help-T_cn~zh-V_1', + ], + 'timeout' => [ + 'description' => '全链路处理超时时间,单位:ms'."\n" + ."\n" + .'可选值:[0, 180000]'."\n" + ."\n" + .'默认值:60000', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '60000', + ], + 'pageTimeout' => [ + 'description' => 'url 读取超时时间,pageTimeout 应小于 timeout 时长'."\n" + ."\n" + .'默认值:10000', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '10000', + ], + 'formats' => [ + 'description' => '解析结果格式'."\n" + .'- rawHtml:目标站点的 html'."\n" + .'- html: 根据 readabilityMode 处理后的页面内容'."\n" + .'- markdown:根据 html 转换成的 markdown 内容'."\n" + .'- text:html 中的文本内容', + 'type' => 'array', + 'items' => [ + 'description' => '默认值:[\'html\', \'markdown\', \'text\']', + 'type' => 'string', + 'example' => '[\'html\', \'markdown\', \'text\']', + ], + ], + 'location' => [ + 'description' => '无需传入', + 'type' => 'string', + 'example' => 'null', + ], + 'maxAge' => [ + 'description' => '最大缓存时间,单位(秒),默认值:1296000。'."\n" + ."\n" + .'- 若缓存时间小于 maxAge,则返回缓存内容;'."\n" + ."\n" + .'- 若 maxAge 等于 0,则不使用缓存。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1296000', + ], + 'readability' => [ + 'description' => '解析结果可读性配置', + 'type' => 'object', + 'properties' => [ + 'readabilityMode' => [ + 'description' => '- none:不删除信息,默认为 none'."\n" + ."\n" + .'- normal: 基于自研算法,剔除目标页面无关信息(页头/页脚,导航等)'."\n" + ."\n" + .'- article: 基于自研算法,获取站点主要正文内容(适用于博客、新闻站点,不适用于目录页、导航页)', + 'type' => 'string', + 'enumValueTitles' => [ + 'normal' => 'normal', + 'none' => 'none', + 'article' => 'article', + ], + 'example' => 'none', + ], + 'excludeAllImages' => [ + 'description' => '是否剔除所有图片'."\n" + ."\n" + .'默认值:false', + 'type' => 'boolean', + 'example' => 'false', + ], + 'excludeAllLinks' => [ + 'description' => '是否剔除所有链接'."\n" + ."\n" + .'默认值:false', + 'type' => 'boolean', + 'example' => 'false', + ], + 'excludedTags' => [ + 'description' => '指定排除的标签', + 'type' => 'array', + 'items' => [ + 'description' => '[]', + 'type' => 'string', + 'example' => '[\'form\', \'header\', \'footer\', \'nav\']', + ], + ], + ], + ], + ], + ], + 'ReadPageItem' => [ + 'description' => 'post body (json 格式)', + 'type' => 'object', + 'properties' => [ + 'statusCode' => [ + 'description' => '1. 若目标站点请求成功,返回目标 url 的 HttpCode。'."\n" + ."\n" + .'2. 若目标站点请求失败,返回 IQS 定制错误码:'."\n" + ."\n" + .' 2.1 4030:目标站点安全限制(robots.txt、安全策略等)'."\n" + .' '."\n" + .' 2.2 4080:请求超时'."\n" + .' '."\n" + .' 2.3 4290:触发站点限流策略'."\n" + .' '."\n" + .' 2.4 5010:未知异常', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '200', + ], + 'errorMessage' => [ + 'description' => '目标 url 相关的错误', + 'type' => 'string', + 'example' => 'null', + ], + 'rawHtml' => [ + 'description' => '目标 url 的原始 html', + 'type' => 'string', + 'example' => '<!doctype html><html lang=\\"en\\"><head><title>Example Domain</title><meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1\\"><style>body{background:#eee;width:60vw;margin:15vh auto;font-family:system-ui,sans-serif}h1{font-size:1.5em}div{opacity:0.8}a:link,a:visited{color:#348}</style><body><div><h1>Example Domain</h1><p>This domain is for use in documentation examples without needing permission. Avoid use in operations.<p><a href=\\"https://iana.org/domains/example\\">Learn more</a></div></body></html>\\n', + ], + 'html' => [ + 'description' => '目标 url 的可读 html', + 'type' => 'string', + 'example' => '<html>\\n<head><title>Example Domain</title></head>\\n<body><div>\\n<h1>Example Domain</h1>\\n<p>This domain is for use in documentation examples without needing permission. Avoid use in operations.</p>\\n<p><a href=\\"https://iana.org/domains/example\\">Learn more</a></p>\\n</div></body>\\n</html>', + ], + 'text' => [ + 'description' => '目标 url 的文本内容', + 'type' => 'string', + 'example' => '# Example Domain\\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\\nLearn more\\n', + ], + 'markdown' => [ + 'description' => '目标 url 的 markdown 内容', + 'type' => 'string', + 'example' => '# Example Domain\\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\\n[Learn more](https://iana.org/domains/example)\\n', + ], + 'screenshot' => [ + 'type' => 'string', + ], + ], + ], + 'ReadPageScrapeBody' => [ + 'description' => 'post body(json 格式)', + 'type' => 'object', + 'properties' => [ + 'url' => [ + 'description' => '解析的目标地址,必须以 http:// 或 https:// 开头', + 'type' => 'string', + 'required' => true, + 'example' => 'https://www.example.com', + ], + 'timeout' => [ + 'description' => '全链路处理超时时间,单位:ms'."\n" + ."\n" + .'可选值:[0, 180000]'."\n" + ."\n" + .'默认值:60000', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '60000', + ], + 'pageTimeout' => [ + 'description' => '等待目标站点资源完全加载的超时时间,pageTimeout 应小于 timeout 时长'."\n" + ."\n" + .'默认值:15000', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '15000', + ], + 'location' => [ + 'description' => '无需传入', + 'type' => 'string', + 'example' => 'null', + ], + 'maxAge' => [ + 'description' => '最大缓存时间,单位(秒),默认值:1296000。'."\n" + .'1. 若缓存时间小于 maxAge,则返回缓存内容;'."\n" + .'2. 若 maxAge 等于 0,则不使用缓存。', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1296000', + ], + 'readability' => [ + 'description' => '解析结果可读性配置', + 'type' => 'object', + 'properties' => [ + 'readabilityMode' => [ + 'description' => 'none:不删除信息,默认为 none'."\n" + ."\n" + .'normal: 基于自研算法,剔除目标页面无关信息(页头/页脚,导航等)'."\n" + ."\n" + .'article: 基于自研算法,获取站点主要正文内容(适用于博客、新闻站点,不适用于目录页、导航页)', + 'type' => 'string', + 'example' => 'none', + ], + 'excludeAllImages' => [ + 'description' => '是否剔除所有图片'."\n" + ."\n" + .'默认值:false', + 'type' => 'boolean', + 'example' => 'false', + ], + 'excludeAllLinks' => [ + 'description' => '是否剔除所有链接'."\n" + ."\n" + .'默认值:false', + 'type' => 'boolean', + 'example' => 'false', + ], + 'excludedTags' => [ + 'description' => '指定排除的标签', + 'type' => 'array', + 'items' => [ + 'description' => '[]', + 'type' => 'string', + 'example' => '[\'form\', \'header\', \'footer\', \'nav\']'."\n", + ], + ], + ], + ], + 'formats' => [ + 'description' => '解析结果格式'."\n" + ."\n" + .'- rawHtml:目标站点的 html'."\n" + .'- html: 根据 readabilityMode 处理后的页面内容'."\n" + .'- markdown:根据 html 转换成的 markdown 内容'."\n" + .'- text:html 中的文本内容'."\n" + .'- screenshot: 目标站点截图', + 'type' => 'array', + 'items' => [ + 'description' => '默认值:["html", "markdown", "screenshot"]', + 'type' => 'string', + 'example' => '["html", "markdown", "screenshot"]'."\n" + ."\n", + ], + ], + ], + ], + 'RequestContents' => [ + 'description' => '搜索请求返回字段定义', + 'type' => 'object', + 'properties' => [ + 'mainText' => [ + 'title' => '是否返回正文, 默认:false', + 'description' => '是否返回正文, 默认:false', + 'type' => 'boolean', + ], + 'markdownText' => [ + 'title' => '是否返回markdown, 默认:false', + 'description' => '是否返回markdown, 默认:false', + 'type' => 'boolean', + ], + 'summary' => [ + 'title' => '是否返回增强summary, 默认:false, summary会单独收费', + 'description' => '是否返回增强summary, 默认:false, summary会单独收费', + 'type' => 'boolean', + ], + 'rerankScore' => [ + 'title' => '是否开启Rerank,并返回RerankScore, 默认:true', + 'description' => '是否开启Rerank,并返回RerankScore, 默认:true', + 'type' => 'boolean', + ], + 'richMainBody' => [ + 'type' => 'boolean', + ], + ], + ], + 'SceneItem' => [ + 'type' => 'object', + 'properties' => [ + 'detail' => [ + 'type' => 'string', + ], + 'type' => [ + 'type' => 'string', + ], + ], + ], + 'ScorePageItem' => [ + 'title' => '搜索结果内容项', + 'description' => '搜索网页结果', + 'type' => 'object', + 'properties' => [ + 'publishTime' => [ + 'title' => '发布时间', + 'type' => 'integer', + 'format' => 'int64', + 'required' => true, + 'example' => '1704426524000', + ], + 'score' => [ + 'title' => '分数', + 'type' => 'number', + 'format' => 'double', + 'required' => false, + 'example' => '0.234325235', + ], + 'images' => [ + 'title' => '图片信息', + 'type' => 'array', + 'items' => [ + 'required' => false, + '$ref' => '#/components/schemas/IncludeImage', + ], + 'required' => false, + ], + 'htmlTitle' => [ + 'title' => '搜索结果标题(HTML格式)', + 'type' => 'string', + 'required' => true, + 'example' => '<em>小米</em>SU7售价22.99万元起 高管亲自辟谣:发布前不会有<em>价格</em>-百家号', + ], + 'displayLink' => [ + 'title' => '此搜索结果网址的缩略版本', + 'type' => 'string', + 'required' => true, + 'example' => 'baijiahao.baidu.com', + ], + 'mime' => [ + 'title' => '搜索结果的MIME类型', + 'type' => 'string', + 'required' => false, + 'example' => 'text/html', + ], + 'pageMap' => [ + 'title' => '补充页面信息', + 'type' => 'object', + 'required' => false, + 'additionalProperties' => [ + 'title' => '补充页面信息', + 'type' => 'string', + 'required' => false, + ], + ], + 'cardType' => [ + 'title' => '搜索结果模板,不同模板返回的字段不同', + 'type' => 'string', + 'required' => true, + 'example' => 'structure_web_info', + ], + 'link' => [ + 'title' => '搜索结果指向的完整网址', + 'type' => 'string', + 'required' => true, + 'example' => 'https://baijiahao.baidu.com/s?id=1787881554557805096', + ], + 'mainText' => [ + 'title' => '搜索结果的全文本,部分场景存在', + 'type' => 'string', + 'required' => false, + 'example' => '昨天 , 小米 汽车 没有 发布 , 但 相关 的 信息 透露 的 差 不 多 了 。 '."\n" + .' 在 发布 会 现场 , 雷军 直接 称 小米 S U 7 对 标 特斯拉 保时捷 , 有 100 项 行业 领先 , 可见 “ 遥遥 领先 ” 已经 不再 是 华为 专利 了 ? '."\n" + .' '."\n" + .' 而 在 介绍 技术 时 , 雷军 也 从 电机 、 电池 、 大 压铸 、 自动 驾驶 、 智能 座舱 等 五 大 方面 展开 , 充分 展示 了 小米 汽车 的 技术 以及 技术 储备 , 能 堆 的 料 , 全都 堆 上去 了 … … '."\n" + .' 大家 比较 感 兴趣 的 性能 方面 , 2 . 78 s 的 0 - 100 km / h 加速 , 265 km / h 的 最高 时速 ', + ], + 'htmlSnippet' => [ + 'title' => '搜索结果的description截取(HTML格式)', + 'type' => 'string', + 'required' => true, + 'example' => '100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,<em>小米SU7</em>确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...', + ], + 'title' => [ + 'title' => '搜索结果标题(纯文本)', + 'type' => 'string', + 'required' => true, + 'example' => '小米SU7售价22.99万元起 高管亲自辟谣:发布前不会有价格', + ], + 'hostname' => [ + 'title' => '站点名称', + 'type' => 'string', + 'example' => '新华网', + ], + 'hostLogo' => [ + 'title' => '站点的logo', + 'type' => 'string', + 'example' => 'https://s2.zimgs.cn/ims?kt=url&at=smstruct&key=aHR0cHM6Ly9ndy5hbGljZG4uY29tL0wxLzcyMy8xNTY1MjU2NjAwLzJhL2YwL2I0LzJhZjBiNDQxMGI5YmVlMDVjOGVlNGJmODk3MTNkNTFjLnBuZw==&sign=yx:CUlNNQVJQjFrk3Kxt2F3KWhTOFU=&tv=400_400', + ], + 'siteLabel' => [ + 'title' => '站点标签:目前支持两种,'."\n" + .'* 权威媒体'."\n" + .' * 党政机关', + 'type' => 'string', + 'example' => '权威媒体', + ], + 'markdownText' => [ + 'type' => 'string', + ], + 'snippet' => [ + 'title' => '搜索结果的description截取(文本格式)', + 'type' => 'string', + 'example' => '100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,小米SU7确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...', + ], + 'summary' => [ + 'type' => 'string', + ], + 'hostAuthorityScore' => [ + 'type' => 'number', + 'format' => 'double', + ], + 'richMainBody' => [ + 'type' => 'string', + ], + 'websiteAuthorityScore' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'correlationTag' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + 'SearchCredits' => [ + 'description' => '基础搜索服务计量', + 'type' => 'object', + 'properties' => [ + 'genericTextSearch' => [ + 'title' => '基础版文本搜索次数', + 'description' => '基础版文本搜索次数', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'liteAdvancedTextSearch' => [ + 'title' => 'LiteAdvanced搜索次数', + 'description' => 'LiteAdvanced搜索次数', + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + 'SearchInformation' => [ + 'title' => '搜索执行信息', + 'description' => '搜索执行信息', + 'type' => 'object', + 'properties' => [ + 'total' => [ + 'title' => '总数', + 'description' => '总数', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '13', + ], + 'searchTime' => [ + 'title' => '搜索时间(ms)', + 'description' => '搜索时间(ms)', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '700', + ], + ], + ], + 'UnifiedCostCredits' => [ + 'description' => '搜索请求计量信息', + 'type' => 'object', + 'properties' => [ + 'search' => [ + 'description' => '基本搜索服务计量', + '$ref' => '#/components/schemas/SearchCredits', + ], + 'valueAdded' => [ + 'description' => '增值包服务计量', + '$ref' => '#/components/schemas/ValueAddedCredits', + ], + ], + ], + 'UnifiedImageItem' => [ + 'description' => '图片信息', + 'type' => 'object', + 'properties' => [ + 'publishedTime' => [ + 'description' => '网页发布时间,ISO时间格式', + 'type' => 'string', + 'example' => '2022-07-05T00:54:42+08:00', + ], + 'title' => [ + 'description' => '图片标题', + 'type' => 'string', + 'example' => '阿里巴巴现在以主业上为主,以电商为主,以能够盈利的业务为主', + ], + 'imageUrl' => [ + 'description' => '图片地址', + 'type' => 'string', + 'example' => 'http://pic.rmb.bdstatic.com/bjh/bb87f566c0c/241218/f7936f25837b20211e5ef88d7980c143.jpeg', + ], + 'hostPageUrl' => [ + 'description' => '图片所属网页地址', + 'type' => 'string', + 'example' => 'http://mbd.baidu.com/newspage/data/dtlandingsuper?nid=dt_4541580238898912926', + ], + 'height' => [ + 'description' => '高度', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1330', + ], + 'width' => [ + 'description' => '图片宽度', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1000', + ], + ], + ], + 'UnifiedOriginalQuery' => [ + 'description' => '原始请求', + 'type' => 'object', + 'properties' => [ + 'query' => [ + 'description' => '请求Query', + 'type' => 'string', + 'example' => '杭州美食', + ], + 'timeRange' => [ + 'description' => '发布时间范围', + 'type' => 'string', + 'example' => 'NoLimit', + ], + ], + ], + 'UnifiedPageItem' => [ + 'title' => '搜索结果标题(纯文本)', + 'description' => '搜索网页结果', + 'type' => 'object', + 'properties' => [ + 'title' => [ + 'title' => '搜索结果指向的完整网址', + 'description' => '搜索结果指向的完整网址', + 'type' => 'string', + 'example' => '上海车展大佬齐聚 问界成为话题中心', + ], + 'link' => [ + 'title' => '搜索结果指向的完整网址', + 'description' => '搜索结果指向的完整网址', + 'type' => 'string', + 'example' => 'https://hea.china.com/articles/20250427/202504271666343.html', + ], + 'snippet' => [ + 'title' => '文本摘要', + 'description' => '文本摘要', + 'type' => 'string', + 'example' => '2025上海车展期间,最火爆的无疑是问界品牌,成为众多大佬的话题中心。赛力斯集团董事长(创始人)张兴海、华为常务董事、终端BG董事长余承东、著名演员陈道明、宁德时代董事长曾毓群都分享了对问界的使用体验。 ...', + ], + 'publishedTime' => [ + 'title' => '网页发布时间,ISO时间格式', + 'description' => '网页发布时间,ISO时间格式', + 'type' => 'string', + 'example' => '2025-04-27T20:36:04+08:00', + ], + 'mainText' => [ + 'title' => '搜索网页的全文', + 'description' => '搜索网页的全文', + 'type' => 'string', + 'example' => '2025上海车展期间,最火爆的无疑是问界品牌,成为众多大佬的话题中心。赛力斯集团董事长(创始人)张兴海、华为常务董事、终端BG董事长余承东、著名演员陈道明、宁德时代董事长曾毓群都分享了对问界的使用体验。\\n“问界M9、M8正重构 中国 豪华汽车市场格局。”张兴海说, (此处省略....)。\\n责任编辑:kj005\\n 文章投诉热线:157 3889 8464 投诉邮箱:7983347 [email protected]\\n关键词:', + ], + 'markdownText' => [ + 'title' => 'markdown内容', + 'description' => 'markdown内容', + 'type' => 'string', + 'example' => '# 上海车展大佬齐聚 问界成为话题中心**来源**:财讯网 '."\n" + .'**时间**:2025-04-27 20:36:04 '."\n" + .'2025上海车展期间,最火爆的无疑是问界品牌,成为众多大佬的话题中心。赛力斯集团董事长(创始人)张兴海、华为常务董事、终端BG董事长余承东、著名演员陈道明、宁德时代董事长曾毓群都分享了对问界的使用体验。'."\n" + .'余承东表示,问界M9、M8、M7和M5,都深受消费者喜爱!问界M9连续3个月中国纯电车型保值率第一!纯电、增程车型包揽新能源大型SUV保值率前两名!'."\n" + .'“自己是问界M9的用户'."\n" + .'*责任编辑:kj005*文章投诉热线: 157 3889 8464 '."\n" + .'投诉邮箱: [email protected] ', + ], + 'images' => [ + 'title' => '搜索结果网址中的图片,最多三张', + 'description' => '搜索结果网址中的图片,最多三张', + 'type' => 'array', + 'items' => [ + 'description' => '图片地址', + 'type' => 'string', + 'example' => '["http://objectnsg.oss-cn-beijing.aliyuncs.com/yhdoc/202504/27/202504272025531927023138.png"]', + ], + ], + 'hostname' => [ + 'title' => '站点名称', + 'description' => '站点名称', + 'type' => 'string', + 'example' => '中华网', + ], + 'hostLogo' => [ + 'title' => '站点Logo', + 'description' => '站点Logo', + 'type' => 'string', + 'example' => 'https://www.china.com/zh_cn/img1905/2023/logo.png', + ], + 'summary' => [ + 'title' => '增强摘要,400字+', + 'description' => '增强摘要,400字+', + 'type' => 'string', + 'example' => '2025上海车展期间,最火爆的无疑是问界品牌,成为众多大佬的话题中心。赛力斯集团董事长(创始人)张兴海、华为常务董事、终端BG董事长余承东、著名演员陈道明、宁德时代董事长曾毓群都分享了对问界的使用体验。“自己是问界M9的用户,用车感受非常好。”陈道明表示,体验后才敢现场给大家推荐。未来,希望能实现问界M9的特别定制,让外观、内饰、座椅布局等,更符合自己的使用需求。据悉,2025款问界M9上市25天就交付超1万,已连续11个月蝉联50万元级豪车车销冠;问界M8上市4天,大定就突破了五万 台 ,深受市场任何和用户喜爱...“问界M9、M8正重构 中国 豪华汽车市场格局。”张兴海说, 近 期曾极限试驾问界M8,从重庆出发,历时55小时、行驶超3500公里抵达冈仁波齐。整个行程中,车辆的安全 性 和体验感都表现出色。', + ], + 'rerankScore' => [ + 'title' => 'rerank分数', + 'description' => 'rerank分数', + 'type' => 'number', + 'format' => 'double', + 'example' => '0.7786493301391602', + ], + 'hostAuthorityScore' => [ + 'type' => 'number', + 'format' => 'double', + ], + 'richMainBody' => [ + 'type' => 'string', + ], + 'websiteAuthorityScore' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'correlationTag' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + 'UnifiedQueryContext' => [ + 'description' => '搜索上下文', + 'type' => 'object', + 'properties' => [ + 'engineType' => [ + 'title' => '使用的搜索引擎', + 'description' => '使用的搜索引擎', + 'type' => 'string', + 'example' => 'Generic', + ], + 'originalQuery' => [ + 'title' => '初始请求', + 'description' => '初始请求', + '$ref' => '#/components/schemas/UnifiedOriginalQuery', + ], + 'rewrite' => [ + 'title' => '改写后的结果', + 'description' => '改写后的结果', + '$ref' => '#/components/schemas/UnifiedRewrite', + ], + ], + ], + 'UnifiedRewrite' => [ + 'description' => '改写后请求', + 'type' => 'object', + 'properties' => [ + 'enabled' => [ + 'title' => '改写是否开启', + 'description' => '改写是否开启', + 'type' => 'boolean', + 'example' => 'true', + ], + 'timeRange' => [ + 'title' => '改写后的timeRange', + 'description' => '改写后的timeRange', + 'type' => 'string', + 'example' => 'OneYear', + ], + ], + ], + 'UnifiedSceneItem' => [ + 'description' => '垂直场景结果', + 'type' => 'object', + 'properties' => [ + 'detail' => [ + 'title' => 'Json结构的结果', + 'description' => 'Json结构的结果', + 'type' => 'string', + 'example' => '{\\"title\\": \\"伦敦时间\\", \\"targetTimeZone\\": \\"Europe/London\\", \\"targetTimeMillisecond\\": \\"1745820817178\\", \\"targetTime\\": \\"2025-04-28 14:13:37\\", \\"beijingTimeZone\\": \\"PRC\\", \\"beijingTimeMillisecond\\": \\"1745846017178\\"}', + ], + 'type' => [ + 'title' => '类型', + 'description' => '类型', + 'type' => 'string', + 'example' => 'time', + ], + ], + ], + 'UnifiedSearchInformation' => [ + 'description' => '搜索基本信息', + 'type' => 'object', + 'properties' => [ + 'searchTime' => [ + 'title' => '搜索耗时,ms', + 'description' => '搜索耗时,ms', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1028', + ], + ], + ], + 'UnifiedSearchInput' => [ + 'type' => 'object', + 'properties' => [ + 'contents' => [ + '$ref' => '#/components/schemas/RequestContents', + ], + 'query' => [ + 'title' => '查询内容,长度限制:1-100', + 'type' => 'string', + ], + 'engineType' => [ + 'title' => '引擎类型:默认:Generic;可选值:Generic/GenericAdvanced, GenericAdvanced会单独计费返回更多条记录', + 'type' => 'string', + 'enum' => [ + 'Generic', + 'GenericAdvanced', + 'LiteAdvanced', + ], + ], + 'category' => [ + 'type' => 'string', + ], + 'timeRange' => [ + 'title' => '内容发布时间范围', + 'type' => 'string', + 'enum' => [ + 'OneDay', + 'OneWeek', + 'OneMonth', + 'OneYear', + 'NoLimit', + ], + ], + 'location' => [ + 'type' => 'string', + ], + 'locationInfo' => [ + '$ref' => '#/components/schemas/LocationInfo', + ], + 'advancedParams' => [ + 'title' => '高级搜索参数', + 'type' => 'object', + ], + ], + ], + 'UnifiedSearchOutput' => [ + 'title' => 'requestId,用于问题排查', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'title' => '网页结果', + 'type' => 'string', + ], + 'queryContext' => [ + 'title' => '搜索上下文信息', + '$ref' => '#/components/schemas/UnifiedQueryContext', + ], + 'pageItems' => [ + 'title' => '网页搜索结果', + 'type' => 'array', + 'items' => [ + '$ref' => '#/components/schemas/UnifiedPageItem', + ], + ], + 'sceneItems' => [ + 'title' => '垂直API场景化结果', + 'type' => 'array', + 'items' => [ + 'title' => '', + '$ref' => '#/components/schemas/UnifiedSceneItem', + ], + ], + 'costCredits' => [ + 'title' => '消耗的次数信息', + '$ref' => '#/components/schemas/UnifiedCostCredits', + ], + 'searchInformation' => [ + 'title' => '搜索基本信息', + '$ref' => '#/components/schemas/UnifiedSearchInformation', + ], + ], + ], + 'ValueAddedCredits' => [ + 'description' => '增值包计量信息', + 'type' => 'object', + 'properties' => [ + 'summary' => [ + 'title' => '增值包-增强摘要', + 'description' => '增值包-增强摘要', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '1', + ], + 'advanced' => [ + 'title' => '增值包-增强版搜索', + 'description' => '增值包-增强版搜索', + 'type' => 'integer', + 'format' => 'int32', + 'example' => '0', + ], + ], + ], + 'WeiboItem' => [ + 'title' => '微博信息', + 'description' => '搜索Weibo结果, 开启卡片搜索后第一页返回', + 'type' => 'object', + 'properties' => [ + 'images' => [ + 'title' => '图片信息', + 'type' => 'array', + 'items' => [ + 'title' => '微博的附带图片', + 'type' => 'string', + 'required' => false, + 'example' => 'http://s2.zimgs.cn/ims?at=sc&kt=url&key=aHR0cHM6Ly93eDIuc2luYWltZy5jbi9vcmozNjAvMDA3Umc1eHVseTFob3RsenJ5YjVkajMwaWgwYTY0M2UuanBn&sign=yx:PfSsUObz9lhnCl5gf5vY-GeYrm0=&tv=0_0&p=', + ], + 'required' => false, + ], + 'publishDisplayTime' => [ + 'title' => '发布时间', + 'type' => 'string', + 'required' => true, + 'example' => '1小时前', + ], + 'cardType' => [ + 'title' => '搜索结果模板,微博场景固定为:weibo_strong', + 'type' => 'string', + 'required' => true, + 'example' => 'weibo_strong', + ], + 'homepageLink' => [ + 'title' => '用户的微博主页', + 'type' => 'string', + 'required' => false, + 'example' => 'https://m.weibo.cn/u/7761793874?luicode=20000061&lfid=5024099350350075', + ], + 'link' => [ + 'title' => '搜索结果微博地址', + 'type' => 'string', + 'required' => true, + 'example' => 'https://m.weibo.cn/detail/5024099350350075?wm=90194_90009', + ], + 'htmlSnippet' => [ + 'title' => '微博内容', + 'type' => 'string', + 'required' => true, + 'example' => '【小调查:你会买<em>小米SU7</em>吗?】#小米SU7路测覆盖300多城市#4月17日,@小米汽车 发文称SU7道路测试覆盖全国300多个城市,涵盖极寒,极热天气,总里程数高达540万公里,目前仍在进行中。 网页链接', + ], + 'username' => [ + 'title' => '微博用户名', + 'type' => 'string', + 'required' => false, + 'example' => '白鹿科技', + ], + ], + ], + ], + ], + 'apis' => [ + 'UnifiedSearch' => [ + 'summary' => '通晓统一搜索API,简单快捷的接入全网通用搜索能力。', + 'path' => '/linked-retrieval/linked-retrieval-entry/v1/iqs/search/unified', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREalibababcpLY9PPK', + 'FEATUREalibababcpF36Z7L', + 'FEATUREalibababcpLJW8HN', + 'FEATUREalibababcpPYBUBJ', + 'FEATUREalibababcpRLTK4J', + 'FEATUREalibababcpVV9OXO', + 'FEATUREalibababcpSJV4QL', + 'FEATUREalibababcpTYS4DT', + 'FEATUREalibababcpCIGQ7X', + 'FEATUREalibababcpJ4YYLV', + ], + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => [ + 'description' => '搜索请求参数', + 'required' => false, + '$ref' => '#/components/schemas/UnifiedSearchInput', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '搜索返回参数', + '$ref' => '#/components/schemas/UnifiedSearchOutput', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"queryContext\\": {\\n \\"engineType\\": \\"\\",\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\",\\n \\"timeRange\\": \\"\\"\\n },\\n \\"rewrite\\": {\\n \\"enabled\\": true,\\n \\"timeRange\\": \\"\\"\\n }\\n },\\n \\"pageItems\\": [\\n {\\n \\"title\\": \\"\\",\\n \\"link\\": \\"\\",\\n \\"snippet\\": \\"\\",\\n \\"publishedTime\\": \\"2025-04-07T10:15:30.123+08:00\\",\\n \\"mainText\\": \\"\\",\\n \\"markdownText\\": \\"\\",\\n \\"images\\": [\\n \\"\\"\\n ],\\n \\"hostname\\": \\"\\",\\n \\"hostLogo\\": \\"\\",\\n \\"summary\\": \\"\\",\\n \\"rerankScore\\": 0,\\n \\"hostAuthorityScore\\": 0,\\n \\"richMainBody\\": \\"\\",\\n \\"websiteAuthorityScore\\": 0,\\n \\"correlationTag\\": 0\\n }\\n ],\\n \\"sceneItems\\": [\\n {\\n \\"detail\\": \\"\\",\\n \\"type\\": \\"\\"\\n }\\n ],\\n \\"costCredits\\": {\\n \\"search\\": {\\n \\"genericTextSearch\\": 0,\\n \\"liteAdvancedTextSearch\\": 0\\n },\\n \\"valueAdded\\": {\\n \\"summary\\": 0,\\n \\"advanced\\": 0\\n }\\n },\\n \\"searchInformation\\": {\\n \\"searchTime\\": 0\\n }\\n}","type":"json"}]', + 'title' => '通晓统一搜索API', + ], + 'GenericSearch' => [ + 'summary' => '通用搜索。', + 'path' => '/linked-retrieval/linked-retrieval-entry/v2/linkedRetrieval/commands/genericSearch', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREalibababcpLY9PPK', + 'FEATUREalibababcpPYBUBJ', + 'FEATUREalibababcpSJV4QL', + 'FEATUREalibababcpTYS4DT', + 'FEATUREalibababcpCIGQ7X', + 'FEATUREalibababcpJ4YYLV', + ], + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'query', + 'in' => 'query', + 'schema' => [ + 'title' => '待查询问题', + 'description' => '搜索关键字', + 'type' => 'string', + 'required' => true, + 'example' => '苹果手机', + ], + ], + [ + 'name' => 'timeRange', + 'in' => 'query', + 'schema' => [ + 'title' => '网页发布时间范围', + 'description' => '时间范围', + 'type' => 'string', + 'required' => false, + 'enumValueTitles' => [ + 'OneWeek' => '最近一周', + 'OneYear' => '最近一年', + 'NoLimit' => '不限制', + 'OneDay' => '最近一天', + 'OneMonth' => '最近一个月', + ], + 'example' => 'OneWeek', + ], + ], + [ + 'name' => 'sessionId', + 'in' => 'query', + 'allowEmptyValue' => true, + 'schema' => [ + 'title' => '多轮交互的sessionId', + 'description' => '多轮交互的sessionId', + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'industry', + 'in' => 'query', + 'schema' => [ + 'title' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;', + 'description' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;', + 'type' => 'string', + 'required' => false, + ], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'allowEmptyValue' => false, + 'schema' => [ + 'title' => '页码:从1开始', + 'description' => '页码:从1开始', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + 'default' => '1', + ], + ], + [ + 'name' => 'returnMainText', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + 'required' => false, + ], + ], + [ + 'name' => 'returnMarkdownText', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + 'required' => false, + ], + ], + [ + 'name' => 'returnSummary', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + 'required' => false, + ], + ], + [ + 'name' => 'enableRerank', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + 'required' => false, + ], + ], + [ + 'name' => 'returnRichMainBody', + 'in' => 'query', + 'schema' => [ + 'type' => 'boolean', + 'required' => false, + ], + ], + [ + 'name' => 'advancedParams', + 'in' => 'query', + 'style' => 'json', + 'schema' => [ + 'type' => 'object', + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回的搜索结果', + '$ref' => '#/components/schemas/GenericSearchResult', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"pageItems\\": [\\n {\\n \\"publishTime\\": 1704426524000,\\n \\"score\\": 0.234325235,\\n \\"images\\": [\\n {\\n \\"imageLink\\": \\"http://k.sinaimg.cn/n/sinakd20121/594/w2048h946/20240328/74cf-32c0d62e843df76567d760b4459d57c1.jpg/w700d1q75cms.jpg\\",\\n \\"width\\": 700,\\n \\"height\\": 324\\n }\\n ],\\n \\"htmlTitle\\": \\"<em>小米</em>SU7售价22.99万元起 高管亲自辟谣:发布前不会有<em>价格</em>-百家号\\",\\n \\"displayLink\\": \\"baijiahao.baidu.com\\",\\n \\"mime\\": \\"text/html\\",\\n \\"pageMap\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"cardType\\": \\"structure_web_info\\",\\n \\"link\\": \\"https://baijiahao.baidu.com/s?id=1787881554557805096\\",\\n \\"mainText\\": \\"昨天\\\\t,\\\\t小米\\\\t汽车\\\\t没有\\\\t发布\\\\t,\\\\t但\\\\t相关\\\\t的\\\\t信息\\\\t透露\\\\t的\\\\t差\\\\t不\\\\t多\\\\t了\\\\t。\\\\t\\\\t\\\\n\\\\t\\\\t在\\\\t发布\\\\t会\\\\t现场\\\\t,\\\\t雷军\\\\t直接\\\\t称\\\\t小米\\\\tS\\\\tU\\\\t7\\\\t对\\\\t标\\\\t特斯拉\\\\t保时捷\\\\t,\\\\t有\\\\t100\\\\t项\\\\t行业\\\\t领先\\\\t,\\\\t可见\\\\t“\\\\t遥遥\\\\t领先\\\\t”\\\\t已经\\\\t不再\\\\t是\\\\t华为\\\\t专利\\\\t了\\\\t?\\\\t\\\\t\\\\n\\\\t\\\\n\\\\t\\\\t而\\\\t在\\\\t介绍\\\\t技术\\\\t时\\\\t,\\\\t雷军\\\\t也\\\\t从\\\\t电机\\\\t、\\\\t电池\\\\t、\\\\t大\\\\t压铸\\\\t、\\\\t自动\\\\t驾驶\\\\t、\\\\t智能\\\\t座舱\\\\t等\\\\t五\\\\t大\\\\t方面\\\\t展开\\\\t,\\\\t充分\\\\t展示\\\\t了\\\\t小米\\\\t汽车\\\\t的\\\\t技术\\\\t以及\\\\t技术\\\\t储备\\\\t,\\\\t\\\\t \\\\t\\\\t能\\\\t堆\\\\t的\\\\t料\\\\t,\\\\t全都\\\\t堆\\\\t上去\\\\t了\\\\t…\\\\t…\\\\t\\\\t\\\\n\\\\t\\\\t大家\\\\t比较\\\\t感\\\\t兴趣\\\\t的\\\\t性能\\\\t方面\\\\t,\\\\t2\\\\t.\\\\t78\\\\ts\\\\t的\\\\t0\\\\t-\\\\t100\\\\tkm\\\\t/\\\\th\\\\t加速\\\\t,\\\\t265\\\\tkm\\\\t/\\\\th\\\\t的\\\\t最高\\\\t时速\\\\t\\",\\n \\"htmlSnippet\\": \\"100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,<em>小米SU7</em>确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...\\",\\n \\"title\\": \\"小米SU7售价22.99万元起 高管亲自辟谣:发布前不会有价格\\",\\n \\"hostname\\": \\"新华网\\",\\n \\"hostLogo\\": \\"https://s2.zimgs.cn/ims?kt=url&at=smstruct&key=aHR0cHM6Ly9ndy5hbGljZG4uY29tL0wxLzcyMy8xNTY1MjU2NjAwLzJhL2YwL2I0LzJhZjBiNDQxMGI5YmVlMDVjOGVlNGJmODk3MTNkNTFjLnBuZw==&sign=yx:CUlNNQVJQjFrk3Kxt2F3KWhTOFU=&tv=400_400\\",\\n \\"siteLabel\\": \\"权威媒体\\",\\n \\"markdownText\\": \\"\\",\\n \\"snippet\\": \\"100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,小米SU7确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...\\",\\n \\"summary\\": \\"\\",\\n \\"hostAuthorityScore\\": 0,\\n \\"richMainBody\\": \\"\\",\\n \\"websiteAuthorityScore\\": 0,\\n \\"correlationTag\\": 0\\n }\\n ],\\n \\"requestId\\": \\"123456\\",\\n \\"weiboItems\\": [\\n {\\n \\"images\\": [\\n \\"http://s2.zimgs.cn/ims?at=sc&kt=url&key=aHR0cHM6Ly93eDIuc2luYWltZy5jbi9vcmozNjAvMDA3Umc1eHVseTFob3RsenJ5YjVkajMwaWgwYTY0M2UuanBn&sign=yx:PfSsUObz9lhnCl5gf5vY-GeYrm0=&tv=0_0&p=\\"\\n ],\\n \\"publishDisplayTime\\": \\"1小时前\\",\\n \\"cardType\\": \\"weibo_strong\\",\\n \\"homepageLink\\": \\"https://m.weibo.cn/u/7761793874?luicode=20000061&lfid=5024099350350075\\",\\n \\"link\\": \\"https://m.weibo.cn/detail/5024099350350075?wm=90194_90009\\",\\n \\"htmlSnippet\\": \\"【小调查:你会买<em>小米SU7</em>吗?】#小米SU7路测覆盖300多城市#4月17日,@小米汽车 发文称SU7道路测试覆盖全国300多个城市,涵盖极寒,极热天气,总里程数高达540万公里,目前仍在进行中。 网页链接\\",\\n \\"username\\": \\"白鹿科技\\"\\n }\\n ],\\n \\"searchInformation\\": {\\n \\"total\\": 0,\\n \\"searchTime\\": 0\\n },\\n \\"sceneItems\\": [\\n {\\n \\"detail\\": \\"\\",\\n \\"type\\": \\"\\"\\n }\\n ],\\n \\"queryContext\\": {\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\",\\n \\"timeRange\\": \\"\\",\\n \\"industry\\": \\"\\",\\n \\"page\\": \\"\\"\\n },\\n \\"rewrite\\": {\\n \\"enabled\\": true,\\n \\"timeRange\\": \\"\\"\\n }\\n }\\n}","type":"json"}]', + 'title' => '通用搜索', + ], + 'AiSearch' => [ + 'summary' => '本文介绍通过阿里云OpenAPI SDK调用通用搜索多阶段流式接口V3的方法以及参数说明', + 'path' => '/linked-retrieval/linked-retrieval-entry/v3/linkedRetrieval/commands/aiSearch', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + 'sse', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREalibababcpLY9PPK', + 'FEATUREalibababcpG3IIA0', + 'FEATUREalibababcpPYBUBJ', + 'FEATUREalibababcpRLTK4J', + 'FEATUREalibababcpSJV4QL', + 'FEATUREalibababcpTYS4DT', + 'FEATUREalibababcpCIGQ7X', + 'FEATUREalibababcpJ4YYLV', + ], + ], + 'parameters' => [ + [ + 'name' => 'query', + 'in' => 'query', + 'schema' => [ + 'title' => '待查询问题', + 'description' => '待查询问题', + 'type' => 'string', + 'required' => true, + 'example' => '苹果手机', + ], + ], + [ + 'name' => 'sessionId', + 'in' => 'query', + 'schema' => [ + 'title' => '网页发布时间查询范围', + 'description' => '网页发布时间查询范围', + 'type' => 'string', + 'required' => false, + 'example' => '17dc8bcd-f34a-46d1-a7a3-0fa3d1ce3824', + ], + ], + [ + 'name' => 'timeRange', + 'in' => 'query', + 'schema' => [ + 'title' => '多轮交互的sessionId', + 'description' => '多轮交互的sessionId', + 'type' => 'string', + 'required' => false, + 'example' => 'OneWeek', + ], + ], + [ + 'name' => 'industry', + 'in' => 'query', + 'schema' => [ + 'title' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;', + 'description' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;', + 'type' => 'string', + 'required' => false, + 'example' => 'finance', + ], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => [ + 'title' => '页码:从1开始', + 'description' => '页码:从1开始', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '{\'total_count\': 6851, \'page_number\': 54, \'page_size\': 100}', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => '流式返回的事件', + 'type' => 'object', + 'properties' => [ + 'header' => [ + 'description' => '返回结果的header', + 'type' => 'object', + 'properties' => [ + 'eventId' => [ + 'description' => '此次EventID', + 'type' => 'string', + 'example' => '988021f0-951a-43d0-ba4d-785359e7e7be', + ], + 'event' => [ + 'description' => 'event名称', + 'type' => 'string', + 'example' => 'on_common_search_end', + ], + 'responseTime' => [ + 'description' => '耗时(ms)', + 'type' => 'integer', + 'format' => 'int64', + 'example' => '1293', + ], + 'queryContext' => [ + 'title' => '查询上下文', + 'description' => '查询上下文', + 'type' => 'object', + 'properties' => [ + 'originalQuery' => [ + 'title' => '原始查询', + 'description' => '原始查询', + 'type' => 'object', + 'properties' => [ + 'query' => [ + 'title' => '查询条件', + 'description' => '查询条件', + 'type' => 'string', + ], + 'timeRange' => [ + 'title' => '时间范围', + 'description' => '时间范围', + 'type' => 'string', + ], + 'industry' => [ + 'title' => '行业', + 'description' => '行业', + 'type' => 'string', + ], + 'page' => [ + 'title' => '页码', + 'description' => '页码', + 'type' => 'integer', + 'format' => 'int32', + ], + ], + ], + 'rewrite' => [ + 'title' => '改写后查询', + 'description' => '改写后查询', + 'type' => 'object', + 'properties' => [ + 'enabled' => [ + 'title' => '改写是否开启', + 'description' => '改写是否开启', + 'type' => 'boolean', + ], + 'timeRange' => [ + 'title' => '改写后的TimeRange', + 'description' => '改写后的TimeRange', + 'type' => 'string', + ], + ], + ], + ], + ], + ], + ], + 'payload' => [ + 'description' => '返回结果的payload,json结构,不同event结构不同', + 'type' => 'string', + 'example' => '{"header":{"eventId":"6f617de0-204f-406f-a9be-34779c06d498","event":"on_common_search_start","responseTime":120},"payload":"","requestId":"715d01a0-de7e-42c3-abca-b901fcd79b39"}', + ], + 'requestId' => [ + 'description' => 'Id of the request', + 'type' => 'string', + 'example' => 'ECB2144C-E277-5434-80E6-12D26678D364', + ], + ], + ], + ], + 403 => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'AccessDeniedDetail' => [ + 'type' => 'object', + 'properties' => [ + 'AuthAction' => [ + 'type' => 'string', + ], + 'AuthPrincipalDisplayName' => [ + 'type' => 'string', + ], + 'AuthPrincipalOwnerId' => [ + 'type' => 'string', + ], + 'AuthPrincipalType' => [ + 'type' => 'string', + ], + 'EncodedDiagnosticMessage' => [ + 'type' => 'string', + ], + 'NoPermissionType' => [ + 'type' => 'string', + ], + 'PolicyType' => [ + 'type' => 'string', + ], + ], + ], + 'code' => [ + 'type' => 'string', + ], + 'errorCode' => [ + 'type' => 'string', + ], + 'errorMessage' => [ + 'type' => 'string', + ], + 'httpCode' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'httpStatusCode' => [ + 'type' => 'integer', + 'format' => 'int32', + ], + 'message' => [ + 'type' => 'string', + ], + 'success' => [ + 'type' => 'boolean', + ], + ], + ], + ], + ], + 'errorCodes' => [ + 403 => [ + [ + 'errorCode' => 'Forbidden', + 'errorMessage' => 'Please activate AI search service.', + ], + [ + 'errorCode' => 'TestUserPeriodExpired', + 'errorMessage' => 'The test period has expired.', + ], + ], + 429 => [ + [ + 'errorCode' => 'ThrottlingUser', + 'errorMessage' => 'Request was denied due to user flow control.', + ], + [ + 'errorCode' => 'TestUserQueryPerDayExceeded', + 'errorMessage' => 'The query per day exceed the limit.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"header\\": {\\n \\"eventId\\": \\"988021f0-951a-43d0-ba4d-785359e7e7be\\",\\n \\"event\\": \\"on_common_search_end\\",\\n \\"responseTime\\": 1293,\\n \\"queryContext\\": {\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\",\\n \\"timeRange\\": \\"\\",\\n \\"industry\\": \\"\\",\\n \\"page\\": 0\\n },\\n \\"rewrite\\": {\\n \\"enabled\\": true,\\n \\"timeRange\\": \\"\\"\\n }\\n }\\n },\\n \\"payload\\": \\"{\\\\\\"header\\\\\\":{\\\\\\"eventId\\\\\\":\\\\\\"6f617de0-204f-406f-a9be-34779c06d498\\\\\\",\\\\\\"event\\\\\\":\\\\\\"on_common_search_start\\\\\\",\\\\\\"responseTime\\\\\\":120},\\\\\\"payload\\\\\\":\\\\\\"\\\\\\",\\\\\\"requestId\\\\\\":\\\\\\"715d01a0-de7e-42c3-abca-b901fcd79b39\\\\\\"}\\",\\n \\"requestId\\": \\"ECB2144C-E277-5434-80E6-12D26678D364\\"\\n}","type":"json"}]', + 'title' => '多阶段流式API', + 'description' => '提供common_search,post_retrieval两个阶段流式结果供客户按需使用。'."\n" + .'通用搜索结果(common_search):搜索的原始结果。覆盖网页标题、动态摘要、正文、来源网站、发布时间等关键字段。检索后处理(post_retrieval):通过使用rerank模型对上一阶段common_search结果进行重排序与过滤。检索结果相关性(Context Relevancy)的mAP指标提升约5%,时延增加约110ms。', + ], + 'GenericAdvancedSearch' => [ + 'summary' => '本文介绍通过阿里云OpenAPI SDK调用通用增强搜索接口(GenericAdvancedSearch)的方法以及参数说明。GenericAdvancedSearch相较于GenericSearch提供了更好的权威站点的召回,召回数量最大可以达到40条,可以提供更好的权威性与多样性数据。增强版接口返回参数字段与格式与GenericAdvancedSearch一致。', + 'path' => '/linked-retrieval/linked-retrieval-entry/v2/linkedRetrieval/commands/genericAdvancedSearch', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREalibababcpLY9PPK', + 'FEATUREalibababcpPYBUBJ', + 'FEATUREalibababcpSJV4QL', + 'FEATUREalibababcpTYS4DT', + 'FEATUREalibababcpCIGQ7X', + 'FEATUREalibababcpJ4YYLV', + ], + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'query', + 'in' => 'query', + 'schema' => [ + 'title' => '待查询问题', + 'description' => '待查询问题', + 'type' => 'string', + 'required' => true, + 'example' => '苹果手机', + ], + ], + [ + 'name' => 'timeRange', + 'in' => 'query', + 'schema' => [ + 'title' => '网页发布时间查询范围', + 'description' => '网页发布时间查询范围', + 'type' => 'string', + 'required' => false, + 'example' => 'OneWeek', + ], + ], + [ + 'name' => 'sessionId', + 'in' => 'query', + 'schema' => [ + 'title' => '多轮交互的sessionId', + 'description' => '多轮交互的sessionId', + 'type' => 'string', + 'required' => false, + 'example' => 'job-4065bee3-e7aa-49fc-aad2-a8e3a7fd6acd', + ], + ], + [ + 'name' => 'industry', + 'in' => 'query', + 'schema' => [ + 'title' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;', + 'description' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;', + 'type' => 'string', + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '请求体参数。', + '$ref' => '#/components/schemas/GenericSearchResult', + ], + ], + ], + 'errorCodes' => [ + 400 => [ + [ + 'errorCode' => 'IdempotentParameterMismatch', + 'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"pageItems\\": [\\n {\\n \\"publishTime\\": 1704426524000,\\n \\"score\\": 0.234325235,\\n \\"images\\": [\\n {\\n \\"imageLink\\": \\"http://k.sinaimg.cn/n/sinakd20121/594/w2048h946/20240328/74cf-32c0d62e843df76567d760b4459d57c1.jpg/w700d1q75cms.jpg\\",\\n \\"width\\": 700,\\n \\"height\\": 324\\n }\\n ],\\n \\"htmlTitle\\": \\"<em>小米</em>SU7售价22.99万元起 高管亲自辟谣:发布前不会有<em>价格</em>-百家号\\",\\n \\"displayLink\\": \\"baijiahao.baidu.com\\",\\n \\"mime\\": \\"text/html\\",\\n \\"pageMap\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"cardType\\": \\"structure_web_info\\",\\n \\"link\\": \\"https://baijiahao.baidu.com/s?id=1787881554557805096\\",\\n \\"mainText\\": \\"昨天\\\\t,\\\\t小米\\\\t汽车\\\\t没有\\\\t发布\\\\t,\\\\t但\\\\t相关\\\\t的\\\\t信息\\\\t透露\\\\t的\\\\t差\\\\t不\\\\t多\\\\t了\\\\t。\\\\t\\\\t\\\\n\\\\t\\\\t在\\\\t发布\\\\t会\\\\t现场\\\\t,\\\\t雷军\\\\t直接\\\\t称\\\\t小米\\\\tS\\\\tU\\\\t7\\\\t对\\\\t标\\\\t特斯拉\\\\t保时捷\\\\t,\\\\t有\\\\t100\\\\t项\\\\t行业\\\\t领先\\\\t,\\\\t可见\\\\t“\\\\t遥遥\\\\t领先\\\\t”\\\\t已经\\\\t不再\\\\t是\\\\t华为\\\\t专利\\\\t了\\\\t?\\\\t\\\\t\\\\n\\\\t\\\\n\\\\t\\\\t而\\\\t在\\\\t介绍\\\\t技术\\\\t时\\\\t,\\\\t雷军\\\\t也\\\\t从\\\\t电机\\\\t、\\\\t电池\\\\t、\\\\t大\\\\t压铸\\\\t、\\\\t自动\\\\t驾驶\\\\t、\\\\t智能\\\\t座舱\\\\t等\\\\t五\\\\t大\\\\t方面\\\\t展开\\\\t,\\\\t充分\\\\t展示\\\\t了\\\\t小米\\\\t汽车\\\\t的\\\\t技术\\\\t以及\\\\t技术\\\\t储备\\\\t,\\\\t\\\\t \\\\t\\\\t能\\\\t堆\\\\t的\\\\t料\\\\t,\\\\t全都\\\\t堆\\\\t上去\\\\t了\\\\t…\\\\t…\\\\t\\\\t\\\\n\\\\t\\\\t大家\\\\t比较\\\\t感\\\\t兴趣\\\\t的\\\\t性能\\\\t方面\\\\t,\\\\t2\\\\t.\\\\t78\\\\ts\\\\t的\\\\t0\\\\t-\\\\t100\\\\tkm\\\\t/\\\\th\\\\t加速\\\\t,\\\\t265\\\\tkm\\\\t/\\\\th\\\\t的\\\\t最高\\\\t时速\\\\t\\",\\n \\"htmlSnippet\\": \\"100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,<em>小米SU7</em>确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...\\",\\n \\"title\\": \\"小米SU7售价22.99万元起 高管亲自辟谣:发布前不会有价格\\",\\n \\"hostname\\": \\"新华网\\",\\n \\"hostLogo\\": \\"https://s2.zimgs.cn/ims?kt=url&at=smstruct&key=aHR0cHM6Ly9ndy5hbGljZG4uY29tL0wxLzcyMy8xNTY1MjU2NjAwLzJhL2YwL2I0LzJhZjBiNDQxMGI5YmVlMDVjOGVlNGJmODk3MTNkNTFjLnBuZw==&sign=yx:CUlNNQVJQjFrk3Kxt2F3KWhTOFU=&tv=400_400\\",\\n \\"siteLabel\\": \\"权威媒体\\",\\n \\"markdownText\\": \\"\\",\\n \\"snippet\\": \\"100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,小米SU7确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...\\",\\n \\"summary\\": \\"\\",\\n \\"hostAuthorityScore\\": 0,\\n \\"richMainBody\\": \\"\\",\\n \\"websiteAuthorityScore\\": 0,\\n \\"correlationTag\\": 0\\n }\\n ],\\n \\"requestId\\": \\"123456\\",\\n \\"weiboItems\\": [\\n {\\n \\"images\\": [\\n \\"http://s2.zimgs.cn/ims?at=sc&kt=url&key=aHR0cHM6Ly93eDIuc2luYWltZy5jbi9vcmozNjAvMDA3Umc1eHVseTFob3RsenJ5YjVkajMwaWgwYTY0M2UuanBn&sign=yx:PfSsUObz9lhnCl5gf5vY-GeYrm0=&tv=0_0&p=\\"\\n ],\\n \\"publishDisplayTime\\": \\"1小时前\\",\\n \\"cardType\\": \\"weibo_strong\\",\\n \\"homepageLink\\": \\"https://m.weibo.cn/u/7761793874?luicode=20000061&lfid=5024099350350075\\",\\n \\"link\\": \\"https://m.weibo.cn/detail/5024099350350075?wm=90194_90009\\",\\n \\"htmlSnippet\\": \\"【小调查:你会买<em>小米SU7</em>吗?】#小米SU7路测覆盖300多城市#4月17日,@小米汽车 发文称SU7道路测试覆盖全国300多个城市,涵盖极寒,极热天气,总里程数高达540万公里,目前仍在进行中。 网页链接\\",\\n \\"username\\": \\"白鹿科技\\"\\n }\\n ],\\n \\"searchInformation\\": {\\n \\"total\\": 0,\\n \\"searchTime\\": 0\\n },\\n \\"sceneItems\\": [\\n {\\n \\"detail\\": \\"\\",\\n \\"type\\": \\"\\"\\n }\\n ],\\n \\"queryContext\\": {\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\",\\n \\"timeRange\\": \\"\\",\\n \\"industry\\": \\"\\",\\n \\"page\\": \\"\\"\\n },\\n \\"rewrite\\": {\\n \\"enabled\\": true,\\n \\"timeRange\\": \\"\\"\\n }\\n }\\n}","type":"json"}]', + 'title' => '增强版搜索API', + 'description' => 'GenericAdvancedSearch目前处于测试阶段,后续会上线新的规格供购买使用', + ], + 'GlobalSearch' => [ + 'summary' => '通晓搜索-出海版(全球信息搜索)', + 'path' => '/linked-retrieval/linked-retrieval-entry/v1/iqs/search/global', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREalibababcpLY9PPK', + 'FEATUREalibababcpPYBUBJ', + 'FEATUREalibababcpJ4YYLV', + ], + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'query', + 'in' => 'query', + 'schema' => [ + 'title' => '搜索查询内容', + 'description' => '搜索查询内容', + 'type' => 'string', + 'required' => true, + 'example' => '特朗普最新关税消息', + ], + ], + [ + 'name' => 'timeRange', + 'in' => 'query', + 'schema' => [ + 'title' => '网页发布时间范围', + 'description' => '网页发布时间范围', + 'type' => 'string', + 'required' => false, + 'example' => 'OneWeek', + ], + ], + [ + 'name' => 'page', + 'in' => 'query', + 'schema' => [ + 'title' => '页码:从1开始', + 'description' => '页码:从1开始', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '1', + ], + ], + [ + 'name' => 'pageSize', + 'in' => 'query', + 'schema' => [ + 'title' => '每页条数', + 'description' => '每页条数', + 'type' => 'integer', + 'format' => 'int32', + 'required' => false, + 'example' => '10', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '指定重启参数信息。', + '$ref' => '#/components/schemas/GlobalSearchResult', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"123456\\",\\n \\"queryContext\\": {\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\",\\n \\"page\\": \\"\\",\\n \\"timeRange\\": \\"\\"\\n }\\n },\\n \\"pageItems\\": [\\n {\\n \\"snippet\\": \\"100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,小米SU7确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...\\",\\n \\"link\\": \\"https://baijiahao.baidu.com/s?id=1787881554557805096\\",\\n \\"title\\": \\"小米SU7售价22.99万元起 高管亲自辟谣:发布前不会有价格\\"\\n }\\n ],\\n \\"sceneItems\\": [\\n {\\n \\"detail\\": \\"\\",\\n \\"type\\": \\"\\"\\n }\\n ],\\n \\"searchInformation\\": {\\n \\"total\\": 0,\\n \\"searchTime\\": 0\\n }\\n}","type":"json"}]', + 'title' => '出海版搜索(待发布)', + 'description' => '本文介绍通过出海版搜索-GlobalSearch的使用方法以及参数说明', + ], + 'GetIqsUsage' => [ + 'summary' => '信息查询服务接口日维度使用量查询', + 'path' => '/linked-retrieval/linked-retrieval-admin/v1/iqs/usage', + 'methods' => [ + 'get', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATUREalibababcpVV9OXO', + ], + ], + 'parameters' => [ + [ + 'name' => 'startDate', + 'in' => 'query', + 'schema' => [ + 'description' => '开始日期。', + 'type' => 'string', + 'required' => false, + 'example' => '20241011', + ], + ], + [ + 'name' => 'endDate', + 'in' => 'query', + 'schema' => [ + 'description' => '结束日期。', + 'type' => 'string', + 'required' => false, + 'example' => '20241017', + ], + ], + [ + 'name' => 'callerId', + 'in' => 'query', + 'schema' => [ + 'type' => 'string', + 'required' => false, + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '返回结果结构体', + '$ref' => '#/components/schemas/GetIqsUsageResult', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"records\\": [\\n {\\n \\"date\\": \\"\\",\\n \\"billingQps\\": 0,\\n \\"totalCalls\\": 0,\\n \\"valueAddedSummary\\": 0,\\n \\"failedCalls\\": 0,\\n \\"valueAddedAdvanced\\": 0,\\n \\"subAccountId\\": \\"\\",\\n \\"engineType\\": \\"\\",\\n \\"ladderType\\": \\"\\",\\n \\"api\\": \\"\\",\\n \\"successCalls\\": 0,\\n \\"mainAccountId\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => '日调用量查询接口', + ], + 'MultimodalSearch' => [ + 'summary' => '多模态搜索', + 'path' => '/linked-retrieval/linked-retrieval-entry/v1/iqs/multimodal/unified', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'paid', + 'abilityTreeNodes' => [ + 'FEATUREalibababcpLY9PPK', + ], + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => [ + 'description' => '查询参数以及屏蔽站点参数', + 'required' => false, + '$ref' => '#/components/schemas/MultimodalSearchBody', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'description' => '图片返回信息', + '$ref' => '#/components/schemas/MultimodalSearchOutput', + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"queryContext\\": {\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\"\\n }\\n },\\n \\"searchInformation\\": {\\n \\"total\\": 0,\\n \\"searchTime\\": 0\\n },\\n \\"imageItems\\": [\\n {\\n \\"publishedTime\\": \\"\\",\\n \\"title\\": \\"\\",\\n \\"imageUrl\\": \\"\\",\\n \\"hostPageUrl\\": \\"\\",\\n \\"height\\": 0,\\n \\"width\\": 0\\n }\\n ]\\n}","type":"json"}]', + 'title' => '多模态搜索', + ], + 'ReadPageBasic' => [ + 'summary' => '快速获取 HTML 并解析静态网页内容。', + 'path' => '/linked-retrieval/linked-retrieval-entry/v1/iqs/readpage/basic', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATUREalibababcpLY9PPK', + 'FEATUREalibababcpG3IIA0', + 'FEATUREalibababcpPDPN5D', + 'FEATUREalibababcp7B4LYV', + ], + 'autoTest' => true, + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => [ + 'description' => 'post body', + 'required' => false, + '$ref' => '#/components/schemas/ReadPageBody', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'description' => '请求RequestId, 排查问题时可以提供此信息', + 'type' => 'string', + ], + 'errorCode' => [ + 'description' => '错误码', + 'type' => 'string', + ], + 'errorMessage' => [ + 'description' => '错误信息', + 'type' => 'string', + ], + 'data' => [ + 'description' => '目标 url 解析结果', + '$ref' => '#/components/schemas/ReadPageItem', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"errorCode\\": \\"\\",\\n \\"errorMessage\\": \\"\\",\\n \\"data\\": {\\n \\"statusCode\\": 0,\\n \\"errorMessage\\": \\"\\",\\n \\"rawHtml\\": \\"\\",\\n \\"html\\": \\"\\",\\n \\"text\\": \\"\\",\\n \\"markdown\\": \\"\\",\\n \\"screenshot\\": \\"\\"\\n }\\n}","type":"json"}]', + 'title' => '静态页面解析', + 'description' => '1. 当目标地址的 HTTP 响应码(httpcode)< 500 时,计为一次有效请求。'."\n" + ."\n" + .'2. 若目标地址的响应头中的内容类型(Content-Type)为 application/pdf,系统将自动触发 PDF 解析(pdf 处理大小不超过 20MB),此操作将额外计为一次有效请求。'."\n" + ."\n" + .'3. 体验说明:体验期间接口限制 5qps;体验额度为 1000次/30天;', + ], + 'ReadPageScrape' => [ + 'summary' => '1. 通过浏览器沙箱环境读取 HTML 并解析网页内容。'."\n" + .'2. 接口将在目标页面资源完全加载后开始解析(可通过 pageTimeout 参数调整最大等待时长),接口整体耗时将显著受目标站点资源加载情况的影响。', + 'path' => '/linked-retrieval/linked-retrieval-entry/v1/iqs/readpage/scrape', + 'methods' => [ + 'post', + ], + 'schemes' => [ + 'https', + ], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => [ + 'application/json', + ], + 'produces' => [ + 'application/json', + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'none', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => [ + 'FEATUREalibababcpLY9PPK', + 'FEATUREalibababcpG3IIA0', + ], + 'autoTest' => true, + 'tenantRelevance' => 'tenant', + ], + 'parameters' => [ + [ + 'name' => 'body', + 'in' => 'body', + 'schema' => [ + 'description' => 'post body', + 'required' => false, + '$ref' => '#/components/schemas/ReadPageScrapeBody', + ], + ], + ], + 'responses' => [ + 200 => [ + 'schema' => [ + 'title' => 'Schema of Response', + 'description' => 'Schema of Response', + 'type' => 'object', + 'properties' => [ + 'requestId' => [ + 'title' => 'Id of the request', + 'description' => '请求RequestId, 排查问题时可以提供此信息', + 'type' => 'string', + 'example' => '7cd43c86-731a-4d4c-8385-d070cfc509a4'."\n", + ], + 'errorCode' => [ + 'description' => '错误码', + 'type' => 'string', + 'example' => 'null', + ], + 'errorMessage' => [ + 'description' => '错误信息', + 'type' => 'string', + 'example' => 'null', + ], + 'data' => [ + 'description' => '目标 url 解析结果', + '$ref' => '#/components/schemas/ReadPageItem', + ], + ], + ], + ], + ], + 'staticInfo' => [ + 'returnType' => 'synchronous', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"7cd43c86-731a-4d4c-8385-d070cfc509a4\\\\n\\",\\n \\"errorCode\\": \\"null\\",\\n \\"errorMessage\\": \\"null\\",\\n \\"data\\": {\\n \\"statusCode\\": 0,\\n \\"errorMessage\\": \\"\\",\\n \\"rawHtml\\": \\"\\",\\n \\"html\\": \\"\\",\\n \\"text\\": \\"\\",\\n \\"markdown\\": \\"\\",\\n \\"screenshot\\": \\"\\"\\n }\\n}","type":"json"}]', + 'title' => 'web页面解析', + 'description' => '1. 当目标地址的 HTTP 响应码(httpcode)< 500 时,计为一次有效请求。'."\n" + ."\n" + .'2. 若目标地址的响应头中的内容类型(Content-Type)为 application/pdf,系统将自动触发 PDF 解析(pdf 处理大小不超过 20MB),此操作将额外计为一次有效请求。'."\n" + ."\n" + .'3. 体验说明:体验期间接口限制 5qps;体验额度为 1000次/30天;', + ], + ], + 'endpoints' => [ + [ + 'regionId' => 'cn-zhangjiakou', + 'endpoint' => 'iqs.cn-zhangjiakou.aliyuncs.com', + ], + ], +]; |
