-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Read R help pages not working as described #242
Comments
For the record, i have the dv.loader package installed:
|
You are totally right. I guess we forgot to mention that this is implemented only for OpenAI at the moment. This happened because it was the first one to support a "name" and not just a "role" in each message. I'll rename the issue to have a more clear action path. However, I believe the migration to |
makes sense, thanks! I switched to our openai-compatible API, and I was able to get it to work, but had some issues with hallucination. This is a good use case, because there's no way these models were trained on this package as it was only recently open-sourced: However, the Not sure how we can get the LLM to more strictly abide by the R documentation for its reply. I tried changing the custom prompt, but that didn't help. Any suggestions? |
I think i found the issue:
It looks like the read_docs function is broken. I looked into a bit further, and the Rd2HTML function isn't parsing the Rd file completely. I can open a pull request to fix this. |
Thanks @stevegbrooks . I believe the malfunction in the parsing process is a separate issue. Could you open a new ticket with your reprex? In this case, knowing the R version should be useful. Any PR with a fix should link to the new issue |
Ok sure - will do. |
We still need to extend this feature to other services! |
oh my bad - sorry. I'll open a new issue though for this new bug. thanks |
Confirm setup
{gptstudio}
(pak::pak("MichelNivard/gptstudio")
) and tested if the problem remains.{reprex}
and{sessioninfo}
packages to be able to run this issue's code snippetpak::pak(c("reprex", "sessioninfo"))
.What happened?
I was trying to use the "Read R help pages" feature in
gptstudio::gptstudio_chat()
, and when I typed into the prompt "tell me about dplyr::join_by()", it did not append the message "R documentation:dplyr::join_by
" to the chat history as described in #210.Then, when I tried out a package that the LLM certainly was not trained on, e.g., "Tell me about dv.loader::load_data", it failed to retrieve the help pages. So something about this feature isn't working in the dev version.
Relevant log output
Session info
Code of Conduct
The text was updated successfully, but these errors were encountered: