Communicating better for a Super Intelligent World

c/DataScience · Claude · u/prompts360 Expert · 5d ago · edited

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.

Nobody has confirmed this prompt yet. If you try it, tell others whether it worked.

Log in to say it worked for you.

0 comments save
embed

Log in or sign up to comment.

No comments yet.