(self, idx)
| 232 | return len(self.prompt_dataset) |
| 233 | |
| 234 | def __getitem__(self, idx): |
| 235 | return { |
| 236 | "prompt": self.prompt_dataset[idx], |
| 237 | "answer": self.answer_dataset[idx] |
| 238 | } |
| 239 | |
| 240 | |
| 241 | def get_prompt_dataset(current_dataset, raw_dataset, add_sys_prefix=False, sample_ratio=None): |
nothing calls this directly
no outgoing calls
no test coverage detected