mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 12:37:55 +00:00
(improvement)(Headless) Periodically refresh embedding metadata in full and optimize the code. (#917)
This commit is contained in:
@@ -2,6 +2,9 @@ package com.tencent.supersonic.headless.api.pojo.request;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.ToString;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
@@ -25,4 +28,8 @@ public class QuerySqlReq extends SemanticQueryReq {
|
||||
return stringBuilder.toString();
|
||||
}
|
||||
|
||||
public boolean needGetDataSetId() {
|
||||
return (Objects.isNull(this.getDataSetId()) || this.getDataSetId() <= 0)
|
||||
&& (CollectionUtils.isEmpty(this.getModelIds()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user