card-web
card-web copied to clipboard
Allow downloading cards as an OpenAI fine-tuning prompt
https://beta.openai.com/docs/guides/fine-tuning
It should generate strings like
Generate a riff in the style of ${APP_TITLE} that contains the following words:
Usage Patterns More Value Subsidize Whale Underwater Business
#START#
General business goal: the more value the user gets, the more value extracted out to the provider of the business. If not, you have a pricing problem, or a problem where some users subsidize others, and you're very exposed to usage patterns--you're effectively leveraged. If you modeled your whale usage wrong or some kind of conditions change that change usage patterns for lots of users you could be underwater.
#END#
Where the 'following words' is the dedupedPrettyItemsFromCard
from the fingerprint of each card, and the body of the text is the innerText of the card.
It should be a maintenance task that generates a JSONL file and downloads it
- [x] Generate the file contents
- [x] Add a FINE_TUNING_NAME config variable (defaults to APP_TITLE)
- [x] Download the file contents
- [x] Downloaded filename should have a timestamp
- [ ] Try different lengths of trimmed words (set randomly to train it to be more reslient?)
- [ ] Have a maintenance task that pops a prompt asking for words and then returns a prompt to pass to openAI
- [ ] The prompt to generate a prompt should default to having 3-10 words selected from the urn of distinctive words so you can just hit generate and get a random made up card
- [x] Warn if you try to generate before fully loaded
- [ ] Document in README
- [x] Remove the unnecessary training_data_name (including in README) if that really shouldn't be in the prompt.
- [x] Handle non working notes cards (e.g. content cards)