From 9c292998354cd7ab15c8eaf6edd38619e4f18d7d Mon Sep 17 00:00:00 2001 From: Diego Lovison Date: Mon, 26 Aug 2024 11:51:01 -0300 Subject: [PATCH] Simplify and clarify instructions for using `dsl.importer` component. (#3838) Signed-off-by: Diego Lovison --- .../pipelines/user-guides/components/importer-component.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/components/pipelines/user-guides/components/importer-component.md b/content/en/docs/components/pipelines/user-guides/components/importer-component.md index cde20a5676..3197b034ac 100644 --- a/content/en/docs/components/pipelines/user-guides/components/importer-component.md +++ b/content/en/docs/components/pipelines/user-guides/components/importer-component.md @@ -10,7 +10,7 @@ Unlike the other three authoring approaches, an importer component is not a gene As described in [Pipeline Basics][pipeline-basics], inputs to a task are typically outputs of an upstream task. When this is the case, artifacts are easily accessed on the upstream task using `my_task.outputs['']`. The artifact is also registered in ML Metadata when it is created by the upstream task. -If you wish to use an existing artifact that was not generated by a task in the current pipeline or wish to use as an artifact an external file that was not generated by a pipeline at all, you can use a [`dsl.importer`][dsl-importer] component to load the artifact from its URI. +If you wish to use an existing artifact that was not generated by a task in the current pipeline, you can use a [`dsl.importer`][dsl-importer] component to load the artifact from its URI. You do not need to write an importer component; it can be imported from the `dsl` module and used directly: @@ -37,4 +37,4 @@ You may also specify a boolean `reimport` argument. If `reimport` is `False`, KF [pipeline-basics]: /docs/components/pipelines/user-guides/components/compose-components-into-pipelines [dsl-importer]: https://kubeflow-pipelines.readthedocs.io/en/latest/source/dsl.html#kfp.dsl.importer [artifacts]: /docs/components/pipelines/user-guides/data-handling/artifacts -[ml-metadata]: https://github.com/google/ml-metadata \ No newline at end of file +[ml-metadata]: https://github.com/google/ml-metadata