Bugfix/update doc store naming convention (#3814)
update doc store naming convention
This commit is contained in:
parent
3b13e8345a
commit
4c400301f2
|
|
@ -319,7 +319,10 @@ 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 name = (docStoreOption?.label || '')
|
||||
.toLowerCase()
|
||||
.replace(/ /g, '_')
|
||||
.replace(/[^a-z0-9_-]/g, '')
|
||||
const desc = selectedDocumentStores[i].description || docStoreOption?.description || ''
|
||||
|
||||
set(retrieverToolNodeData, 'inputs', {
|
||||
|
|
|
|||
Loading…
Reference in New Issue