mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
fix(vec_db): format debug log message for empty batch insert
This commit is contained in:
@@ -75,7 +75,9 @@ class FaissVecDB(BaseVecDB):
|
||||
ids = ids or [str(uuid.uuid4()) for _ in contents]
|
||||
|
||||
if not contents:
|
||||
logger.debug("No contents provided for batch insert; skipping embedding generation.")
|
||||
logger.debug(
|
||||
"No contents provided for batch insert; skipping embedding generation."
|
||||
)
|
||||
return []
|
||||
|
||||
start = time.time()
|
||||
|
||||
Reference in New Issue
Block a user