def generate_label(self, question, context) -> str:
        """
        Generates the label / answer to `question` using `context` and GPT-4.
        """
        question_messages = self.encode_question_gen(question, context)
        response = self.llm.chat(question_messages)
        return str(response)

        Generates the label / answer to `question` using `context` and GPT-4.
        
llama-index-packs/llama-index-packs-raft-dataset/llama_index/packs/raft_dataset/base.py