From 278e97589e71d119b887d5bca9d6ae32912d1dff Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 25 Aug 2026 15:22:19 -0400 Subject: [PATCH] refac --- backend/open_webui/retrieval/vector/utils.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/retrieval/vector/utils.py b/backend/open_webui/retrieval/vector/utils.py index 31b5b0748c..cb93ccedb8 100644 --- a/backend/open_webui/retrieval/vector/utils.py +++ b/backend/open_webui/retrieval/vector/utils.py @@ -4,7 +4,18 @@ from typing import Any from open_webui.retrieval.vector.main import SearchResult from open_webui.utils.misc import sanitize_text_for_db -KEYS_TO_EXCLUDE = ['content', 'pages', 'tables', 'paragraphs', 'sections', 'figures'] +KEYS_TO_EXCLUDE = [ + 'content', + 'pages', + 'tables', + 'paragraphs', + 'sections', + 'figures', + 'documents', + 'keyValuePairs', + 'styles', + 'languages', +] def filter_metadata(metadata: dict[str, any]) -> dict[str, any]: