Spaces:
Sleeping
Sleeping
Léo Bourrel
commited on
Commit
·
9de24de
1
Parent(s):
9efa735
feat: ignore 'None' abstract
Browse files- custom_pgvector.py +3 -1
custom_pgvector.py
CHANGED
@@ -354,7 +354,9 @@ class CustomPGVector(VectorStore):
|
|
354 |
left join keyword on article_keyword.keyword_id = keyword.id
|
355 |
left join article_author ON article_author.article_id = a.id
|
356 |
left join author on author.id = article_author.author_id
|
357 |
-
where
|
|
|
|
|
358 |
GROUP BY a.id
|
359 |
ORDER BY distance
|
360 |
LIMIT {k};
|
|
|
354 |
left join keyword on article_keyword.keyword_id = keyword.id
|
355 |
left join article_author ON article_author.article_id = a.id
|
356 |
left join author on author.id = article_author.author_id
|
357 |
+
where
|
358 |
+
abstract_en != '' and
|
359 |
+
abstract_en != 'None'
|
360 |
GROUP BY a.id
|
361 |
ORDER BY distance
|
362 |
LIMIT {k};
|