diff --git a/ai_ta_backend/vector_database.py b/ai_ta_backend/vector_database.py index a969c9c1..d8692fac 100644 --- a/ai_ta_backend/vector_database.py +++ b/ai_ta_backend/vector_database.py @@ -434,7 +434,7 @@ def _ingest_single_image(self, s3_path: str, course_name: str, **kwargs) -> str: self.split_and_upload(texts=texts, metadatas=metadatas) return "Success" except Exception as e: - print(f"Image ingest error (png/jpg) ERROR {e}") + print(f"❌❌ Error in (png/jpg ingest): `{inspect.currentframe().f_code.co_name}`: {e}\nTraceback:\n", traceback.print_exc()) return f"Error: {e}" def _ingest_single_csv(self, s3_path: str, course_name: str, **kwargs) -> str: