(improvement)(Chat) Format the results of the parse and query phases into text (#1045)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2024-05-29 17:02:45 +08:00
committed by GitHub
parent c7cb6df80b
commit 8aab359def
16 changed files with 119 additions and 40 deletions

View File

@@ -39,6 +39,7 @@ public class SemanticParseInfo {
private SqlInfo sqlInfo = new SqlInfo();
private QueryType queryType = QueryType.ID;
private EntityInfo entityInfo;
private String textInfo;
private static class SchemaNameLengthComparator implements Comparator<SchemaElement> {
@Override

View File

@@ -22,6 +22,7 @@ public class QueryResult {
private SemanticParseInfo chatContext;
private Object response;
private List<Map<String, Object>> queryResults;
private String textResult;
private Long queryTimeCost;
private EntityInfo entityInfo;
private List<SchemaElement> recommendedDimensions;