Review
I would recommend Ollama, it lets you run a local LLM, which can rewrite the questions. I would test carefully, and review anything generated, as models can hallucinate.
modelfile='''
FROM llama2
SYSTEM Rewrite any exam questions provided to ask the same thing with the same information, but in a slightly different format to thwart cheating.
'''
ollama.create(model='questionrewriter', modelfile=modelfile)
res = ollama.generate(model='llama2', prompt='''A 27-year-old woman comes to the office for counseling prior to conception. She states that a friend recently delivered a newborn with a neural tube defect and she wants to decrease her risk for having a child with this condition. She has no history of major medical illness and takes no medications. Physical examination shows no abnormalities. It is most appropriate to recommend that this patient begin supplementation with a vitamin that is a cofactor in which of the following processes?
(A) Biosynthesis of nucleotides
(B) Protein gamma glutamate carboxylation
(C) Scavenging of free radicals
(D) Transketolation
(E) Triglyceride lipolysis''')
print(res)
0 views0
Comments