Merge pull request #392 from Aki-07/feature/add-searxng-connector

Add Searxng connector
This commit is contained in:
Rohan Verma 2025-10-13 13:41:37 -07:00 committed by GitHub
commit 08661e686c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 838 additions and 7 deletions

View file

@ -1033,6 +1033,30 @@ async def fetch_relevant_documents(
}
)
elif connector == "SEARXNG_API":
(
source_object,
searx_chunks,
) = await connector_service.search_searxng(
user_query=reformulated_query,
user_id=user_id,
search_space_id=search_space_id,
top_k=top_k,
)
if source_object:
all_sources.append(source_object)
all_raw_documents.extend(searx_chunks)
if streaming_service and writer:
writer(
{
"yield_value": streaming_service.format_terminal_info_delta(
f"🌐 Found {len(searx_chunks)} SearxNG results related to your query"
)
}
)
elif connector == "LINKUP_API":
linkup_mode = "standard"