Draw `n` samples from our fewshot docs. This method should be overridden by subclasses.
(self, n)
| 64 | return labeled_examples |
| 65 | |
| 66 | def sample(self, n): |
| 67 | """ |
| 68 | Draw `n` samples from our fewshot docs. This method should be overridden by subclasses. |
| 69 | """ |
| 70 | |
| 71 | return self.rnd.sample(self.docs, n) |
| 72 | |
| 73 | |
| 74 | class FirstNSampler(ContextSampler): |