mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 21:17:08 +00:00
[improvement][chat]Add queryId to QueryNLReq.
This commit is contained in:
@@ -91,6 +91,7 @@ public class ChatQueryServiceImpl implements ChatQueryService {
|
|||||||
Long queryId = chatParseReq.getQueryId();
|
Long queryId = chatParseReq.getQueryId();
|
||||||
if (Objects.isNull(queryId)) {
|
if (Objects.isNull(queryId)) {
|
||||||
queryId = chatManageService.createChatQuery(chatParseReq);
|
queryId = chatManageService.createChatQuery(chatParseReq);
|
||||||
|
chatParseReq.setQueryId(queryId);
|
||||||
}
|
}
|
||||||
|
|
||||||
ParseContext parseContext = buildParseContext(chatParseReq, new ChatParseResp(queryId));
|
ParseContext parseContext = buildParseContext(chatParseReq, new ChatParseResp(queryId));
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class QueryNLReq extends SemanticQueryReq implements Serializable {
|
public class QueryNLReq extends SemanticQueryReq implements Serializable {
|
||||||
|
private Long queryId;
|
||||||
private String queryText;
|
private String queryText;
|
||||||
private Set<Long> dataSetIds = Sets.newHashSet();
|
private Set<Long> dataSetIds = Sets.newHashSet();
|
||||||
private User user;
|
private User user;
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import java.util.stream.Collectors;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class LLMReq {
|
public class LLMReq {
|
||||||
|
private Long queryId;
|
||||||
private String queryText;
|
private String queryText;
|
||||||
private LLMSchema schema;
|
private LLMSchema schema;
|
||||||
private List<Term> terms;
|
private List<Term> terms;
|
||||||
|
|||||||
Reference in New Issue
Block a user