mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 21:38:43 +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"],
|
||||
"document": context["documents"][0],
|
||||
"metadata": context["metadatas"][0],
|
||||
"distances": context["distances"][0]
|
||||
}
|
||||
)
|
||||
except Exception as e:
|
||||
|
Loading…
Reference in New Issue
Block a user