소스 검색

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

Roc 2 달 전
부모
커밋
46cb1d2cd6
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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)
 	}