mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -1387,12 +1387,6 @@ def save_docs_to_vector_db(
|
||||
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
|
||||
except Exception as e:
|
||||
log.exception(e)
|
||||
|
||||
Reference in New Issue
Block a user