semantics-for-personal-health / heals-notebook

0 stars 0 forks source link

Enhance automation of 'constrained_entities' construction #5

Open stouffers opened 2 years ago

stouffers commented 2 years ago

The 'constrained_entities' API parameter consists of desired traits (array "1") and undesired traits (array "2") which are consolidated from several other places e.g. ingredient likes/dislikes, guidelines, and tagged entities from the text query.

Currently, likes/dislikes are automatically added.
With the newly parameterized guidelines, automatically adding guidelines should be possible.

If sufficient improvements are made to query entity resolution, it may also be possible to sort tagged entities as desirable/undesirable and add them.