Merge pull request #883 from YanSte/fix-return-none

Optimised returns
This commit is contained in:
Yannick Stephan
2025-02-19 22:24:50 +01:00
committed by GitHub
12 changed files with 60 additions and 31 deletions

View File

@@ -79,10 +79,9 @@ class FaissVectorDBStorage(BaseVectorStorage):
...
}
"""
logger.info(f"Inserting {len(data)} vectors to {self.namespace}")
logger.info(f"Inserting {len(data)} to {self.namespace}")
if not data:
logger.warning("You are inserting empty data to the vector DB")
return []
return
current_time = time.time()