Skip to content

Commit

Permalink
Bugfix/update doc store naming convention (#3814)
Browse files Browse the repository at this point in the history
update doc store naming convention
  • Loading branch information
HenryHengZJ authored Jan 6, 2025
1 parent 3b13e83 commit 4c40030
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit 4c40030

Please sign in to comment.