Using DashScope Rerank Models in LlamaIndex
DashScopeRerank is a reranking postprocessor for LlamaIndex that reorders retrieved results to improve relevance.
Installation
Usage Example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | string | Yes | Your DashScope API key |
model | string | No | Name of the reranking model. Default: "gte-rerank" |
top_n | integer | No | Maximum number of results to return |