jack 1 week ago
parent
commit
33d27321b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/services/file/impl/r2r_file.py

+ 1 - 1
app/services/file/impl/r2r_file.py

@@ -140,7 +140,7 @@ class R2RFileService(OSSFileService):
                         "text": doc.text,
                         "text": doc.text,
                         "title": doc.metadata["title"],
                         "title": doc.metadata["title"],
                         "url": "https://r2r.s3.cn-north-1.amazonaws.com.cn/r2r/documents/"
                         "url": "https://r2r.s3.cn-north-1.amazonaws.com.cn/r2r/documents/"
-                        + doc.document_id,
+                        + str(doc.document_id),
                     }
                     }
                 )
                 )
             # print(doc.metadata)
             # print(doc.metadata)