diff --git a/ai_ta_backend/main.py b/ai_ta_backend/main.py index 41f9ce5a..1f2ee238 100644 --- a/ai_ta_backend/main.py +++ b/ai_ta_backend/main.py @@ -404,7 +404,7 @@ def logToNomic(): print("course_name: ", course_name) print("conversation: ", conversation) - print("print json: ", request.get_json()) + # print("print json: ", request.get_json()) data = request.get_json() print(len(data)) print(type(data)) @@ -412,8 +412,8 @@ def logToNomic(): course_name = data['course_name'] conversation = data['conversation'] - print("course_name: ", course_name) - print("conversation: ", conversation) + # print("course_name: ", course_name) + # print("conversation: ", conversation) if course_name == '' or conversation == '': # proper web error "400 Bad request" diff --git a/ai_ta_backend/nomic_logging.py b/ai_ta_backend/nomic_logging.py index 99893b3d..6afbdaec 100644 --- a/ai_ta_backend/nomic_logging.py +++ b/ai_ta_backend/nomic_logging.py @@ -26,7 +26,7 @@ def log_convo_to_nomic(course_name: str, conversation) -> str: user_email = conversation['conversation']['user_email'] conversation_id = conversation['conversation']['id'] - print("conversation: ", conversation) + #print("conversation: ", conversation) # we have to upload whole conversations # check what the fetched data looks like - pandas df or pyarrow table @@ -142,6 +142,7 @@ def create_nomic_map(course_name: str, log_data: list): 2. appends current embeddings and metadata to it 2. creates map if there are at least 20 queries """ + print("in create_nomic_map()") # initialize supabase supabase_client = supabase.create_client( # type: ignore supabase_url=os.getenv('SUPABASE_URL'), # type: ignore