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 8f9582a commit 31bea95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.getRankScoreThreshold() == null) {
request.setRankScoreThreshold(0.4f);
if (request.getRank_score_threshold() == null) {
request.setRank_score_threshold(0.4f);
}
String url = AppBuilderConfig.QUERY_KNOWLEDGEBASE_URL;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public void setType(String type) {
this.type = type;
}

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

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

Expand Down

0 comments on commit 31bea95

Please sign in to comment.