Spaces:
Sleeping
Sleeping
Léo Bourrel
commited on
Commit
·
dc294ab
1
Parent(s):
9f90955
fix: return abstract list first element only
Browse files
sorbobotapp/vector_store.py
CHANGED
@@ -244,7 +244,7 @@ class CustomVectorStore(VectorStore):
|
|
244 |
"doi": result["doi"],
|
245 |
"hal_id": result["hal_id"],
|
246 |
"distance": result["distance"],
|
247 |
-
"abstract": result["abstract"],
|
248 |
},
|
249 |
),
|
250 |
result["distance"] if self.embedding_function is not None else None,
|
|
|
244 |
"doi": result["doi"],
|
245 |
"hal_id": result["hal_id"],
|
246 |
"distance": result["distance"],
|
247 |
+
"abstract": result["abstract"][0],
|
248 |
},
|
249 |
),
|
250 |
result["distance"] if self.embedding_function is not None else None,
|