From fca9ba197d74711fcd9bfebb72cbfffb64d6cb9d Mon Sep 17 00:00:00 2001 From: zhouhang Date: Fri, 30 Aug 2024 15:39:10 +0800 Subject: [PATCH] [improvement][headless-chat] filter schemaMapInfo !type =VALUE , DataSetMatchResult.class Increase the number of computations 1.0, and compute similar totals, It is preferred to return data sets based on similar total values (#1614) --- .../headless/chat/parser/llm/HeuristicDataSetResolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/HeuristicDataSetResolver.java b/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/HeuristicDataSetResolver.java index b072280d0..7adf13bc7 100644 --- a/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/HeuristicDataSetResolver.java +++ b/headless/chat/src/main/java/com/tencent/supersonic/headless/chat/parser/llm/HeuristicDataSetResolver.java @@ -67,7 +67,7 @@ protected static Long selectDataSetBySchemaElementMatchScore(Map getDataSetTypeMap(SchemaMapInfo sche } DataSetMatchResult dataSetMatchResult = dataSetCount.get(entry.getKey()); Set schemaElementTypes = new HashSet<>(); - /* schemaElementMatches.stream() + /*schemaElementMatches.stream() .forEach(schemaElementMatch -> schemaElementTypes.add( schemaElementMatch.getElement().getType()));*/ schemaElementMatches.forEach(schemaElementMatch -> {