Deduplicate Loki annotations

If I have these messages in Loki:

2023-09-19 00:32:49.779	a
2023-09-19 00:28:31.906	b
2023-09-19 00:27:06.289	a
2023-09-19 00:25:37.679	a
2023-09-19 00:24:05.404	a

and I use them as an annotation data source in Grafana:

image

Is there a way to filter out the two marked events because they are just duplicates of the first event?