QuantumChecker 0.3.8__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/PKG-INFO +1 -1
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumCheck/prompts.py +15 -8
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumChecker.egg-info/PKG-INFO +1 -1
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumChecker.egg-info/SOURCES.txt +1 -0
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/setup.py +1 -1
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/tests/test.py +12 -5
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/tests/test2.py +3 -3
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumCheck/__init__.py +0 -0
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumCheck/main.py +0 -0
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumCheck/powerbi_evaluator.py +0 -0
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumCheck/python_evaluator.py +0 -0
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumCheck/sql_evaluator.py +0 -0
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumCheck/ssis_evaluator.py +0 -0
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumChecker.egg-info/dependency_links.txt +0 -0
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumChecker.egg-info/requires.txt +0 -0
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/QuantumChecker.egg-info/top_level.txt +0 -0
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/README.md +0 -0
- {quantumchecker-0.3.8 → quantumchecker-0.4.0}/setup.cfg +0 -0
|
@@ -84,35 +84,42 @@ def prompt_text_sql(combined_content: str):
|
|
|
84
84
|
|
|
85
85
|
def prompt_text_ssis(combined_content: str) -> str:
|
|
86
86
|
return (
|
|
87
|
+
|
|
87
88
|
"You are an SSIS data engineer evaluating a beginner-level SSIS package submission (1–2 months experience).\n\n"
|
|
88
89
|
"Evaluation Criteria:\n"
|
|
89
90
|
"- Assess correct and relevant use of SSIS components: Connection Managers, Control Flow tasks (e.g., Execute SQL Task), Data Flow tasks (e.g., Flat File Source to OLE DB Destination).\n"
|
|
91
|
+
"- Check if the submission attempts to solve the task using SSIS packages (.dtsx) and related concepts.\n"
|
|
90
92
|
"- Confirm proper linking of components and appropriate use of data types.\n"
|
|
91
93
|
"- Consider clarity, effort, and completeness.\n"
|
|
92
94
|
"- If scheduling (e.g., SQL Server Agent Job) is missing, note it but deduct no more than 5 points.\n\n"
|
|
95
|
+
"**STRICT RULE ON OFF-TOPIC SUBMISSIONS:**\n"
|
|
96
|
+
"- If the submission is off-topic (e.g., Python scripts, SQL queries, Power BI reports, or anything NOT an SSIS package or SSIS-related), assign exactly 20/100 points.\n"
|
|
97
|
+
"- Do NOT give any additional points or feedback related to SSIS components.\n"
|
|
98
|
+
"- Clearly state in feedback that the submission does not address the SSIS package requirement and advise focusing on SSIS for this task.\n\n"
|
|
93
99
|
"Scoring Guidelines:\n"
|
|
94
100
|
"- Begin with a baseline of 60/100 for any reasonable SSIS attempt.\n"
|
|
95
101
|
"- Add 5–10 points for extra effort or partial correctness.\n"
|
|
96
102
|
"- Never exceed 100 points.\n"
|
|
97
|
-
"- Always reward genuine effort.\n\n"
|
|
98
|
-
"Feedback Format
|
|
103
|
+
"- Always reward genuine effort unless off-topic.\n\n"
|
|
104
|
+
"Feedback Format:\n"
|
|
99
105
|
"=== COMPREHENSIVE EVALUATION ===\n"
|
|
100
106
|
"OVERALL SCORE: <score>/100\n\n"
|
|
101
107
|
"FEEDBACK SUMMARY:\n"
|
|
102
|
-
"- What was done well
|
|
103
|
-
"- What needs improvement
|
|
104
|
-
"- Major issues (
|
|
108
|
+
"- What was done well\n"
|
|
109
|
+
"- What needs improvement\n"
|
|
110
|
+
"- Major issues (including off-topic comments if applicable)\n\n"
|
|
105
111
|
"KEY ADVICE:\n"
|
|
106
|
-
"- 1–2 improvement tips
|
|
112
|
+
"- 1–2 improvement tips\n"
|
|
107
113
|
"- Core SSIS concepts to review\n"
|
|
108
114
|
"- Encouragement to keep practicing\n\n"
|
|
109
115
|
f"{combined_content}\n"
|
|
110
116
|
"=== EVALUATION COMPLETE ===\n\n"
|
|
111
117
|
"Notes:\n"
|
|
112
|
-
"- Be
|
|
118
|
+
"- Be kind, clear, and beginner-friendly.\n"
|
|
119
|
+
"- If off-topic, strictly enforce 20/100 score with no exceptions.\n"
|
|
120
|
+
"- Remind student clearly to read the question carefully and focus on SSIS.\n"
|
|
113
121
|
)
|
|
114
122
|
|
|
115
|
-
|
|
116
123
|
def prompt_text_powerbi(combined_content: str):
|
|
117
124
|
return (
|
|
118
125
|
"You are a BI professional evaluating a beginner student's Power BI submission, including DAX, data models, and visuals.\n\n"
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="QuantumChecker",
|
|
5
|
-
version="0.
|
|
5
|
+
version="0.4.0",
|
|
6
6
|
author="Qobiljon",
|
|
7
7
|
author_email="qobiljonkhayrullayev@gmail.com",
|
|
8
8
|
description="A package to evaluate homework submissions in Python, SQL, PowerBI, and SSIS.",
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import asyncio
|
|
2
|
+
import os
|
|
3
|
+
import psutil
|
|
2
4
|
from pprint import pprint
|
|
3
5
|
from QuantumCheck import HomeworkEvaluator
|
|
4
6
|
|
|
@@ -6,31 +8,36 @@ API_KEY = "AIzaSyDw76DEINpfBVgwIEZLShhy97tvWg7BmzY"
|
|
|
6
8
|
|
|
7
9
|
question_sets = {
|
|
8
10
|
"python": "Write a Python function to calculate factorial.\nWrite a Python script to reverse a string.",
|
|
9
|
-
"powerbi": "Create a Power BI report
|
|
11
|
+
"powerbi": "Create a Power BI report with a bar chart.\nExplain DAX measures for sales analysis.",
|
|
10
12
|
"sql": "Write a SQL query to join two tables.\nWrite a SQL query for aggregate functions.",
|
|
11
13
|
"ssis": "Design an SSIS package for data import.\nExplain SSIS control flow tasks."
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
answer_paths = {
|
|
15
|
-
"python": ["../tests/
|
|
16
|
-
"powerbi": ["../tests/
|
|
17
|
-
"sql": ["../tests/
|
|
18
|
-
"ssis": ["../tests/
|
|
17
|
+
"python": ["../tests/answer/python1.zip"],
|
|
18
|
+
"powerbi": ["../tests/answer/homework2_last.pdf"],
|
|
19
|
+
"sql": ["../tests/answer/sql3.zip"],
|
|
20
|
+
"ssis": ["../tests/answer/answer.dtsx"]
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
async def main():
|
|
22
24
|
evaluator = HomeworkEvaluator()
|
|
25
|
+
process = psutil.Process(os.getpid())
|
|
23
26
|
|
|
24
27
|
for qtype, question in question_sets.items():
|
|
25
28
|
for ans in answer_paths[qtype]:
|
|
29
|
+
mem_before = process.memory_info().rss
|
|
26
30
|
evaluation = await evaluator.evaluate_from_content(
|
|
27
31
|
question_content=question,
|
|
28
32
|
answer_path=ans,
|
|
29
33
|
api_key=API_KEY,
|
|
30
34
|
question_type=qtype
|
|
31
35
|
)
|
|
36
|
+
mem_after = process.memory_info().rss
|
|
37
|
+
delta_mb = (mem_after - mem_before) / 1024**2
|
|
32
38
|
|
|
33
39
|
print(f"{qtype} | {ans}")
|
|
40
|
+
print(f"📈 Memory used for evaluation: {delta_mb:.2f} MB")
|
|
34
41
|
print(f"✅ Evaluation result: {pprint(evaluation)}")
|
|
35
42
|
print("-" * 40)
|
|
36
43
|
|
|
@@ -4,8 +4,8 @@ from QuantumCheck import HomeworkEvaluator
|
|
|
4
4
|
|
|
5
5
|
API_KEY = "AIzaSyDw76DEINpfBVgwIEZLShhy97tvWg7BmzY"
|
|
6
6
|
|
|
7
|
-
question = "Create
|
|
8
|
-
answer_path = "../tests/
|
|
7
|
+
question = "Create a Power BI report with a bar chart.\nExplain DAX measures for sales analysis."
|
|
8
|
+
answer_path = "../tests/answer/test.pdf"
|
|
9
9
|
|
|
10
10
|
async def main():
|
|
11
11
|
evaluator = HomeworkEvaluator()
|
|
@@ -13,7 +13,7 @@ async def main():
|
|
|
13
13
|
question_content=question,
|
|
14
14
|
answer_path=answer_path,
|
|
15
15
|
api_key=API_KEY,
|
|
16
|
-
question_type="
|
|
16
|
+
question_type="powerbi"
|
|
17
17
|
)
|
|
18
18
|
|
|
19
19
|
print(f"PowerBI | {answer_path}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|