diff --git a/src/renderer/components/Experiment/Documents/index.tsx b/src/renderer/components/Experiment/Documents/index.tsx index 257afb35835bceeb7031568bfed9aa6f9d393d84..fadf9d39a713e295a64e7d96cb47295bab09602b 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 30fda21b9f3b4de7fcab213c301a9b1c7b2a9e89..a4012c2f493f617d2618e4591b3dc8f1b5107047 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> + )} </> ); }