IPv6 received prefix limit

Hi.
How can I reduce the number of prefixes received from a peer from e.g. 10k to 1k, save only working prefixes.
Maybe someone has an example of bgp filters that work like this?
Thanks.

Is this a full table or IX peering? When you say “working” routes, what do you mean exactly?