From 69960ca22471cfce55bd03d02d2a9d85d3b1281c Mon Sep 17 00:00:00 2001 From: sunshinexcode <24xinhui@163.com> Date: Wed, 14 Aug 2024 14:28:17 +0800 Subject: [PATCH] fix(): collection must start with a letter (#205) --- server/internal/http_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/http_server.go b/server/internal/http_server.go index 75d6fb8c..aa6e1c31 100644 --- a/server/internal/http_server.go +++ b/server/internal/http_server.go @@ -323,7 +323,7 @@ func (s *HttpServer) handlerVectorDocumentUpload(c *gin.Context) { } // Generate collection - collection := fmt.Sprintf("%s_%d", gmd5.MustEncryptString(req.ChannelName), time.Now().UnixNano()) + collection := fmt.Sprintf("a%s_%d", gmd5.MustEncryptString(req.ChannelName), time.Now().UnixNano()) fileName := filepath.Base(file.Filename) // update worker