peanutshawn
10/17/2024, 1:37 PMyaml
prompts:
- file://../prompt/prompt.py
config:
templateSingleFilter: single_filter_test.txt.j2
templateMultiFilter: multi_filter_test.txt.j2
when I run the eval, I'm getting a bad indentation of a sequence entry error. how are we suppose to format such configs? I tried this
yaml
prompts:
- id: file://../prompt/prompt.py
config:
templateSingleFilter: single_filter_test.txt.j2
templateMultiFilter: multi_filter_test.txt.j2
and got Error: Invariant failed: Invalid promptpeanutshawn
10/17/2024, 2:01 PMlabel solved these errors.peanutshawn
10/17/2024, 2:02 PMyaml
prompts:
- label: prompt
id: file://../prompt/prompt.py
config:
templateSingleFilter: single_filter_test.txt.j2
templateMultiFilter: multi_filter_test.txt.j2peanutshawn
10/17/2024, 2:03 PMpeanutshawn
10/17/2024, 2:03 PMpython
def run(context: dict) -> str:
template_single_filter = context['config']['templateSingleFilter']
template_multi_filter = context['config']['templateMultiFilter']peanutshawn
10/17/2024, 2:09 PMmichaelmichaelmichael
10/17/2024, 2:47 PMpeanutshawn
10/17/2024, 2:48 PM