About
The Ranking skill is a specialized utility for Retrieval-Augmented Generation (RAG) systems that sorts and filters documents based on pre-computed similarity metrics like cosine distance and similarity scores. It acts as a bridge between the initial retrieval phase and the final generation phase, allowing Claude to refine document relevance without performing additional database queries. By calculating similarity scores and applying thresholds, this skill ensures that only the most pertinent information is passed to the LLM, reducing noise, lowering token costs, and improving the overall accuracy of AI-generated responses.