MCPcopy Create free account
hub / github.com/ZinYY/TreeLoRA / __getitem__

Method __getitem__

utils/data/data_utils.py:234–238  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

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
241def get_prompt_dataset(current_dataset, raw_dataset, add_sys_prefix=False, sample_ratio=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected