public class DashscopeRerankingDialect extends AbstractRerankingDialect
| Constructor and Description |
|---|
DashscopeRerankingDialect() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildRequestJson(RerankingConfig config,
RerankingOptions options,
String query,
List<Document> documents)
构建请求数据
|
static DashscopeRerankingDialect |
getInstance() |
boolean |
matched(RerankingConfig config)
匹配检测
|
RerankingResponse |
parseResponseJson(RerankingConfig config,
String respJson)
分析响应数据
|
public static DashscopeRerankingDialect getInstance()
public boolean matched(RerankingConfig config)
config - 聊天配置public String buildRequestJson(RerankingConfig config, RerankingOptions options, String query, List<Document> documents)
RerankingDialectbuildRequestJson in interface RerankingDialectbuildRequestJson in class AbstractRerankingDialectconfig - 聊天配置options - 聊天选项public RerankingResponse parseResponseJson(RerankingConfig config, String respJson)
RerankingDialectconfig - 聊天配置Copyright © 2025. All rights reserved.