Fix formatting issues

This commit is contained in:
Juan Calderon-Perez
2025-04-05 10:03:24 -04:00
committed by GitHub
parent b4277c7d2e
commit 324550423c
2 changed files with 16 additions and 4 deletions

View File

@@ -322,7 +322,12 @@ def query_collection_with_hybrid_search(
# Prepare tasks for all collections and queries
# Avoid running any tasks for collections that failed to fetch data (have assigned None)
tasks = [(cn, q) for cn in collection_names if collection_results[cn] is not None for q in queries]
tasks = [
(cn, q)
for cn in collection_names
if collection_results[cn] is not None
for q in queries
]
with ThreadPoolExecutor() as executor:
future_results = [executor.submit(process_query, cn, q) for cn, q in tasks]