mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 13:07:32 +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();
|
||||
if (Objects.isNull(queryId)) {
|
||||
queryId = chatManageService.createChatQuery(chatParseReq);
|
||||
chatParseReq.setQueryId(queryId);
|
||||
}
|
||||
|
||||
ParseContext parseContext = buildParseContext(chatParseReq, new ChatParseResp(queryId));
|
||||
|
||||
@@ -18,6 +18,7 @@ import java.util.Set;
|
||||
|
||||
@Data
|
||||
public class QueryNLReq extends SemanticQueryReq implements Serializable {
|
||||
private Long queryId;
|
||||
private String queryText;
|
||||
private Set<Long> dataSetIds = Sets.newHashSet();
|
||||
private User user;
|
||||
|
||||
@@ -18,6 +18,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
@Data
|
||||
public class LLMReq {
|
||||
private Long queryId;
|
||||
private String queryText;
|
||||
private LLMSchema schema;
|
||||
private List<Term> terms;
|
||||
|
||||
Reference in New Issue
Block a user