Clean up code

This commit is contained in:
Wei Xu 2024-11-07 17:54:17 +11:00
parent 7535bac9e4
commit ddf97ecba6
No known key found for this signature in database

View File

@ -701,7 +701,6 @@ def save_docs_to_vector_db(
f"save_docs_to_vector_db: document {_get_docs_info(docs)} {collection_name}" f"save_docs_to_vector_db: document {_get_docs_info(docs)} {collection_name}"
) )
# TODO: check the metadata , should contain S3 path
# Check if entries with the same hash (metadata.hash) already exist # Check if entries with the same hash (metadata.hash) already exist
if metadata and "hash" in metadata: if metadata and "hash" in metadata:
result = VECTOR_DB_CLIENT.query( result = VECTOR_DB_CLIENT.query(