mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 01:01:11 +03:00
Bugfix/update doc store naming convention (#3814)
update doc store naming convention
This commit is contained in:
@@ -319,7 +319,10 @@ const CustomAssistantConfigurePreview = () => {
|
|||||||
|
|
||||||
const docStoreOption = documentStoreOptions.find((ds) => ds.name === selectedDocumentStores[i].id)
|
const docStoreOption = documentStoreOptions.find((ds) => ds.name === selectedDocumentStores[i].id)
|
||||||
// convert to small case and replace space with underscore
|
// convert to small case and replace space with underscore
|
||||||
const name = (docStoreOption?.label || '').toLowerCase().replace(/ /g, '_')
|
const name = (docStoreOption?.label || '')
|
||||||
|
.toLowerCase()
|
||||||
|
.replace(/ /g, '_')
|
||||||
|
.replace(/[^a-z0-9_-]/g, '')
|
||||||
const desc = selectedDocumentStores[i].description || docStoreOption?.description || ''
|
const desc = selectedDocumentStores[i].description || docStoreOption?.description || ''
|
||||||
|
|
||||||
set(retrieverToolNodeData, 'inputs', {
|
set(retrieverToolNodeData, 'inputs', {
|
||||||
|
|||||||
Reference in New Issue
Block a user