Timothy J. Baek 11 месяцев назад
Родитель
Сommit
4068a421bf
1 измененных файлов с 1 добавлено и 1 удалено
  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]
     ]