This commit is contained in:
Timothy J. Baek 2024-09-29 22:55:53 +02:00
parent 6d764ee55e
commit 677c36c3aa

View File

@ -320,7 +320,7 @@ def get_rag_context(
if file.get("context") == "full":
context = {
"documents": [[file["content"]]],
"metadatas": [[{"file_id": file["id"], "name": file["name"]}]],
"metadatas": [[{"file_id": file.get("id"), "name": file.get("name")}]],
}
else:
context = None