Skip to content

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

@Jacquesjh

Description

@Jacquesjh

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

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions