Modules
We have several pre-defined Modules and the corresponding configs
LLMFunctionModule
module_type='LLMFunctionModule',
config=dict(
type='LLMFunctionConfig',
function_name="generate_example_sentence",
function_description='${f"Propose an example sentence containing the given word in {language}"}',
function_parameters=[
dict(
name="example_sentence",
type="str",
description="The example_sentence containing the given word."
),
dict(
name="translated_example_sentence",
type="str",
description="The translated example_sentence containing the given word."
),
],
system_prompt='''${f"You are teaching {language} class for {native_language} students. To help them better know how to use these {language} words. You will make example sentences to demonstrate how to use it and then translate the sentence into {native_language} to help students understand the meanings of the sentence. Sentences should preferably be around 20 words."}''',
user_prompt='''${f"{added_words[word_idx]}. Remember, try you best to let student understand how to use the word through this sentence and then you will translate this sentence into {native_language}"}''',
),MSTTSFunctionModule
ShuffleFunctionModule
MSTTSPronounceAssessModule
ProdiaImagenModule
JsonRWFunctionModule
Last updated