Dhruv-Ty commited on
Commit
ad30c53
·
verified ·
1 Parent(s): f025340

Update src/database.py

Browse files
Files changed (1) hide show
  1. src/database.py +7 -0
src/database.py CHANGED
@@ -77,6 +77,10 @@ class SupabaseClient:
77
  if "explanation" in message:
78
  message_data["explanation"] = message.get("explanation")
79
 
 
 
 
 
80
  if "evidence" in message:
81
  # Convert evidence to string for storage
82
  try:
@@ -139,6 +143,9 @@ class SupabaseClient:
139
  if msg.get("explanation"):
140
  message_dict["explanation"] = msg["explanation"]
141
 
 
 
 
142
  if msg.get("evidence"):
143
  # Parse evidence JSON string back to object
144
  try:
 
77
  if "explanation" in message:
78
  message_data["explanation"] = message.get("explanation")
79
 
80
+ # Store follow-up questions
81
+ if "follow_up_questions" in message:
82
+ message_data["follow_up_questions"] = message.get("follow_up_questions")
83
+
84
  if "evidence" in message:
85
  # Convert evidence to string for storage
86
  try:
 
143
  if msg.get("explanation"):
144
  message_dict["explanation"] = msg["explanation"]
145
 
146
+ if msg.get("follow_up_questions"):
147
+ message_dict["follow_up_questions"] = msg["follow_up_questions"]
148
+
149
  if msg.get("evidence"):
150
  # Parse evidence JSON string back to object
151
  try: