ReasoningStep

class ReasoningStep(BaseModel):

A single step in a multi-hop reasoning process.

Attributes: step (str): The textual description of the reasoning step.

MultiHopQA

class MultiHopQA(BaseModel):

A multi-hop question-answer pair with reasoning steps and supporting facts.

Attributes: question (str): The question requiring multi-hop reasoning. reasoning_steps (List[ReasoningStep]): List of reasoning steps to answer. answer (str): The final answer to the question. supporting_facts (List[str]): List of facts supporting the reasoning. type (str): The type of question-answer pair.

ContextPrompt

class ContextPrompt(BaseModel):

A context prompt for generating multi-hop question-answer pairs.

Attributes: main_context (str): The primary context for generating QA pairs. related_contexts (Optional[List[str]]): Additional related contexts.