This commit is contained in:
Timothy Jaeryang Baek 2025-04-22 23:22:50 +09:00
parent 913f8a15f9
commit 43efff0fe6

View File

@ -1557,6 +1557,7 @@ async def process_web_search(
collection_names = []
for doc_idx, doc in enumerate(docs):
if doc and doc.page_content:
try:
collection_name = f"web-search-{calculate_sha256_string(form_data.query + '-' + urls[doc_idx])}"[
:63
]
@ -1570,6 +1571,8 @@ async def process_web_search(
overwrite=True,
user=user,
)
except Exception as e:
log.debug(f"error saving doc {doc_idx}: {e}")
return {
"status": True,