This commit is contained in:
boladeE
2025-04-29 23:19:58 +01:00
parent 6b2be86e16
commit 0247647650
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -124,6 +124,7 @@ async def upload_document(
logging.info(f"Document {doc_id} upload initiated successfully") logging.info(f"Document {doc_id} upload initiated successfully")
return {"document_id": doc_id, "message": "Document uploaded successfully, processing in background"} return {"document_id": doc_id, "message": "Document uploaded successfully, processing in background"}
except Exception as e: except Exception as e:
error_msg = f"Error processing document: {str(e)}" error_msg = f"Error processing document: {str(e)}"
logging.error(error_msg) logging.error(error_msg)
+1 -1
View File
@@ -295,4 +295,4 @@ class DocumentProcessor:
except Exception as e: except Exception as e:
logging.error(f"Error reranking issues: {str(e)}") logging.error(f"Error reranking issues: {str(e)}")
# If reranking fails, return the original order # If reranking fails, return the original order
return issues_and_recommendations return issues_and_recommendations