|
|
@@ -25,6 +25,8 @@ import java.util.Collections;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import static com.tzld.videoVector.service.VectorStoreService.DEFAULT_CONFIG_CODE;
|
|
|
+
|
|
|
@Slf4j
|
|
|
@Service
|
|
|
public class VideoSearchServiceImpl implements VideoSearchService {
|
|
|
@@ -341,6 +343,9 @@ public class VideoSearchServiceImpl implements VideoSearchService {
|
|
|
|
|
|
int topN = param.getTopN() != null && param.getTopN() > 0 ? param.getTopN() : 10;
|
|
|
String configCode = param.getConfigCode();
|
|
|
+ if (!StringUtils.hasText(configCode)) {
|
|
|
+ configCode = DEFAULT_CONFIG_CODE;
|
|
|
+ }
|
|
|
|
|
|
// 确定查询向量:直接传入 or 文本向量化
|
|
|
List<Float> queryVector = param.getQueryVector();
|