I was looking through LLM generated code in
https://github.com/uw-ssec/rse-plugins/pull/34/files#diff-57dec4526a0ac7d2c86735ac97e7915b5049375ac781f13ca313d0cea679d97aR280
And noticed a hallucination:
pn.param.ParamMethod.from_param
Seems like there's multiple instances of this hallucinated method
It should be pn.Param, e.g.
pn.Param(dashboard.param)]
Since these code snippets are essentially MRVE, I think these hallucinations can be addressed by giving the LLM a sandbox code server where it can test these small snippets. For ones involving UI, I think giving it a browser can help as well.
I was looking through LLM generated code in
https://github.com/uw-ssec/rse-plugins/pull/34/files#diff-57dec4526a0ac7d2c86735ac97e7915b5049375ac781f13ca313d0cea679d97aR280
And noticed a hallucination:
pn.param.ParamMethod.from_paramSeems like there's multiple instances of this hallucinated method
It should be
pn.Param, e.g.Since these code snippets are essentially MRVE, I think these hallucinations can be addressed by giving the LLM a sandbox code server where it can test these small snippets. For ones involving UI, I think giving it a browser can help as well.