enh: web embed bypass embedding and retrieval support

This commit is contained in:
Timothy Jaeryang Baek
2025-02-27 16:34:05 -08:00
parent 5e33955566
commit d0ddb0637e
2 changed files with 15 additions and 3 deletions

View File

@@ -414,6 +414,13 @@ def get_sources_from_files(
]
],
}
elif file.get("file").get("data"):
context = {
"documents": [[file.get("file").get("data", {}).get("content")]],
"metadatas": [
[file.get("file").get("data", {}).get("metadata", {})]
],
}
else:
collection_names = []
if file.get("type") == "collection":