Similar Items: Nearly Optimal Attention Coresets