Select the most relevant few-shot examples for a query using similarity or diverse MMR-like strategy.