Skip to content

Commit

Permalink
Hotfix prints in /delete
Browse files Browse the repository at this point in the history
  • Loading branch information
KastanDay committed Mar 13, 2024
1 parent 9d77ab2 commit c249036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ai_ta_backend/service/retrieval_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,14 @@ def delete_from_nomic_and_supabase(self, course_name: str, identifier_key: str,
project_id = response.data[0]['doc_map_id']
self.nomicService.delete_from_document_map(project_id, nomic_ids_to_delete)
except Exception as e:
print(f"Error in deleting file from Nomic or Supabase using {identifier_key}: {identifier_value}", e)
print(f"Nomic Error in deleting. {identifier_key}: {identifier_value}", e)
self.sentry.capture_exception(e)

try:
print(f"Supabase Delete. course: {course_name} using {identifier_key}: {identifier_value}")
response = self.sqlDb.deleteMaterialsForCourseAndKeyAndValue(course_name, identifier_key, identifier_value)
except Exception as e:
print(f"Error in deleting file from Nomic or Supabase using {identifier_key}: {identifier_value}", e)
print(f"Supabase Error in delete. {identifier_key}: {identifier_value}", e)
self.sentry.capture_exception(e)

def vector_search(self, search_query, course_name):
Expand Down

0 comments on commit c249036

Please sign in to comment.