From 6c68ba52e5c06492fc5be42bdcfbf031195d5e4c Mon Sep 17 00:00:00 2001 From: Alisson Date: Thu, 9 May 2024 18:05:34 -0300 Subject: [PATCH] return file_uuid --- app/indexer/content_bases.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/indexer/content_bases.py b/app/indexer/content_bases.py index c3e8c8f..a371b73 100644 --- a/app/indexer/content_bases.py +++ b/app/indexer/content_bases.py @@ -57,7 +57,8 @@ def search(self, search, filter=None, threshold=0.1) -> list[Product]: seen.add(full_page) return_list.append({ "full_page": full_page, - "filename": doc.metadata.get("filename") + "filename": doc.metadata.get("filename"), + "file_uuid": doc.metadata.get("file_uuid"), }) return return_list