mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-29 10:09:17 +02: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.retrieval.vector.main import SearchResult
|
||||||
from open_webui.utils.misc import sanitize_text_for_db
|
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]:
|
def filter_metadata(metadata: dict[str, any]) -> dict[str, any]:
|
||||||
|
|||||||
Reference in New Issue
Block a user