(self, idx)
| 1022 | ### Response:\n""" |
| 1023 | |
| 1024 | def pre(self, idx): |
| 1025 | data_point = self.data[idx] |
| 1026 | prompt = self.generate_prompt(data_point) |
| 1027 | target_item = data_point['output'] + "\n" |
| 1028 | |
| 1029 | self.prompt2history[prompt] = data_point['input'] |
| 1030 | self.history2target[data_point['input']] = target_item |
| 1031 | |
| 1032 | return { |
| 1033 | "prompt": prompt, |
| 1034 | "completion": target_item, |
| 1035 | |
| 1036 | } |
| 1037 | |
| 1038 | |
| 1039 | class RLSidhis2TitleDataset(BaseDataset): |
nothing calls this directly
no test coverage detected