|
@@ -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文件
|