mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 12:37:55 +00:00
[feature][chat]Introduce separate field to return summary generated by DataInterpretProcessor.
This commit is contained in:
@@ -24,6 +24,7 @@ public class QueryResult {
|
|||||||
private Object response;
|
private Object response;
|
||||||
private List<Map<String, Object>> queryResults;
|
private List<Map<String, Object>> queryResults;
|
||||||
private String textResult;
|
private String textResult;
|
||||||
|
private String textSummary;
|
||||||
private Long queryTimeCost;
|
private Long queryTimeCost;
|
||||||
private EntityInfo entityInfo;
|
private EntityInfo entityInfo;
|
||||||
private List<SchemaElement> recommendedDimensions;
|
private List<SchemaElement> recommendedDimensions;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ public class DataInterpretProcessor implements ExecuteResultProcessor {
|
|||||||
keyPipelineLog.info("DataInterpretProcessor modelReq:\n{} \nmodelResp:\n{}", prompt.text(),
|
keyPipelineLog.info("DataInterpretProcessor modelReq:\n{} \nmodelResp:\n{}", prompt.text(),
|
||||||
anwser);
|
anwser);
|
||||||
if (StringUtils.isNotBlank(anwser)) {
|
if (StringUtils.isNotBlank(anwser)) {
|
||||||
queryResult.setTextResult(anwser);
|
queryResult.setTextSummary(anwser);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user