-
Notifications
You must be signed in to change notification settings - Fork 10
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
ai-revision does nothing when specifying a file #17
Comments
Is the linked repository private? I get a 404 error. @miltondp or I may be able to take a look at the log to see what is happening. |
Hi @SilasK, thank you for your interest. The tool uses section-specific prompts to revise the text, and it will try to infer the section from the file names. If this fails, which seems to be your case, you need to indicate which section each file belongs to. I've added this documentation in this PR, and it would be great if you could go through it and let us know if it is clear and help you solve the problem. |
Thank you for your reply. Sorry, yes it's private. Nothing special in the log:
|
Ok, I will add the file mapping. My manuscript is actualy more a grant proposal. than an article. Is there a simple way to modify the query context sent to the AI model? |
Yes, you can use whatever you want as the section name. In that case, it will default to a general prompt, as you can see here. Keep in mind also that that general prompt mentions "... of an academic paper...", which might or might not affect the text revision of a grant proposal. Regarding custom prompts, I agree that it will be better in your case, and we will be working on that soon. However, there is a work-in-progress feature that you can use: add this environment variable in the
Again, if you give it a try, please give us feedback on whether it worked as expected or not. |
I made it work for both the file specification and the custom prompt. |
Thanks for the feedback! You can't use a custom prompt per file if that's what you mean. But sounds like a good use case. We'll be working on these use cases soon, so if you can provide a more detailed specification of what you would like to have, that would be really helpful. |
I'm closing this as completed, but feel free to reopen if needed. |
I run the ai-revision.
Without specifying any file it only updates the introduction.
If I specify a file it does aparently nothing and the pull request fails
https://github.com/SilasK/Research_Proposal/actions/runs/5134823028/jobs/9239373226
The text was updated successfully, but these errors were encountered: