Skip to content

Commit

Permalink
reranker补充READme (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbertArthur authored Oct 15, 2024
1 parent ad82ad6 commit bf89067
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions appbuilder/core/components/retriever/reranker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ print(ranked_2)
| query | str || 精排Query,长度小于1600。 | "你好" |
| texts | List[str] || 精排输入段落,会对列表里的所有内容排序,最大长度为50. | ["你好", "世界"] |

### 响应参数:

| 参数名称 | 参数类型 | 描述 | 示例值 |
|---------|--------|------------------|---------------|
| +document | str | 输入的段落 | "hello?" |
| +relevance_score | float | 精排的相关性分数 | 0.565118 |
| +index | int | 输入段落的原始index | -- |


### 响应示例
#### 输入
Expand Down

0 comments on commit bf89067

Please sign in to comment.