Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yinjiaqi authored and yinjiaqi committed Jan 20, 2025
1 parent 2619d37 commit 462a2a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,8 @@ public ChunksDescribeResponse describeChunks(String documentId, String marker, I

public QueryKnowledgeBaseResponse queryKnowledgeBase(QueryKnowledgeBaseRequest request)
throws IOException, AppBuilderServerException {
if (request.rank_score_threshold == null) {
request.rank_score_threshold = 0.4f;
if (request.getRankScoreThreshold() == null) {
request.setRankScoreThreshold(0.4f);
}
String url = AppBuilderConfig.QUERY_KNOWLEDGEBASE_URL;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class QueryKnowledgeBaseRequest {
private MetadataFilters metadata_filters;
private QueryPipelineConfig pipeline_config;

public QueryKnowledgeBaseRequest(String query, String type, float rank_score_threshold, Integer top, Integer skip,
public QueryKnowledgeBaseRequest(String query, String type, Float rank_score_threshold, Integer top, Integer skip,
String[] knowledgebase_ids, MetadataFilters metadata_filters,
QueryPipelineConfig pipeline_config) {
this.query = query;
Expand Down Expand Up @@ -41,11 +41,11 @@ public void setType(String type) {
this.type = type;
}

public float getRank_score_threshold() {
public float getRankScoreThreshold() {
return rank_score_threshold;
}

public void setRank_score_threshold(float rank_score_threshold) {
public void setRankScoreThreshold(float rank_score_threshold) {
this.rank_score_threshold = rank_score_threshold;
}

Expand Down

0 comments on commit 462a2a2

Please sign in to comment.