bhardwaj08sarthak commited on
Commit
26a82d2
·
verified ·
1 Parent(s): 8a1f300

Update task_temp.py

Browse files
Files changed (1) hide show
  1. task_temp.py +7 -2
task_temp.py CHANGED
@@ -36,7 +36,7 @@ classify_and_score(
36
 
37
  Use the returned dict:
38
  - If ok == True: print ONLY compact JSON {{"question": "...", "answer": "...", "reasoning": "..."}} and finish.
39
- - If ok == False: briefly explain the needed shift, revise the question, and call classify_and_score again.
40
  Repeat up to {attempts} attempts.
41
  Use the "QuestionRetrieverTool" only once at the start.
42
  Keep answers concise.
@@ -74,8 +74,13 @@ Ensure that the question is clear, concise, and appropriate for the specified gr
74
  Keep answers concise.
75
  If you output JSON, ensure it is valid JSON (no trailing commas, use double quotes).
76
  '''
 
 
 
 
77
  __all__ = [
78
  "rag_temp",
79
  "rag_cls_temp",
80
  "cls_temp",
81
- "gen_temp"]
 
 
36
 
37
  Use the returned dict:
38
  - If ok == True: print ONLY compact JSON {{"question": "...", "answer": "...", "reasoning": "..."}} and finish.
39
+ - If ok == False: briefly explain the needed shift, revise the question based on the feedback from the results of classify_and_score from the previous question, and call classify_and_score again.
40
  Repeat up to {attempts} attempts.
41
  Use the "QuestionRetrieverTool" only once at the start.
42
  Keep answers concise.
 
74
  Keep answers concise.
75
  If you output JSON, ensure it is valid JSON (no trailing commas, use double quotes).
76
  '''
77
+
78
+ # ---------------------------
79
+ # Backwards-compatible aliases and public exports
80
+ # ---------------------------
81
  __all__ = [
82
  "rag_temp",
83
  "rag_cls_temp",
84
  "cls_temp",
85
+ "gen_temp"
86
+ ]