mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-08 03:08:02 +00:00
refac
This commit is contained in:
parent
02400c7a50
commit
278e97589e
1 changed files with 12 additions and 1 deletions
|
|
@ -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]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue