Spaces:
Running
Running
Germano Cavalcante
commited on
Commit
·
125e8d3
1
Parent(s):
bfd1066
Find Related: Update Cache
Browse files
routers/rag/embeddings_issues.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34cdef92b2a21659001ec62deaf6936361be3960120d4ff1756018f1e15da2ec
|
3 |
+
size 748865902
|
routers/tool_find_related.py
CHANGED
@@ -85,9 +85,10 @@ class _Data(dict):
|
|
85 |
titles_old = []
|
86 |
try:
|
87 |
arrays_size_old = self[repo]['arrays_size']
|
88 |
-
titles_old = self[repo]['titles']
|
89 |
if size_new <= arrays_size_old:
|
90 |
return
|
|
|
|
|
91 |
except:
|
92 |
pass
|
93 |
|
@@ -185,7 +186,7 @@ class _Data(dict):
|
|
185 |
if title_old != issue['title']:
|
186 |
self[repo]['titles'][number] = issue['title']
|
187 |
issues_to_embed.append(issue)
|
188 |
-
elif not updated_at
|
189 |
issues_to_embed.append(issue)
|
190 |
|
191 |
if issues_to_embed:
|
|
|
85 |
titles_old = []
|
86 |
try:
|
87 |
arrays_size_old = self[repo]['arrays_size']
|
|
|
88 |
if size_new <= arrays_size_old:
|
89 |
return
|
90 |
+
updated_at_old = self[repo]['updated_at']
|
91 |
+
titles_old = self[repo]['titles']
|
92 |
except:
|
93 |
pass
|
94 |
|
|
|
186 |
if title_old != issue['title']:
|
187 |
self[repo]['titles'][number] = issue['title']
|
188 |
issues_to_embed.append(issue)
|
189 |
+
elif not updated_at or updated_at[i] >= date_old:
|
190 |
issues_to_embed.append(issue)
|
191 |
|
192 |
if issues_to_embed:
|