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.
Classes
Interface for selecting examples to include in prompts. |
|
Select examples based on length. |
|
|
Select examples based on Max Marginal Relevance. |
|
Select examples based on semantic similarity. |
Functions
Return a list of values in dict sorted by key. |