Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
11bb1a6f
Unverified
Commit
11bb1a6f
authored
Jun 03, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jun 03, 2024
Browse files
Merge pull request #2795 from open-webui/dev
fix
parents
8a94d8a2
61867c15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
backend/apps/rag/search/searxng.py
backend/apps/rag/search/searxng.py
+1
-3
No files found.
backend/apps/rag/search/searxng.py
View file @
11bb1a6f
...
...
@@ -44,10 +44,8 @@ def search_searxng(
"q"
:
query
,
"format"
:
"json"
,
"pageno"
:
1
,
"results_per_page"
:
count
,
"language"
:
language
,
"time_range"
:
time_range
,
"engines"
:
""
,
"categories"
:
categories
,
"theme"
:
"simple"
,
"image_proxy"
:
0
,
...
...
@@ -81,5 +79,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
]
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment