HumanSignal / Adala

Adala: Autonomous DAta (Labeling) Agent framework
https://humansignal.github.io/Adala/
Apache License 2.0
953 stars 75 forks source link

feat: RND-109: Add EntityExtraction skill in Adala #168

Closed niklub closed 2 months ago

niklub commented 2 months ago

Make response_model parameter top-level for skill definition, to simplify development avoiding redundant params: intructions, output_template, field_schema.

Add EntityExtraction skill to extract the list of entities with specified labels

The skill supports 2 different modes:

with labels

EntityExtraction(input_template='….', labels=['Orgnanization', ‘Product’])

given the text document and instruction provided with input_template, returns the payload like:

[[{'quote_string': 'Apple Inc.',
'label': 'Organization'},
{'quote_string': 'American multinational technology company',
'label': 'Product'}], ... ]

without labels:

EntityExtraction(input_template='…')

the payload based on the input_template instruction is the following:

[[{'quote_string': 'Apple Inc.'},
{'quote_string': 'American multinational technology company'},
{'quote_string': 'consumer electronics'},
{'quote_string': 'computer software'}, ...]
robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/0016cc058e1e886c3c2368863974e58f88095126 is created.

codecov-commenter commented 2 months ago

Codecov Report

Attention: Patch coverage is 89.13043% with 5 lines in your changes missing coverage. Please review.

Project coverage is 59.30%. Comparing base (3b6d651) to head (54d64b8). Report is 6 commits behind head on master.

Files Patch % Lines
adala/skills/collection/entity_extraction.py 86.84% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #168 +/- ## ========================================== + Coverage 58.48% 59.30% +0.81% ========================================== Files 43 43 Lines 1874 1892 +18 ========================================== + Hits 1096 1122 +26 + Misses 778 770 -8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/aafcf96b4eac4c225d09a37bf6730439a20c09a8 is created.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/3853d73976f5ec4913b705e52a94f185a33c2b81 is created.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/8f1d8d13f9f3b58bd605c158d45e73c35e9b80ca is created.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/63c08c43245aca754a9a256f54ba5d17acf37a24 is created.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/729411ff7880e1cf6c1b4e514253f86d3206a95b is created.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/6edb6a0556a0d4e3ebd732e98b5dde1c97a73b7f is created.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/bdd664b01b7284ec4ff192c3a6fd3bd836e61793 is created.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/db283962d0e0bdf3fe35b0bed36554ef88d8eb0f is created.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/3757ebd90f4307a29c1cf9f1e31353c53a615f80 is created.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/e4952ea86715f632570afcc747c56566b8c21f27 is created.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/a6ef2c808c64ed7a96077f518573b4a6848d767b is created.

robot-ci-heartex commented 2 months ago

Commit https://github.com/HumanSignal/infra/commit/2b488468dc3bc9b22d7135897d2b9317749f918e is created.