MCPcopy Create free account
hub / github.com/Tencent/digitalhuman / reflection_basicloser

Function reflection_basicloser

HATE/basic_hate/evaluation/posthoc.py:191–198  ·  view source on GitHub ↗
(data, model)

Source from the content-addressed store, hash-verified

189 return [res, judge_res]
190
191def reflection_basicloser(data, model):
192 sysprompt = BASIC_SYS2.format(id=ROLES[model])
193 prompt = BASIC_PROMPT2.format(process=str(data['decision_making_process']))
194 res = get_response(prompt=prompt,sysprompt=sysprompt)
195 print(res)
196 judge_res = get_response(prompt=JUDGE_BASIC2.format(reflection=res))
197 print(judge_res)
198 return [res, judge_res]
199
200# def reflection_judge(data, model):
201# sysprompt = JUDGE_SYS.format(id=ROLES[model])

Callers 1

reflectionFunction · 0.70

Calls 3

printFunction · 0.85
get_responseFunction · 0.70
formatMethod · 0.45

Tested by

no test coverage detected