def __update_fields_from_docstring(cls, docstring):
        """
        Updates pydantic fields according to the docstring so that:

        1. you can document individual fields with ":var fieldname: description" in the model's docstring
        2. you can provide examples for individual fields with ":example fieldname: value" in the model's docstring
        3. docs about individual fields (like :var: and :example:) are removed from the root docs
        """
        docs = Docstring(docstring)
        for doc_field in docs.fields:
            if doc_field.field_target not in cls.__fields__:
                logging.warning(
                    f"The class {cls.__name__} has documentation for the `{doc_field.field_target}` field, but it doesn't exist"
                )
                continue

            f: ModelField = cls.__fields__[doc_field.field_target]
            if doc_field.field_type == "example":
                f.field_info.extra["example"] = cls.__parse_example(doc_field.field_value)
            if doc_field.field_type == "var":
                if f.field_info.description:
                    logging.warning(
                        f"Overriding existing field description '{f.field_info.description}' with '{doc_field.field_value}'"
                    )
                f.field_info.description = doc_field.field_value
        cls.__doc__ = docs.description

        Updates pydantic fields according to the docstring so that:

        1. you can document individual fields with ":var fieldname: description" in the model's docstring
        2. you can provide examples for individual fields with ":example fieldname: value" in the model's docstring
        3. docs about individual fields (like :var: and :example:) are removed from the root docs
        
src/robusta/utils/documented_pydantic.py