We need to do the pollination ourselves. That's easily done with a cotton swab. Just take some of the pollen off of the anthers and deposit it on the stigma. Or, you can simply take two flowers that are close and rub them together. If you've purchased a large specimen from a greenhouse they will have treated it with a pesticide.
Greenhouses are difficult pest environments.
So, you'd probably want to wait a year before consuming fruit. If you've been growing the plant at your home for a while and you haven't used pesticides, go ahead and eat the fruit. If you're going to eat it, avoid pesticides at home. So, consider one of these plants for your indoor garden.