|
|
@@ -247,9 +247,11 @@ public class NewMatchVideoServiceImpl implements NewMatchVideoService {
|
|
|
// 调用向量召回
|
|
|
RecallVideoScoreParam param = new RecallVideoScoreParam();
|
|
|
param.setQueryText(title);
|
|
|
- param.setTopN(3);
|
|
|
+ param.setTopN(10);
|
|
|
param.setAlpha(0.6);
|
|
|
param.setSimMin(0.6);
|
|
|
+ param.setRovMin(0.0);
|
|
|
+ param.setDays(30);
|
|
|
if (StringUtils.isNotEmpty(recallVideoConfigCode)) {
|
|
|
param.setConfigCode(recallVideoConfigCode);
|
|
|
}
|
|
|
@@ -265,6 +267,10 @@ public class NewMatchVideoServiceImpl implements NewMatchVideoService {
|
|
|
return;
|
|
|
}
|
|
|
log.info("recallWithScore results, contentId={}, total={}", article.getContentId(), result.getTotal());
|
|
|
+ // 截取前三条
|
|
|
+ if (result.getItems().size() > 3) {
|
|
|
+ result.setItems(result.getItems().subList(0, 3));
|
|
|
+ }
|
|
|
int savedCount = 0;
|
|
|
for (RecallVideoScoreVO.ScoredVideoItem item : result.getItems()) {
|
|
|
if (item.getVideoId() == null) {
|