Update update_embeddings.py
Browse files- update_embeddings.py +3 -3
update_embeddings.py
CHANGED
@@ -30,8 +30,8 @@ start = time()
|
|
30 |
################################################################################
|
31 |
# Configuration
|
32 |
|
33 |
-
#
|
34 |
-
year = str(datetime.now().year)
|
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', '
|
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
|