Skip to content

Commit

Permalink
testing index errors
Browse files Browse the repository at this point in the history
  • Loading branch information
star-nox committed Sep 14, 2023
1 parent fb37eed commit 90cdc5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1,915 deletions.
1 change: 1 addition & 0 deletions ai_ta_backend/nomic_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def log_convo_to_nomic(course_name: str, conversation) -> str:
# store that convo metadata locally
prev_data = map_metadata_df[map_metadata_df['conversation_id'] == conversation_id]
prev_index = prev_data.index.values[0]
print("prev_index: ", prev_index)
embeddings = map_embeddings_df[prev_index-1].reshape(1, 1536)
prev_convo = prev_data['conversation'].values[0]
prev_id = prev_data['id'].values[0]
Expand Down
Loading

0 comments on commit 90cdc5d

Please sign in to comment.