mirror of
https://github.com/open-webui/open-webui
synced 2025-02-23 05:38:41 +00:00
refac
This commit is contained in:
parent
ca0b7217d2
commit
dbe5d1ca08
@ -305,8 +305,6 @@ def get_sources_from_files(
|
|||||||
|
|
||||||
for file in files:
|
for file in files:
|
||||||
if file.get("docs"):
|
if file.get("docs"):
|
||||||
|
|
||||||
print("file.get('docs')", file.get("docs"))
|
|
||||||
context = {
|
context = {
|
||||||
"documents": [[doc.get("content") for doc in file.get("docs")]],
|
"documents": [[doc.get("content") for doc in file.get("docs")]],
|
||||||
"metadatas": [[doc.get("metadata") for doc in file.get("docs")]],
|
"metadatas": [[doc.get("metadata") for doc in file.get("docs")]],
|
||||||
|
Loading…
Reference in New Issue
Block a user