Will filing bankruptcy protect me from harassment by debt collectors?

Yes.  Once a bankruptcy petition is filed, any and all actions by creditors to collect debts must cease.  This is called an “automatic stay”.  If this is your first bankruptcy filing, the stay remains in effect for as long as the case is pending before the bankruptcy court, unless a creditor obtains an order from the court relieving it of the obligations imposed by the stay.