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

Function reflection_basic

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

Source from the content-addressed store, hash-verified

180'''
181
182def reflection_basic(data, model):
183 sysprompt = BASIC_SYS.format(id=ROLES[model])
184 prompt = BASIC_PROMPT.format(process=str(data['decision_making_process']))
185 res = get_response(prompt=prompt,sysprompt=sysprompt, model=model)
186 print(res)
187 judge_res = get_response(prompt=JUDGE_BASIC.format(reflection=res))
188 print(judge_res)
189 return [res, judge_res]
190
191def reflection_basicloser(data, model):
192 sysprompt = BASIC_SYS2.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