refac: inline citations
This commit is contained in:
1 parent
714ed248fb
commit
7062e637e8
3 files changed
+24
-6
No files matched your search
@@ -43,6 +43,10 @@
|
||||
|
||||
$: {
|
||||
_citations = citations.reduce((acc, citation) => {
|
||||
if (Object.keys(citation).length === 0) {
|
||||
return acc;
|
||||
}
|
||||
|
||||
citation.document.forEach((document, index) => {
|
||||
const metadata = citation.metadata?.[index];
|
||||
const distance = citation.distances?.[index];
|
||||
|
||||
Reference in new issue
Block a user