|
|
|
|
|
|
|
|
const total = documentsRes?.total || 0 |
|
|
const total = documentsRes?.total || 0 |
|
|
|
|
|
|
|
|
const routeToDocCreate = () => { |
|
|
const routeToDocCreate = () => { |
|
|
// if dataset is create from pipeline, go to create from pipeline page |
|
|
|
|
|
|
|
|
// if dataset is created from pipeline, go to create from pipeline page |
|
|
if (dataset?.runtime_mode === 'rag_pipeline') { |
|
|
if (dataset?.runtime_mode === 'rag_pipeline') { |
|
|
router.push(`/datasets/${datasetId}/documents/create-from-pipeline`) |
|
|
router.push(`/datasets/${datasetId}/documents/create-from-pipeline`) |
|
|
return |
|
|
return |