ArthurSrz Claude commited on
Commit
462ab4b
·
1 Parent(s): 97837a7

Add detailed error logging to debug GraphRAG issues

Browse files

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -201,9 +201,13 @@ class BorgesGraphRAG:
201
  }
202
 
203
  except Exception as e:
 
 
 
204
  return {
205
  "success": False,
206
  "error": f"GraphRAG error: {str(e)}",
 
207
  "book_id": self.current_book or "unknown",
208
  "mode": mode,
209
  "query": query
 
201
  }
202
 
203
  except Exception as e:
204
+ import traceback
205
+ error_details = traceback.format_exc()
206
+ print(f"🚨 Full GraphRAG error: {error_details}")
207
  return {
208
  "success": False,
209
  "error": f"GraphRAG error: {str(e)}",
210
+ "error_details": error_details,
211
  "book_id": self.current_book or "unknown",
212
  "mode": mode,
213
  "query": query