Repository metrics
- Stars
- (997 stars)
- PR merge metrics
- (Avg merge 2d 7h) (15 merged PRs in 30d)
Description
Alumnium can be taught how to perform actions when they cannot be figured automatically - https://alumnium.ai/docs/guides/actions/#teach-with-examples. These examples serve as a few-shot prompting alternative and we use it extensively in our test suite, for example https://github.com/alumnium-hq/alumnium/blob/af2ef0ea481c154678b648a60c0d3959044a4259/examples/pytest/swag_labs_test.py#L8-L10
We need to rethink this API so it can also be used for al.check() and al.get() commands. The idea is similar, where we teach Alumnium how to understand instructions better and they simply form a few-shot prompt. Some examples:
# Examples for `al.do`
al.examples.do.add("mark the 'this is Al' task as completed", ["click checkbox near the 'this is Al' task"])
# Examples for `al.get`
al.examples.get.add("titles of pending tasks", "titles of all tasks with an unchecked checkbox near the title task")
al.examples.get.add("titles of complete tasks", "titles of all tasks with a checked checkbox near the title task")
# Examples for `al.check`
al.examples.check.add("task 'this is Al' is complete", "checkbox near the 'this is Al' task is checked")
al.examples.check.add("task 'this is Al' is pending", "checkbox near the 'this is Al' task is unchecked")
Similart is needed for area and find methods.