Skip to content
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

Workspace files should include full path in prompt #329

Closed
Miyou opened this issue Dec 12, 2024 · 3 comments
Closed

Workspace files should include full path in prompt #329

Miyou opened this issue Dec 12, 2024 · 3 comments

Comments

@Miyou
Copy link

Miyou commented Dec 12, 2024

Currently get_workspace_prompt gives the files from gptme.toml with the prefix ```{filename}. It would perhaps be better if it gave the path rather than just the filename, so the LLM is more aware of which file the contents are from. Especially considering files can often have the same name e.g. README.md.

@ErikBjare
Copy link
Owner

Fixed in #330

@Miyou
Copy link
Author

Miyou commented Dec 13, 2024

Fixed in #330

Nice. Just noticed a similar issue that I'm not sure how much of an issue it is. In some of my included markdown files there is code examples using triple backtick, but since the files included in the prompt use triple backtick it becomes unclear when the file ends and when the code example from within the file begins. Perhaps using something other than triple backtick for the files would be better.

@ErikBjare
Copy link
Owner

ErikBjare commented Dec 13, 2024

@Miyou Yeah I use XML-formatting in gptme-rag output for this reason:

<file path="...">
(content)
</file>

Might be worth doing for the context message and such too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants