From 7a56dd6778ca01e508a9c11e1ed2701e81211cb1 Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 17 Dec 2024 19:08:02 +0000 Subject: [PATCH 1/2] add tool description to custom assistant --- .../views/assistants/custom/CustomAssistantConfigurePreview.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx b/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx index e782ddb47f2..0c9e5ace98c 100644 --- a/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx +++ b/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx @@ -321,7 +321,7 @@ const CustomAssistantConfigurePreview = () => { const docStoreOption = documentStoreOptions.find((ds) => ds.name === selectedDocumentStores[i].id) // convert to small case and replace space with underscore const name = (docStoreOption?.label || '').toLowerCase().replace(/ /g, '_') - const desc = docStoreOption?.description || '' + const desc = selectedDocumentStores[i].description || docStoreOption?.description || '' set(retrieverToolNodeData, 'inputs', { name, From e13be3801574f3a445ad26c9b28029d302f85b16 Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 19 Dec 2024 10:58:04 +0000 Subject: [PATCH 2/2] update custom assistant knowledge tooltip --- .../views/assistants/custom/CustomAssistantConfigurePreview.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx b/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx index 0c9e5ace98c..14854b20b8b 100644 --- a/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx +++ b/packages/ui/src/views/assistants/custom/CustomAssistantConfigurePreview.jsx @@ -987,7 +987,7 @@ const CustomAssistantConfigurePreview = () => { > Knowledge (Document Stores) - +