def for_ranking(
        cls: "Settings",
        field_type: Optional[Literal["text", "image"]] = "text",
    ) -> "Settings":
        """Default settings for response ranking task. Response ranking template consists of an instruction field, two response fields, and a ranking question.

        Parameters:
        guidelines (str): Guidelines for the task.
        fields (List[Field]): List of fields.
        questions (List[QuestionType]): List of questions.
        use_chat (bool): If True, the field will be replaced with a chat field.

        """
        from argilla import Settings, RankingQuestion

        fields = [
            _get_field_by_type(field_type)(name="instruction"),
            _get_field_by_type(field_type)(name="response1"),
            _get_field_by_type(field_type)(name="response2"),
        ]

        settings = Settings(
            guidelines="Rank the responses.",
            fields=fields,
            questions=[RankingQuestion(name="ranking", values=["response1", "response2"])],
            mapping={
                "input": "instruction",
                "prompt": "instruction",
                "chosen": "response1",
                "rejected": "response2",
            },
        )

        return settings
Default settings for response ranking task. Response ranking template consists of an instruction field, two response fields, and a ranking question.

        Parameters:
        guidelines (str): Guidelines for the task.
        fields (List[Field]): List of fields.
        questions (List[QuestionType]): List of questions.
        use_chat (bool): If True, the field will be replaced with a chat field.

        
argilla/src/argilla/settings/_templates.py