Looks like yes it's allergies
But to ampicillin, it's difficult to comment because the allergic reaction happens when first tablet or capsule is ingested
Next Steps
take same antiallergic tablet which helped you earlier but look for other causes of allergies like foods and cosmetics
Health Tips
this reaction may take a week or so and you will be patient
don't go out in the sun and avoid heat
eat cooling foods.