Update rich_content_extraction.rst

I added the needed imports so others don't have to Google around for them.

However, the "self.backend" doesn't seem to work in newer Haystacks. I ended up using "self._get_backend(None)" but that seems fairly improper. It would be great to fix that as well but I don't know what it should say.