[improvement][chat]Support user feedback to multiple candidate semantic parses.#1847

This commit is contained in:
jerryjzhang
2024-10-28 17:31:33 +08:00
parent 5dda539798
commit b3d4440781
9 changed files with 51 additions and 34 deletions

View File

@@ -131,7 +131,10 @@ public class S2SemanticLayerService implements SemanticLayerService {
String cacheKey = queryCache.getCacheKey(queryReq);
Object query = queryCache.query(queryReq, cacheKey);
log.info("cacheKey:{},query:{}", cacheKey, query);
if (Objects.nonNull(query)) {
log.info("cacheKey:{},query:{}", cacheKey,
StringUtils.normalizeSpace(query.toString()));
}
if (Objects.nonNull(query)) {
SemanticQueryResp queryResp = (SemanticQueryResp) query;
queryResp.setUseCache(true);