def for_rating(
        cls: "Settings",
        field_type: Optional[Literal["text", "image"]] = "text",
    ) -> "Settings":
        """Default settings for response rating task. Response rating template consists of an instruction field, a response field, and a rating 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, RatingQuestion

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

        settings = Settings(
            guidelines="Rate the response.",
            fields=fields,
            questions=[RatingQuestion(name="rating", values=[1, 2, 3, 4, 5])],
            mapping={
                "input": "instruction",
                "prompt": "instruction",
                "output": "response",
                "score": "rating",
            },
        )
        return settings
Default settings for response rating task. Response rating template consists of an instruction field, a response field, and a rating 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