For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DocumentationAPI Reference
DocumentationAPI Reference
  • API Reference
    • Overview
        • Nemo Curator
          • Backends
          • Config
          • Core
          • Metrics
          • Models
          • Package Info
          • Pipeline
          • Stages
            • Audio
            • Base
            • Client Partitioning
            • Deduplication
            • File Partitioning
            • Function Decorators
            • Image
            • Interleaved
            • Math
            • Resources
            • Synthetic
            • Text
              • Classifiers
              • Deduplication
              • Download
              • Embedders
              • Experimental
                • Translation
                  • Backends
                  • Evaluation
                  • Pipeline
                  • Stages
                  • Utils
                    • Async Utils
                    • Field Paths
                    • Metadata
                    • Prompt Loader
              • Filters
              • Io
              • Models
              • Modifiers
              • Modules
              • Utils
            • Video
          • Tasks
          • Utils
    • Pipeline
    • ProcessingStage
    • CompositeStage
    • Resources
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogoNeMo Curator
On this page
  • Module Contents
  • Functions
  • Data
  • API
  • Parameters
  • Returns
  • Raises
API ReferenceFull Library ReferenceNemo CuratorNemo CuratorStagesTextExperimentalTranslationUtils

nemo_curator.stages.text.experimental.translation.utils.prompt_loader

||View as Markdown|
Previous

nemo_curator.stages.text.experimental.translation.utils.metadata

Next

nemo_curator.stages.text.filters

Shared prompt-loading helpers for translation stages.

Module Contents

Functions

NameDescription
load_prompt_templateLoad a YAML prompt file and return (system_prompt, user_template).

Data

_PROMPT_DIR

API

nemo_curator.stages.text.experimental.translation.utils.prompt_loader.load_prompt_template(
filename: str
) -> tuple[str, str]

Load a YAML prompt file and return (system_prompt, user_template).

Parameters

filename : str Name of the YAML file inside the prompts/ directory (e.g. "translate.yaml" or "faith_eval.yaml").

Returns

tuple[str, str] (system prompt, user template).

Raises

FileNotFoundError If the prompt file does not exist. ValueError If the YAML is malformed or does not contain a top-level mapping. KeyError If the top-level mapping is missing the system or user key.

nemo_curator.stages.text.experimental.translation.utils.prompt_loader._PROMPT_DIR = Path(__file__).resolve().parent.parent / 'prompts'