to instructions on voice in editor not good yet #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
when we click instruction we get not good result
see the result instructions
we need much better prompt to generate the instructions, it needs to say, start from the instructions we have, use the new instructions at back of the current ones (if there are any), to improve the slide isntructiosn
but result needs to be clear for slide generation
Implementation Spec — Issue #5: Improve the "Intent" (Voice-to-Instructions) Prompt
Objective
The
hero_slides intentsubcommand generates anintent.mdfile by sending each slide's markdown through an AI prompt (build_intent_prompt). The current prompt is too generic — it asks the model to summarize slides for "thematic coherence," producing vague output not useful for slide generation.The fix implements three behaviors:
intent.md).Requirements
intent.mdalready contains an entry for a slide, pass that existing text to the AI as the "current instructions" baseline.build_intent_promptmust accept an optionalexisting_description: Option<&str>parameter.generate_intent_entryandcmd_intentmust pass the correct prior entry where available.NoneandSomebranches.Files to Modify
src/generator.rs— core prompt builderbuild_intent_promptand publicgenerate_intent_entrysrc/main.rs—cmd_intentorchestration loop must pass prior descriptions throughImplementation Plan
Step 1: Update
build_intent_promptingenerator.rsFiles:
src/generator.rsexisting_description: Option<&str>parameterSome(text): include existing entry as "Current Slide Instructions" and tell model to extend (not replace)None: generate fresh instruction setDependencies: none
Step 2: Update
generate_intent_entrysignature ingenerator.rsFiles:
src/generator.rsexisting_description: Option<&str>parameter to signaturebuild_intent_promptDependencies: Step 1
Step 3: Update
cmd_intentinmain.rsFiles:
src/main.rsexisting_intentsSome(&existing.description)orNonetogenerate_intent_entryDependencies: Step 2
Step 4: Update unit tests
Files:
src/generator.rstest_build_intent_promptto passNonetest_build_intent_prompt_no_priorandtest_build_intent_prompt_with_priorDependencies: Step 1
Acceptance Criteria
build_intent_promptacceptsexisting_description: Option<&str>and includes it whenSomecmd_intent→generate_intent_entry→build_intent_promptNoneis passed when no prior entry existsNoneandSomebranchesintent.mdoutput reads as a directive list, not description paragraphsNotes
hero_slides intentsubcommandintent.mdfile provides per-slide generation instructions consumed bybuild_promptModel::Llama3_3_70B— improved prompt should work; stronger model is a fallback optiongenerate_slide/build_promptdoes not need changesuse strong model use
GPT-5.4 Nano
Implementation committed:
762df2eBrowse:
762df2e