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

[Feature Request] Add subfolder support for Dotprompt plugin #210

Closed
Jacquesjh opened this issue May 21, 2024 · 0 comments · Fixed by #234
Closed

[Feature Request] Add subfolder support for Dotprompt plugin #210

Jacquesjh opened this issue May 21, 2024 · 0 comments · Fixed by #234
Assignees
Labels
feature New feature or request

Comments

@Jacquesjh
Copy link

Jacquesjh commented May 21, 2024

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
Add support to structure subfolder inside the prompts folder and import the prompts using this strutucte.
For instance:
In this folder structure:

./
 prompts/
   classification/
      classifyCars.prompt

I want to be able to import the prompt as

  const myPrompt= await prompt("classification/classifyCars");

The closest thing right now is this structure:

./ 
 prompts/
    classification-classifyCars.prompt

and

const myPrompt= await prompt("classification-classifyCars");

But it ends up making hard to organize the prompts.
Additional context
I understand that there is a way to do this that revovles around loading a file from a specifc folder as described here:
https://firebase.google.com/docs/genkit/dotprompt#alternate_ways_to_load_and_define_prompts

But i think it could be better

@Jacquesjh Jacquesjh added the feature New feature or request label May 21, 2024
@Jacquesjh Jacquesjh changed the title Add subfolder support for Dotprompt plugin [Feature Request] Add subfolder support for Dotprompt plugin May 21, 2024
@tonybaroneee tonybaroneee self-assigned this May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants