mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 00:59:52 +00:00
enh: append citations with distance scores
This commit is contained in:
parent
86caca495b
commit
b105efa05f
@ -398,6 +398,7 @@ def get_rag_context(
|
|||||||
"source": context["file"],
|
"source": context["file"],
|
||||||
"document": context["documents"][0],
|
"document": context["documents"][0],
|
||||||
"metadata": context["metadatas"][0],
|
"metadata": context["metadatas"][0],
|
||||||
|
"distances": context["distances"][0]
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user