jack 1 day ago
parent
commit
e98021b5b2
1 changed files with 5 additions and 3 deletions
  1. 5 3
      app/services/file/impl/r2r_file.py

+ 5 - 3
app/services/file/impl/r2r_file.py

@@ -193,8 +193,9 @@ class R2RFileService(OSSFileService):
         if len(ids) > 0:
             r2r = R2R()
             # r2r.init_sync()
+            print("list_chunkslist_chunkslist_chunkslist_chunkslist_chunkslist_chunks")
             list_results = r2r.list_chunks(ids=ids)
-
+            print(list_results)
             files = {}
             for doc in list_results:
                 text = doc.text
@@ -202,8 +203,9 @@ class R2RFileService(OSSFileService):
                     files["text"] += f"\n\n{text}"
                 else:
                     files["text"] = text
-
+            print(files)
             return files
-        return {}
+        else:
+            return {}
 
     # TODO 删除s3&r2r文件