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

Providing reference files in a prompt template? #330

Open
gpinkham opened this issue Sep 26, 2024 · 3 comments
Open

Providing reference files in a prompt template? #330

gpinkham opened this issue Sep 26, 2024 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@gpinkham
Copy link

ok maybe I'm thinking of this wrong. But I have not been able to get the "add-tests" to give me a Rails Rspec to my liking. its pretty vanilla and I'd like it to be closer to what all of our other Rspecs are like (using the customer helper for login etc etc). So I was thinking that perhaps I could provide a "link" to a reference file in the Prompt? I would think that was what the embeddings is for; to give it reference but it doesn't seem to impact how it generates a set of tests.

@rjmacarthy
Copy link
Collaborator

Thanks for the issue report. You're right actually we don't have any way to provide context to the default prompts at the moment and is something that should be added. How do you envisage it working?

@rjmacarthy rjmacarthy added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Oct 3, 2024
@gpinkham
Copy link
Author

gpinkham commented Oct 3, 2024

Honestly I'm not sure. I had originally thought it might be something like a reference to a file and the template engine just includes the text of the file into the prompt. But I guess I could just as easily copy it into the prompt myself. hmm let me think about it and try a few things. I did just notice that in the templates folder there is a "relevant-files" template. but not sure how that one is supposed to work.

@rjmacarthy
Copy link
Collaborator

The relevant files template works when using the @ workspace command in the chat for embeddings. For right click menu there is no way to use embeddings right now. Because embeddings are slower and often give crappy answers it's only used when the user specifically chooses to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants