Similar Items: From brittle to robust: Improving LLM annotations for SE optimization