From efe3768bfb0cac6caea1ac97654a52c271265891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KevinZ=C3=B8nda?= <33132228+KevinZonda@users.noreply.github.com> Date: Sat, 20 Jan 2024 17:00:21 +0000 Subject: [PATCH] translate --- backend/exec/svr/handler/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/exec/svr/handler/query.go b/backend/exec/svr/handler/query.go index 8903ffc..bfb8dfe 100644 --- a/backend/exec/svr/handler/query.go +++ b/backend/exec/svr/handler/query.go @@ -34,7 +34,7 @@ func Search(c *gin.Context) { }) searched := "" - searchRaw, err := rag.SearchRaw(query.Country(), query.Locale(), query.ProgLang+", "+query.Question) + searchRaw, err := rag.SearchRaw(query.Country(), query.Locale(), query.ProgLang+", "+translate(query.Question)) if err == nil { searched = rag.SearchResultsToText(searchRaw.SpiderResults) }