refac
This commit is contained in:
1 parent
677c36c3aa
commit
6afc686e17
6 files changed
+22
-10
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user