diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx
index 66109a26ce..f246d5e849 100644
--- a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx
+++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx
@@ -62,7 +62,7 @@ const Popup = () => {
const { mutateAsync: publishWorkflow } = usePublishWorkflow()
const { notify } = useToastContext()
const workflowStore = useWorkflowStore()
- const { isAllowPublishAsKnowledgePipeline } = useProviderContext()
+ const { isAllowPublishAsCustomKnowledgePipelineTemplate } = useProviderContext()
const setShowPricingModal = useModalContextSelector(s => s.setShowPricingModal)
const [confirmVisible, {
@@ -206,16 +206,16 @@ const Popup = () => {
])
const handleClickPublishAsKnowledgePipeline = useCallback(() => {
- if (!isAllowPublishAsKnowledgePipeline)
+ if (!isAllowPublishAsCustomKnowledgePipelineTemplate)
setShowPricingModal()
else
setShowPublishAsKnowledgePipelineModal()
- }, [isAllowPublishAsKnowledgePipeline, setShowPublishAsKnowledgePipelineModal, setShowPricingModal])
+ }, [isAllowPublishAsCustomKnowledgePipelineTemplate, setShowPublishAsKnowledgePipelineModal, setShowPricingModal])
return (
@@ -293,12 +293,12 @@ const Popup = () => {
onClick={handleClickPublishAsKnowledgePipeline}
disabled={!publishedAt || isPublishingAsCustomizedPipeline}
>
-
+
{t('pipeline.common.publishAs')}
- {!isAllowPublishAsKnowledgePipeline && (
+ {!isAllowPublishAsCustomKnowledgePipelineTemplate && (
diff --git a/web/context/provider-context.tsx b/web/context/provider-context.tsx
index 902e5baf99..09019d3024 100644
--- a/web/context/provider-context.tsx
+++ b/web/context/provider-context.tsx
@@ -61,7 +61,7 @@ type ProviderContextState = {
},
refreshLicenseLimit: () => void
isAllowTransferWorkspace: boolean
- isAllowPublishAsKnowledgePipeline: boolean
+ isAllowPublishAsCustomKnowledgePipelineTemplate: boolean
}
const ProviderContext = createContext({
modelProviders: [],
@@ -108,7 +108,7 @@ const ProviderContext = createContext({
},
refreshLicenseLimit: noop,
isAllowTransferWorkspace: false,
- isAllowPublishAsKnowledgePipeline: false,
+ isAllowPublishAsCustomKnowledgePipelineTemplate: false,
})
export const useProviderContext = () => useContext(ProviderContext)
@@ -147,7 +147,7 @@ export const ProviderContextProvider = ({
const [isEducationWorkspace, setIsEducationWorkspace] = useState(false)
const { data: educationAccountInfo, isLoading: isLoadingEducationAccountInfo, isFetching: isFetchingEducationAccountInfo } = useEducationStatus(!enableEducationPlan)
const [isAllowTransferWorkspace, setIsAllowTransferWorkspace] = useState(false)
- const [isAllowPublishAsKnowledgePipeline, setIsAllowPublishAsKnowledgePipeline] = useState(false)
+ const [isAllowPublishAsCustomKnowledgePipelineTemplate, setIsAllowPublishAsCustomKnowledgePipelineTemplate] = useState(false)
const fetchPlan = async () => {
try {
@@ -179,7 +179,7 @@ export const ProviderContextProvider = ({
if (data.is_allow_transfer_workspace)
setIsAllowTransferWorkspace(data.is_allow_transfer_workspace)
if (data.knowledge_pipeline?.publish_enabled)
- setIsAllowPublishAsKnowledgePipeline(data.knowledge_pipeline?.publish_enabled)
+ setIsAllowPublishAsCustomKnowledgePipelineTemplate(data.knowledge_pipeline?.publish_enabled)
}
catch (error) {
console.error('Failed to fetch plan info:', error)
@@ -245,7 +245,7 @@ export const ProviderContextProvider = ({
licenseLimit,
refreshLicenseLimit: fetchPlan,
isAllowTransferWorkspace,
- isAllowPublishAsKnowledgePipeline,
+ isAllowPublishAsCustomKnowledgePipelineTemplate,
}}>
{children}
diff --git a/web/i18n/en-US/pipeline.ts b/web/i18n/en-US/pipeline.ts
index e906d615f7..4b29bdbb00 100644
--- a/web/i18n/en-US/pipeline.ts
+++ b/web/i18n/en-US/pipeline.ts
@@ -1,7 +1,7 @@
const translation = {
common: {
goToAddDocuments: 'Go to add documents',
- publishAs: 'Publish as a Knowledge Pipeline',
+ publishAs: 'Publish as a Customized Pipeline Template',
confirmPublish: 'Confirm Publish',
confirmPublishContent: 'After successfully publishing the knowledge pipeline, the chunk structure of this knowledge base cannot be modified. Are you sure you want to publish it?',
publishAsPipeline: {
diff --git a/web/i18n/zh-Hans/pipeline.ts b/web/i18n/zh-Hans/pipeline.ts
index 0bba075196..3c3a7a6506 100644
--- a/web/i18n/zh-Hans/pipeline.ts
+++ b/web/i18n/zh-Hans/pipeline.ts
@@ -1,7 +1,7 @@
const translation = {
common: {
goToAddDocuments: '去添加文档',
- publishAs: '发布为知识流水线',
+ publishAs: '发布为自定义流水线模板',
confirmPublish: '确认发布',
confirmPublishContent: '成功发布知识流水线后,此知识库的分段结构将无法修改。您确定要发布吗?',
publishAsPipeline: {