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 option to save current auto-captioning prompt to prompt.txt #306

Open
clayne opened this issue Nov 28, 2024 · 0 comments

Comments

@clayne
Copy link

clayne commented Nov 28, 2024

I switch directories around quite a bit but use different prompts for different subject matter. It would be beneficial to save (and possibly restore) the current prompt used with the LLM to prompt.txt in <currently loaded directory>.

@maedtb
Copy link
Contributor

maedtb commented Dec 12, 2024

I understand the desire to be able to easily caption different content with different prompts/models, but I think this feature request is more complicated than it appears at first glance. Can you clarify a few expected behaviors for this idea?

Given the following example directory structure:

  • A/:
    • B/:
      • C/:
        • (empty)
      • prompt.txt
    • D/:
      • (empty)
    • E/:
      • prompt.txt

Scenario 1 / Parents with prompt.txt:

If you navigate to A/B/C, there is no prompt.txt file. In this case, does it use the prompt.txt from the parent-directory A/B, or does it just use your last-used prompt settings?

Scenario 2 / Children with prompt.txt:

If you navigate to A, there is no prompt.txt. In this case, does it use one or more prompt.txt files found in sub-directories when captioning those images, or do we just use our existing prompt settings? Using multiple models/prompt settings is complicated, so I am hopeful that the answer is we use our existing prompt settings. :)

Scenario 3 / No directory selected:

If you modify your prompt without having navigated to any directory, is your prompt saved to the global settings like the current behavior, or is it stored somewhere else?

Scenario 4 / Existing prompt settings when navigating new directory:

If you have a prompt set and you navigate to a new folder (e.x. A/B), does your current prompt override the folder's existing A/B/prompt.txt and save over it, or are your current settings lost in favor of the existing prompt.txt in the new folder? If it is discarded, how do you restore it to what you had set before you navigated to A/B?

Alternate Idea:

Have you considered the idea of having saved prompt setting groups, rather than associating prompts with a specific directory? For example, you could have a Anime Tag prompt setting group and a Photo Caption prompt setting group that each have their own selected model and prompt settings. You would be able to load a different group via a Combo Box, and then you could Save your current settings to an existing name, or a new name to create a new template. I think this sort of functionality maintains the goal of being able to easily caption/tag different content with different settings, but without directly tying settings to specific folders and all the possible complications/open-questions that come with that.

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