mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac: inline citations
This commit is contained in:
@@ -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