mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 03:47:49 +01:00
refac
This commit is contained in:
@@ -1387,12 +1387,6 @@ def save_docs_to_vector_db(
|
|||||||
items=items,
|
items=items,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Validate the number of items inserted
|
|
||||||
result = VECTOR_DB_CLIENT.query(
|
|
||||||
collection_name=collection_name,
|
|
||||||
filter={"metadata": metadata} if metadata else None,
|
|
||||||
)
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.exception(e)
|
log.exception(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user