mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
refac
This commit is contained in:
parent
155dbd5a66
commit
f243e523a6
1 changed files with 4 additions and 4 deletions
|
|
@ -1493,11 +1493,11 @@ async def process_web_search(
|
|||
else:
|
||||
collection_names = []
|
||||
for doc_idx, doc in enumerate(docs):
|
||||
collection_name = f"web-search-{calculate_sha256_string(
|
||||
f"{form_data.query}-{urls[doc_idx]}"
|
||||
)}"[:63]
|
||||
collection_names.append(collection_name)
|
||||
collection_name = f"web-search-{calculate_sha256_string(form_data.query + '-' + urls[doc_idx])}"[
|
||||
:63
|
||||
]
|
||||
|
||||
collection_names.append(collection_name)
|
||||
|
||||
await run_in_threadpool(
|
||||
save_docs_to_vector_db,
|
||||
|
|
|
|||
Loading…
Reference in a new issue