2025-04-18 14:56:34 +08:00
|
|
|
import WorkflowWithDefaultContext, {
|
|
|
|
WorkflowWithInnerContext,
|
|
|
|
} from '@/app/components/workflow'
|
2025-04-21 16:58:22 +08:00
|
|
|
import RagPipelinePanel from './components/panel'
|
2025-04-18 14:56:34 +08:00
|
|
|
import {
|
|
|
|
WorkflowContextProvider,
|
|
|
|
} from '@/app/components/workflow/context'
|
2025-04-18 15:46:54 +08:00
|
|
|
import type { InjectWorkflowStoreSliceFn } from '@/app/components/workflow/store'
|
2025-04-18 14:56:34 +08:00
|
|
|
import RagPipelineHeader from './components/rag-pipeline-header'
|
2025-04-18 15:46:54 +08:00
|
|
|
import { createRagPipelineSliceSlice } from './store'
|
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={[]}
|
|
|
|
>
|
|
|
|
<RagPipelineHeader />
|
2025-04-21 16:58:22 +08:00
|
|
|
<RagPipelinePanel />
|
2025-04-18 14:56:34 +08:00
|
|
|
</WorkflowWithInnerContext>
|
|
|
|
</WorkflowWithDefaultContext>
|
|
|
|
</WorkflowContextProvider>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default RagPipeline
|