2025-04-18 14:56:34 +08:00
|
|
|
import WorkflowWithDefaultContext, {
|
|
|
|
WorkflowWithInnerContext,
|
|
|
|
} from '@/app/components/workflow'
|
|
|
|
import {
|
|
|
|
WorkflowContextProvider,
|
|
|
|
} from '@/app/components/workflow/context'
|
2025-04-18 15:46:54 +08:00
|
|
|
import type { InjectWorkflowStoreSliceFn } from '@/app/components/workflow/store'
|
|
|
|
import { createRagPipelineSliceSlice } from './store'
|
2025-04-22 11:29:03 +08:00
|
|
|
import RagPipelineChildren from './components/rag-pipeline-children'
|
2025-04-18 14:56:34 +08:00
|
|
|
|
|
|
|
const RagPipeline = () => {
|
|
|
|
return (
|
2025-04-18 15:46:54 +08:00
|
|
|
<WorkflowContextProvider
|
|
|
|
injectWorkflowStoreSliceFn={createRagPipelineSliceSlice as InjectWorkflowStoreSliceFn}
|
|
|
|
>
|
2025-04-18 14:56:34 +08:00
|
|
|
<WorkflowWithDefaultContext
|
|
|
|
edges={[]}
|
|
|
|
nodes={[]}
|
|
|
|
>
|
|
|
|
<WorkflowWithInnerContext
|
|
|
|
nodes={[]}
|
|
|
|
edges={[]}
|
|
|
|
>
|
2025-04-22 11:29:03 +08:00
|
|
|
<RagPipelineChildren />
|
2025-04-18 14:56:34 +08:00
|
|
|
</WorkflowWithInnerContext>
|
|
|
|
</WorkflowWithDefaultContext>
|
|
|
|
</WorkflowContextProvider>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default RagPipeline
|