bluuebunny commited on
Commit
c5b8946
·
verified ·
1 Parent(s): 6049631

Update update_embeddings.py

Browse files
Files changed (1) hide show
  1. update_embeddings.py +3 -3
update_embeddings.py CHANGED
@@ -30,8 +30,8 @@ start = time()
30
  ################################################################################
31
  # Configuration
32
 
33
- # Year to update embeddings for, get and set the current year
34
- year = str(datetime.now().year)[2:]
35
 
36
  # Flag to force download and conversion even if files already exist
37
  FORCE = True
@@ -216,7 +216,7 @@ except Exception as e:
216
  print(f"Errored out with: {e}")
217
  print(f"No previous embeddings found for year: {year}")
218
  print("Creating new embeddings for all papers")
219
- previous_embeddings = pd.DataFrame(columns=['id', 'vector', '$meta'])
220
 
221
  ########################################
222
  # Embed the new abstracts
 
30
  ################################################################################
31
  # Configuration
32
 
33
+ # Get current year
34
+ year = str(datetime.now().year)
35
 
36
  # Flag to force download and conversion even if files already exist
37
  FORCE = True
 
216
  print(f"Errored out with: {e}")
217
  print(f"No previous embeddings found for year: {year}")
218
  print("Creating new embeddings for all papers")
219
+ previous_embeddings = pd.DataFrame(columns=['id', 'vector', 'title', 'abstract', 'authors', 'categories', 'month', 'year', 'url'])
220
 
221
  ########################################
222
  # Embed the new abstracts