nemo_curator.stages.synthetic.qa_multilingual_synthetic
nemo_curator.stages.synthetic.qa_multilingual_synthetic
This module contains a simple stage for generating synthetic data. It takes in Empty task and a prompt and produces the output in form of a DocumentBatch.
Module Contents
Classes
API
Dataclass
Bases: ProcessingStage[_EmptyTask, DocumentBatch]
A simple stage for generating synthetic data. It takes in Empty task and a prompt and produces the output in form of a DocumentBatch.
client
generation_config
languages
model_name
name
num_samples
prompt
async
Generate responses asynchronously using concurrent requests.
Process samples using async client (concurrent).
This method handles both cases:
- Normal case: No event loop exists, creates one with asyncio.run()
- Edge case: Called from async context, runs in separate thread
Process a single response from the LLM.
Process samples using synchronous client (sequential).