Skip to content

Commit

Permalink
adding proper error logging to image ingest
Browse files Browse the repository at this point in the history
  • Loading branch information
KastanDay committed Nov 7, 2023
1 parent cf78800 commit 62883e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_ta_backend/vector_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 62883e8

Please sign in to comment.