Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a skill of sorting and filtering tables #647

Closed
wants to merge 11 commits into from
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created_by: IBM
seed_examples:
- answer: '```

Check failure on line 3 in compositional_skills/general/tables/editing/combining_altering/qna.yaml

View workflow job for this annotation

GitHub Actions / lint

.seed_examples " | burn | xyz | g.burn.xyz |\n| h | talbot | abc | h.talbot.abc |\n| i | washington | abc | i.washington.abc |\n```\n\n'}] is too short"

| First Initial | Last Name | Company | Email |

Expand Down Expand Up @@ -30,7 +30,7 @@
'
question: 'Can you add an email colum to the end of the table. Then populate it
combining the "First Initial" with the "Last Name" and then making the email their
@"company".com
@"Company".com


```
Expand Down
190 changes: 190 additions & 0 deletions compositional_skills/general/tables/editing/filter/qna.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
created_by: leeyamin
seed_examples:
- answer: '```

Check failure on line 3 in compositional_skills/general/tables/editing/filter/qna.yaml

View workflow job for this annotation

GitHub Actions / lint

.seed_examples " | burn | xyz | 07/12/1982 |\n| h | talbot | abc | 08/07/1990 |\n| i | washington | abc | 09/04/1989 |\n```\n\n'}] is too short"

| First Initial | Last Name | Company |

| ------------- | ---------- | ------- |

| a | smith | xyz |

| b | jones | xyz |

| d | hicks | xyz |

| g | burn | xyz |

```


'
question: 'Can you please filter the following table by "Company" of xyz?


```

| First Initial | Last Name | Company |

| ------------- | ---------- | ------- |

| a | smith | xyz |

| b | jones | xyz |

| c | george | abc |

| d | hicks | xyz |

| e | long | abc |

| f | parker | abc |

| g | burn | xyz |

| h | talbot | abc |

| i | washington | abc |

```


'
- answer: '

```

| First Initial | Last Name | Company |

| ------------- | ---------- | ------- |

```


'
question: 'Can you please filter the following table by "Company" of mnp?

```

| First Initial | Last Name | Company |

| ------------- | ---------- | ------- |

| a | smith | xyz |

| b | jones | xyz |

| c | george | abc |

| d | hicks | xyz |

| e | long | abc |

| f | parker | abc |

| g | burn | xyz |

| h | talbot | abc |

| i | washington | abc |

```
'
- answer: '

```

| First Initial | Last Name | Company | Birthday |

| ------------- | ---------- | ------- | ---------------- |

| d | hicks | xyz | 04/04/1990 |

| f | parker | abc | 06/04/1986 |

| i | washington | abc | 09/04/1989 |

```


'
question: 'Can you please filter the following table by "Birthday" to months of 4?


```

| First Initial | Last Name | Company | Birthday |

| ------------- | ---------- | ------- | ---------------- |

| a | smith | xyz | 01/01/1980 |

| b | jones | xyz | 02/08/1980 |

| c | george | abc | 03/02/1981 |

| d | hicks | xyz | 04/04/1990 |

| e | long | abc | 05/09/1985 |

| f | parker | abc | 06/04/1986 |

| g | burn | xyz | 07/12/1982 |

| h | talbot | abc | 08/07/1990 |

| i | washington | abc | 09/04/1989 |

```
'
- answer: '

```

| First Initial | Last Name | Company | Birthday |

| ------------- | ---------- | ------- | ---------------- |

| d | hicks | xyz | 04/04/1990 |

| f | parker | abc | 06/04/1986 |

| i | washington | abc | 09/04/1989 |

```


'
question: 'Can you please filter the following table by "Birthday" in April?


```

| First Initial | Last Name | Company | Birthday |

| ------------- | ---------- | ------- | ---------------- |

| a | smith | xyz | 01/01/1980 |

| b | jones | xyz | 02/08/1980 |

| c | george | abc | 03/02/1981 |

| d | hicks | xyz | 04/04/1990 |

| e | long | abc | 05/09/1985 |

| f | parker | abc | 06/04/1986 |

| g | burn | xyz | 07/12/1982 |

| h | talbot | abc | 08/07/1990 |

| i | washington | abc | 09/04/1989 |

```


'
task_description: 'To teach a language model about filtering tables by data

'
Loading
Loading