mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 13:07:32 +00:00
[improvement][chat]Support user feedback to multiple candidate semantic parses.#1847
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user