Timothy Jaeryang Baek 1 month ago
parent
commit
4f2e426fc7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      backend/open_webui/retrieval/utils.py

+ 1 - 3
backend/open_webui/retrieval/utils.py

@@ -499,9 +499,7 @@ def get_sources_from_items(
                     "documents": [
                         [item.get("file", {}).get("data", {}).get("content")]
                     ],
-                    "metadatas": [
-                        [item.get("file", {}).get("data", {}).get("meta", {})]
-                    ],
+                    "metadatas": [[item.get("file", {}).get("meta", {})]],
                 }
             else:
                 # Fallback to item content