Example selectors.
Example selector implements logic for selecting examples to include them in prompts. This allows us to select examples that are most relevant to the input.
Interface for selecting examples to include in prompts.
Select examples based on length.
Select examples based on Max Marginal Relevance.
This was shown to improve performance in this paper: https://arxiv.org/pdf/2211.13892.pdf
Select examples based on semantic similarity.