From bf347bc5e5694d566d345d35df9a0abb2c2fd3d2 Mon Sep 17 00:00:00 2001
From: deep1401 <gandhi0869@gmail.com>
Date: Thu, 13 Feb 2025 09:11:00 -0800
Subject: [PATCH] Add additional footer message for #232

---
 src/renderer/components/Experiment/Documents/index.tsx | 3 ++-
 src/renderer/components/Experiment/Rag/Documents.tsx   | 7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/renderer/components/Experiment/Documents/index.tsx b/src/renderer/components/Experiment/Documents/index.tsx
index 257afb35..fadf9d39 100644
--- a/src/renderer/components/Experiment/Documents/index.tsx
+++ b/src/renderer/components/Experiment/Documents/index.tsx
@@ -12,7 +12,8 @@ export default function BigDocumentsPage({ experimentInfo }) {
         pb: 2,
       }}
     >
-      <Documents experimentInfo={experimentInfo} fullPage />
+      <Documents experimentInfo={experimentInfo} fullPage  additionalMessage/>
     </Sheet>
   );
 }
+
diff --git a/src/renderer/components/Experiment/Rag/Documents.tsx b/src/renderer/components/Experiment/Rag/Documents.tsx
index 30fda21b..a4012c2f 100644
--- a/src/renderer/components/Experiment/Rag/Documents.tsx
+++ b/src/renderer/components/Experiment/Rag/Documents.tsx
@@ -136,7 +136,7 @@ function RowMenu({ experimentInfo, filename, mutate, row }) {
 
 const fetcher = (url) => fetch(url).then((res) => res.json());
 
-export default function Documents({ experimentInfo, fullPage = false }) {
+export default function Documents({ experimentInfo, fullPage = false, additionalMessage = false }) {
   const [doc, setDoc] = React.useState<Doc>('desc');
   const [selected, setSelected] = React.useState<readonly string[]>([]);
   const [open, setOpen] = React.useState(false);
@@ -732,6 +732,11 @@ export default function Documents({ experimentInfo, fullPage = false }) {
           Reindex
         </TinyButton>
       </Stack>
+      {additionalMessage && (
+        <Typography level="body-xs" mt={1}>
+          A RAG Plugin needs to be installed to index the documents
+        </Typography>
+      )}
     </>
   );
 }
-- 
GitLab