leo-bourrel commited on
Commit
28a498b
·
1 Parent(s): 55dc8e4

fix: add space between authors && keywords

Browse files
Files changed (1) hide show
  1. sorbobotapp/vector_store.py +2 -2
sorbobotapp/vector_store.py CHANGED
@@ -272,8 +272,8 @@ class CustomVectorStore(VectorStore):
272
  a.doi,
273
  a.hal_id,
274
  a.abstract_en,
275
- string_agg(distinct keyword."name", ',') as keywords,
276
- string_agg(distinct author."name", ',') as authors,
277
  abstract_embedding_en {self.distance_strategy} '{str(embedding)}' as distance
278
  from article a
279
  left join article_keyword ON article_keyword.article_id = a.id
 
272
  a.doi,
273
  a.hal_id,
274
  a.abstract_en,
275
+ string_agg(distinct keyword."name", ', ') as keywords,
276
+ string_agg(distinct author."name", ', ') as authors,
277
  abstract_embedding_en {self.distance_strategy} '{str(embedding)}' as distance
278
  from article a
279
  left join article_keyword ON article_keyword.article_id = a.id