Cognition · Software component

Similarity Exemplar Selector

Software componentCognitionCognition & Memoryarc:SimilarityExemplarSelector

An exemplar selector that retrieves, for each input, the demonstrations most similar to it from the demonstration pool.

Responsibility. Selects per-query demonstrations by similarity to the test input.

Also known as: Similarity-based demonstration retrieval

Variant of Exemplar Selector abstract

When to choose. Choose when accuracy gains justify per-query retrieval cost; computational cost becomes high on large demonstration pools.

readsis target of alternativeTospecializeswritesis target of alternativeToPrompt Exemplar Set: readsPrompt Exemplar SetCluster-Diverse Exemplar Selector: is target of alternativeToCluster-Diverse Exemplar…Exemplar Selector: specializesExemplar SelectorAuto-CoT Prompt: writesAuto-CoT PromptCoreset Exemplar Pre-selector: is target of alternativeToCoreset Exemplar Pre-sel…
Direct neighbourhood (hover for relationship types)

Relationships

reads dependency

writes dependency

alternative to variability

Quantitative guidance

As stated by the sources; verify before use.

Classification

Patterns
kNN demonstration retrievalAuto-CoT exemplar matching
Quality attributes
Functional suitability: correctness and validity (ISO/IEC 25010 | NIST AI RMF: valid)

Sources

  1. Ch3.5: T. Nguyen, "Prompt Optimization, Few-Shot Learning, Fine-Tuning," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 3.5. ISBN: 9798244538229.
  2. Ch5.1: T. Nguyen, "Chain-of-Thought (CoT) Fundamentals," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 5.1. ISBN: 9798244538229.