fabricatio_anki.models.topic_analysis

Module for representing and analyzing a specific topic or question.

This module defines the TopicAnalysis class, which encapsulates an in-depth analysis of a particular topic or question. It includes attributes such as difficulty coefficient, relevant subjects, detailed solutions, key points, and brief summaries. Additionally, it provides functionality to assemble the instance data into a formatted string using templates.

Classes

TopicAnalysis

A class that represents an in-depth analysis of a specific topic or question.

Module Contents

class fabricatio_anki.models.topic_analysis.TopicAnalysis(/, **data: Any)

Bases: fabricatio_core.models.generic.SketchedAble

A class that represents an in-depth analysis of a specific topic or question.

difficulty_coefficient: float = None

Difficulty coefficient (0.0-1.0) indicating the expected error rate of students on this question

subjects: list[str]

List of subject areas the question belongs to (e.g., [“Math”, “Geometry”])

detailed_solution: str

Complete solution process of the question, including all steps and logical reasoning

key_points: list[str]

List of key knowledge points for solving the question, highlighting critical steps and required knowledge

brief_summary: str

Concise summary of the question and solution, explaining the core idea in simple language

assemble() str

Assemble the instance into a single string.