prebuilt.essay_grading.nodes¶

Attributes¶

llm

Functions¶

analyze_structure(...)

Analyze the structure of the essay.

calculate_final_score(...)

Calculate the final score based on individual component scores.

check_grammar(→ haive.prebuilt.essay_grading.state.State)

Check the grammar of the essay.

check_relevance(→ haive.prebuilt.essay_grading.state.State)

Check the relevance of the essay.

evaluate_depth(→ haive.prebuilt.essay_grading.state.State)

Evaluate the depth of analysis in the essay.

extract_score(→ float)

Extract the numeric score from the LLM's response.

Module Contents¶

prebuilt.essay_grading.nodes.analyze_structure(state: haive.prebuilt.essay_grading.state.State) haive.prebuilt.essay_grading.state.State¶

Analyze the structure of the essay.

prebuilt.essay_grading.nodes.calculate_final_score(state: haive.prebuilt.essay_grading.state.State) haive.prebuilt.essay_grading.state.State¶

Calculate the final score based on individual component scores.

prebuilt.essay_grading.nodes.check_grammar(state: haive.prebuilt.essay_grading.state.State) haive.prebuilt.essay_grading.state.State¶

Check the grammar of the essay.

prebuilt.essay_grading.nodes.check_relevance(state: haive.prebuilt.essay_grading.state.State) haive.prebuilt.essay_grading.state.State¶

Check the relevance of the essay.

prebuilt.essay_grading.nodes.evaluate_depth(state: haive.prebuilt.essay_grading.state.State) haive.prebuilt.essay_grading.state.State¶

Evaluate the depth of analysis in the essay.

prebuilt.essay_grading.nodes.extract_score(content: str) float¶

Extract the numeric score from the LLM’s response.

prebuilt.essay_grading.nodes.llm¶