Parcourir la source

Merge remote-tracking branch 'origin/feature/deepseek_rag_1.0' into debug

Roc il y a 2 mois
Parent
commit
46cb1d2cd6
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      services/wechat_platform.go

+ 3 - 0
services/wechat_platform.go

@@ -468,6 +468,9 @@ func DelDoc(wechatArticleAbstractList []*rag.WechatArticleAbstract) (err error)
 	wechatArticleAbstractIdList := make([]int, 0)
 
 	for _, v := range wechatArticleAbstractList {
+		if v.VectorKey == `` {
+			continue
+		}
 		vectorKeyList = append(vectorKeyList, v.VectorKey)
 		wechatArticleAbstractIdList = append(wechatArticleAbstractIdList, v.WechatArticleAbstractId)
 	}