update
This commit is contained in:
@@ -124,6 +124,7 @@ async def upload_document(
|
||||
|
||||
logging.info(f"Document {doc_id} upload initiated successfully")
|
||||
return {"document_id": doc_id, "message": "Document uploaded successfully, processing in background"}
|
||||
|
||||
except Exception as e:
|
||||
error_msg = f"Error processing document: {str(e)}"
|
||||
logging.error(error_msg)
|
||||
|
||||
@@ -295,4 +295,4 @@ class DocumentProcessor:
|
||||
except Exception as e:
|
||||
logging.error(f"Error reranking issues: {str(e)}")
|
||||
# If reranking fails, return the original order
|
||||
return issues_and_recommendations
|
||||
return issues_and_recommendations
|
||||
Reference in New Issue
Block a user