Skip to content

feat: add labels query parameter to filter events by inference label#9

Open
albertodainotti wants to merge 1 commit intomainfrom
feature/add-labels-filter
Open

feat: add labels query parameter to filter events by inference label#9
albertodainotti wants to merge 1 commit intomainfrom
feature/add-labels-filter

Conversation

@albertodainotti
Copy link
Collaborator

Summary

Adds a new labels query parameter to the event search endpoint, allowing users to filter events by their primary inference label.

Changes

  • app/elastic.py: Added parsing of the labels query parameter and integration into the Elasticsearch query via add_match_params, targeting the summary.inference_result.primary_inference.labels field.

This follows the same pattern used by the existing codes (inference_id) filter, supporting both inclusion and exclusion via the add_match_params helper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants