|
@@ -131,11 +131,12 @@ class R2RFileService(OSSFileService):
|
|
|
# file_key = doc.metadata.file_key
|
|
|
# file_key = doc.metadata.title if file_key is None else file_key
|
|
|
text = doc.text
|
|
|
- if "text" not in files:
|
|
|
+ if "text" in files:
|
|
|
files["text"] += f"\n\n{text}"
|
|
|
else:
|
|
|
files["text"] = text
|
|
|
-
|
|
|
+ print("aaaaaaaaaaaaaa")
|
|
|
+ print(files)
|
|
|
return files
|
|
|
|
|
|
@staticmethod
|
|
@@ -189,7 +190,7 @@ class R2RFileService(OSSFileService):
|
|
|
# file_key = doc.metadata.file_key
|
|
|
# file_key = doc.metadata.title if file_key is None else file_key
|
|
|
text = doc.text
|
|
|
- if "text" not in files:
|
|
|
+ if "text" in files:
|
|
|
files["text"] += f"\n\n{text}"
|
|
|
else:
|
|
|
files["text"] = text
|