Skip to content

Commit 6f9ddad

Browse files
committed
Remove some extra verbosity from format
Signed-off-by: Mark McLoughlin <[email protected]>
1 parent dc58502 commit 6f9ddad

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

docs/sdg/sdg-flow-yaml.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,21 @@ The YAML file format will mirror the API and look like this:
2626

2727
```yaml
2828
version: 1.0
29-
block_configs:
30-
- block_type: LLMBlock
31-
block_config: # LLMBlock constructor kwargs
32-
block_name: gen_knowledge
29+
blocks:
30+
- name: gen_knowledge
31+
type: LLMBlock
32+
config: # LLMBlock constructor kwargs
3333
output_cols: ["question", "response"]
3434
gen_kwargs: # kwargs for block.generate()
3535
max_tokens": 2048,
3636
drop_duplicates: ["question"]
37-
- block_type: FilterByValueBlock
38-
block_config:
39-
block_name: filter_faithfulness
40-
filter_column": judgment
37+
- name: filter_faithfulness
38+
type: FilterByValueBlock
39+
config:
40+
filter_column: judgment
4141
filter_value: YES
42-
operation: operator.eq
43-
batch_kwargs:
44-
num_procs: 8
45-
drop_columns: ["judgment", "explanation"]
42+
operation: eq
43+
drop_columns: ["judgment", "explanation"]
4644
```
4745
4846
## Versioning

0 commit comments

Comments
 (0)