---
title: "文本重排序-文件管理-API黄页 | 万维易源"
canonical_url: "https://www.showapi.com/playground/zhipuai/bigmodel/filemgr"
last_updated: "2026-09-02T20:12:57.648Z"
meta:
  description: 智谱AI大模型开放平台提供文本重排序API，通过计算候选文本与查询文本的相关性得分，优化智能问答和信息检索效果。
  keywords: 文本重排序，智能问答，信息检索，相关性得分，API接入
  "og:description": 智谱AI大模型开放平台提供文本重排序API，通过计算候选文本与查询文本的相关性得分，优化智能问答和信息检索效果。
  "og:title": 文本重排序-文件管理-API黄页
---

*

*

*

# **文件管理**

[智谱华章-智谱AI大模型开放平台](https://www.showapi.com/playground/zhipuai/bigmodel) [** 产品首页](https://bigmodel.cn/dev/api/knowlage-manage/queryfile) [**API文档](https://bigmodel.cn/dev/api/knowlage-manage/queryfile) [**应用示例](https://www.showapi.com/aiapp/zhipuai/bigmodel/filemgr.html)

**5583

2025-03-25更新

**91 [提交收录](https://www.showapi.com/island/feedback-page?submitrequire=true) [反馈问题](https://www.showapi.com/island/feedback-page?apiurl=/playground/zhipuai/bigmodel/filemgr) [ 创建我的API](https://www.showapi.com/playground)

文件管理API允许用户上传文件用于模型微调、知识库、Batch、文件抽取等功能，支持多种文件格式和用途，并提供文件详情获取和编辑功能。

**基础配置**

**Apikey****\*****[去获取Apikey](https://bigmodel.cn/usercenter/proj-mgmt/apikeys)

用于鉴权的令牌apikey或token

选择接入点：

**POST**

**

**Run

**接入点文档：**[查看](https://bigmodel.cn/dev/api/knowlage-manage/rerank)

Run: Ctrl+

↵

接入点描述：Rerank 用于文本重排序，通过接收用户的查询文本及候选文本列表，使用模型计算候选文本与查询文本的相关性得分并返回分数。适用于智能问答、信息检索等场景。

**请求参数**

**query****\***

查询文本，最大长度4096字符

**documents\[0]**

**documents\[1]**

**top\_n**

返回得分最高的前n条结果，默认0返回所有

**return\_documents**

是否返回原始文本

**return\_raw\_scores**

是否返回原始分数

**request\_id**

请求唯一标识

**user\_id**

终端用户唯一ID（6-128字符）

**返回结果**

当前为示例返回

**

返回体

返回头

**使用其他软件测试API**

您可以拷贝Curl语句，直接导入Postman进行测试

**拷贝Curl语句