From 041ff060c59d2caf8638e56ac3f4fab63d1b0fe7 Mon Sep 17 00:00:00 2001 From: star-nox Date: Thu, 14 Sep 2023 21:37:51 -0500 Subject: [PATCH] checking for JSON serialization errors --- ai_ta_backend/nomic_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai_ta_backend/nomic_logging.py b/ai_ta_backend/nomic_logging.py index ebff3c40..f48de745 100644 --- a/ai_ta_backend/nomic_logging.py +++ b/ai_ta_backend/nomic_logging.py @@ -59,7 +59,7 @@ def log_convo_to_nomic(course_name: str, conversation) -> str: embeddings = map_embeddings_df[prev_index-1].reshape(1, 1536) prev_convo = prev_data['conversation'].values[0] prev_id = prev_data['id'].values[0] - print("prev_id print: ", prev_data['id']) + print("prev_id print: ", [prev_id]) print("prev_id: ", prev_id) created_at = pd.to_datetime(prev_data['created_at'].values[0]).strftime('%Y-%m-%d %H:%M:%S') print("prev_created_at: ", created_at)