Metis — Preview Focus Lens
preview_focus_lensTest keyword-group lenses before creating a focus by comparing per-group and combined match counts, samples, and a verdict to identify which group causes zero results.
Instructions
Try a lens before creating a focus — how much does it catch, and where does it fail?
Lens tuning was otherwise blind: the only way to learn a lens returned nothing
was to build the focus, open it and find it empty. Worse, a conjunction that
returns zero says nothing about WHICH group is at fault.
So this reports each group's matches ALONE as well as combined. If group 1
matches 400 and group 2 matches 3 and together they match 0, group 2 is the
problem and no judgement is required to see it.
Args:
keyword_groups: JSON list of lists — OR within a group, AND across groups.
e.g. '[["dhis2","hmis"],["surveillance","district"]]'
Returns:
Per-group and combined counts, sample matches, and a plain verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyword_groups | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |