AQIT 0.1.0
Loading...
Searching...
No Matches
aquin.compute.dataset_generate Namespace Reference

Functions

str _slug (str topic)
list[dict[str, str]] generate_topic_rows (str topic, int count=5)
Path default_output_path (str topic, Path|None cwd=None)
Path write_dataset_jsonl (Path path, list[dict] rows)
dict run_dataset_generate (*, str topic, int count=5, Path|str|None cwd=None, str|None output=None)

Variables

int _MAX_ROWS = 64
list _TEMPLATES

Function Documentation

◆ _slug()

str _slug ( str topic)
protected

Definition at line 31 of file dataset_generate.py.

◆ default_output_path()

Path default_output_path ( str topic,
Path | None cwd = None )

Definition at line 52 of file dataset_generate.py.

Referenced by run_dataset_generate().

◆ generate_topic_rows()

list[dict[str, str]] generate_topic_rows ( str topic,
int count = 5 )

Definition at line 37 of file dataset_generate.py.

Referenced by run_dataset_generate().

◆ run_dataset_generate()

dict run_dataset_generate ( * ,
str topic,
int count = 5,
Path | str | None cwd = None,
str | None output = None )

◆ write_dataset_jsonl()

Path write_dataset_jsonl ( Path path,
list[dict] rows )

Definition at line 57 of file dataset_generate.py.

Referenced by run_dataset_generate().

Variable Documentation

◆ _MAX_ROWS

int aquin.compute.dataset_generate._MAX_ROWS = 64
protected

Definition at line 17 of file dataset_generate.py.

◆ _TEMPLATES

list aquin.compute.dataset_generate._TEMPLATES
protected
Initial value:
= [
("What is {topic}?", "{topic} is a subject area with core concepts, examples, and practical applications."),
("Explain {topic} in simple terms.", "In simple terms, {topic} can be understood as a set of related ideas and practices."),
("Give an example related to {topic}.", "A concrete example of {topic} helps illustrate how the concept shows up in practice."),
("Why is {topic} important?", "Understanding {topic} supports better decisions, communication, and further learning in the area."),
("Describe {topic} to a beginner.", "For a beginner, {topic} is a useful starting point before diving into more advanced material."),
("What are key facts about {topic}?", "Key facts about {topic} include definitions, common use cases, and how it connects to nearby topics."),
("How does {topic} work?", "How {topic} works depends on context, but it generally follows identifiable patterns and principles."),
("List three aspects of {topic}.", "Three aspects of {topic} are foundational ideas, typical examples, and common questions people ask about it."),
]

Definition at line 19 of file dataset_generate.py.