|
@@ -130,11 +130,11 @@ class R2RFileService(OSSFileService):
|
|
|
if not search_results:
|
|
|
return files
|
|
|
|
|
|
- for doc in search_results:
|
|
|
- print(doc.metadata)
|
|
|
+ for doc in search_results:sss
|
|
|
+ #print(doc.metadata)
|
|
|
files.append(
|
|
|
- {"id": str(doc.id), "text": doc.text}
|
|
|
- ) # , "title": doc.metadata.title
|
|
|
+ {"id": str(doc.id), "text": doc.text, "title": doc.metadata["title"]}
|
|
|
+ )
|
|
|
# file_key = doc.metadata.file_key
|
|
|
# file_key = doc.metadata.title if file_key is None else file_key
|
|
|
# text = doc.text
|