TORONTO — Ask Meta Platforms Inc.'s head of artificial intelligence research how the technology could be made safer and she takes inspiration from an unlikely place: the grocery store.