瀏覽代碼

enh: append citations with distance scores

Jannik Streidl 6 月之前
父節點
當前提交
b105efa05f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      backend/open_webui/apps/retrieval/utils.py

+ 1 - 0
backend/open_webui/apps/retrieval/utils.py

@@ -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: