Przeglądaj źródła

enh: append citations with distance scores

Jannik Streidl 6 miesięcy temu
rodzic
commit
b105efa05f
1 zmienionych plików z 1 dodań i 0 usunięć
  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: