Claude Relevance Ranking Prompt Before Classification
When matching a sentence against candidate article titles or categories, adding explicit step-by-step reasoning instructions with XML tags improves classification accuracy.
Given <sentence>{{TEXT}}</sentence> and <article_titles>{{LIST}}</article_titles>, follow these steps inside <thinking> tags:
1. List the key concepts from the sentence.
2. Compare each key concept with the article titles.
3. Rank the top 3 most relevant titles and explain why they are relevant.
4. Select the most appropriate article title and output it inside <answer> tags.Fill in the blanks (2)
Nobody has confirmed this prompt yet. If you try it, tell others whether it worked.
No comments yet.