mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 08:25:01 -06:00
refac
This commit is contained in:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user