Example selection methods are a set of strategies designed to improve the "Few-shot" process.
Few-Shot prompting is a method that enables in-context learning where demonstrations are provided in the prompt to steer the model to better performance.
The demonstrations serve as conditioning for subsequent examples where one would like the model to generate a response.
It is a challenging task especially in Text2SQL since it is not trivial to find similar questions to the proposed one.
For that reason, many methods were proposed.
Overall, the objective is to find examples close enough to the target question.
The implicit assumption in this method is relies on the fact that in-context learning from close examples improve positively the performance of the language model on the task.
The objective of example selection is to find
Here each example is represented by:
The objective is to find
This strategy randomly samples
It is denoted by
It is denoted by
It is denoted by
In
Dail Selection, denoted by