Просмотр исходного кода

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

Roc 2 недель назад
Родитель
Сommit
cbe8678e07
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      controllers/llm/abstract.go
  2. 2 2
      controllers/llm/wechat_platform.go

+ 2 - 2
controllers/llm/abstract.go

@@ -103,8 +103,8 @@ func getAbstractList(keyWord string, tagId int, startSize, pageSize int) (total
 		viewList = obj.WechatArticleAbstractItem(list)
 	} else {
 		sortMap := map[string]string{
-			"ModifyTime":              "desc",
-			"WechatArticleAbstractId": "desc",
+			//"ModifyTime":              "desc",
+			//"WechatArticleAbstractId": "desc",
 		}
 
 		obj := new(rag.WechatPlatform)

+ 2 - 2
controllers/llm/wechat_platform.go

@@ -558,8 +558,8 @@ func (c *WechatPlatformController) ArticleList() {
 		}
 	} else {
 		sortMap := map[string]string{
-			"ArticleCreateTime": "desc",
-			"WechatArticleId":   "desc",
+			//"ArticleCreateTime": "desc",
+			//"WechatArticleId":   "desc",
 		}
 		tmpTotal, list, err := elastic.WechatArticleEsSearch(keyWord, wechatPlatformId, startSize, pageSize, sortMap)
 		if err != nil {