Depending on how long ago the attack happened, you may still be able to file charges. As soon as you are in a safe location and have received necessary medical attention, document your injuries via photographs if they are visible. If you can safely do so, get contact information for anyone else who witnessed the attack—maybe your neighbor heard it happening, even if they did not see anything, or maybe there were passerby who saw what happened.
Even if there were no criminal charges filed against your assailant, you still may have a claim for personal injury. Regardless, it is vitally important to speak to a personal injury attorney as soon as possible after the attack so that valuable evidence may be gathered.