This commit is contained in:
Timothy J. Baek
2024-09-29 23:08:55 +02:00
parent 677c36c3aa
commit 6afc686e17
6 changed files with 22 additions and 10 deletions

View File

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