Timothy J. Baek před 1 rokem
rodič
revize
4068a421bf
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      backend/apps/rag/search/searxng.py

+ 1 - 1
backend/apps/rag/search/searxng.py

@@ -81,5 +81,5 @@ def search_searxng(
         SearchResult(
             link=result["url"], title=result.get("title"), snippet=result.get("content")
         )
-        for result in sorted_results
+        for result in sorted_results[:count]
     ]