Skip to content

Commit

Permalink
[improvement][headless-chat] filter schemaMapInfo !type =VALUE , Dat…
Browse files Browse the repository at this point in the history
…aSetMatchResult.class Increase the number of computations 1.0, and compute similar totals, It is preferred to return data sets based on similar total values (tencentmusic#1614)
  • Loading branch information
zhouhang committed Aug 30, 2024
1 parent 4fb212a commit fca9ba1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected static Long selectDataSetBySchemaElementMatchScore(Map<Long, SemanticQ
return difference;
}

difference = o2.getValue().getCount() - o1.getValue().getCount();
difference = o2.getValue().getCount() - o1.getValue().getCount();
if (difference == 0) {
return (int) ((o2.getValue().getMaxSimilarity()
- o1.getValue().getMaxSimilarity()) * 100);
Expand Down Expand Up @@ -120,7 +120,7 @@ public static Map<Long, DataSetMatchResult> getDataSetTypeMap(SchemaMapInfo sche
}
DataSetMatchResult dataSetMatchResult = dataSetCount.get(entry.getKey());
Set<SchemaElementType> schemaElementTypes = new HashSet<>();
/* schemaElementMatches.stream()
/*schemaElementMatches.stream()
.forEach(schemaElementMatch -> schemaElementTypes.add(
schemaElementMatch.getElement().getType()));*/
schemaElementMatches.forEach(schemaElementMatch -> {
Expand Down

0 comments on commit fca9ba1

Please sign in to comment.