distill::synthetic::SyntheticDataGenerator
Public Functions
|
Name |
|
init(self self, TeacherClient teacher_client, Optional project_root[Path] =None, bool use_cascade =True, str domain ="encyclopedic") |
| list |
generate_for_niche(self self, str niche_name, str system_prompt, list user_prompts, int num_samples =500, Optional keywords[list] =None) |
|
save_to_jsonl(self self, list samples, Path output_path) |
Protected Functions
|
Name |
| bool |
_passes_quality(self self, str text, Optional keywords[list] =None) |
Protected Attributes
Public Functions Documentation
function init
__init__(
self self,
TeacherClient teacher_client,
Optional project_root[Path] =None,
bool use_cascade =True,
str domain ="encyclopedic"
)
function generate_for_niche
list generate_for_niche(
self self,
str niche_name,
str system_prompt,
list user_prompts,
int num_samples =500,
Optional keywords[list] =None
)
function save_to_jsonl
save_to_jsonl(
self self,
list samples,
Path output_path
)
Protected Functions Documentation
function _passes_quality
bool _passes_quality(
self self,
str text,
Optional keywords[list] =None
)
Protected Attributes Documentation
variable _client
variable _use_cascade
variable _default_domain
variable _project_root
Updated on 2026-07-25 at 22:56:57 +0000