Repository navigation
help(prompts): flesh out chemical-formulas and build-analyzer prompts - #179
Merged
Merged
Conversation
Expand the two build prompts with the guidance needed to reach a working analyzer without back-and-forth: - Use the Knowledge Base template as intended (KBFuncs/kbinit/output), build results into a KB, and emit JSON via JsonKB — no hand-rolled JSON. - Engine facts: dicttok tokenization behavior, kb/user auto-loaded .dict, and -WORK must point at the engine dir (not the analyzer). - 01 adds the full ChemFormulas task: input corpus, element.dict approach, parsing rules, KB/output shape, and precision filters. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follow-up to #178. Substantially expands the two build prompts so they reach a working analyzer without extra back-and-forth.
Both prompts now include:
KBFuncs.nlp/kbinit.nlp/output.nlp; accumulate into a KB; serialize withSaveKB+JsonKB) instead of hand-rolling JSON.dicttoktokenization behavior (mixed-case stays one token),kb/userauto-loaded.dictfiles, and the-WORKmust point at the engine dir (not the analyzer) gotcha.01-chemical-formulas.mdadds the full ChemFormulas task spec: Wikipedia input corpus withSOURCES.mdand near-miss distractors, theelement.dicttwo-word (symbol + name) approach, the character-by-character parsing rules, the exact KB/output concept shape, the expectedformulas.json, and precision filters for rejecting near-misses.Scope
Only
01-chemical-formulas.mdand02-build-analyzer.mdchange (+79 / -7). Titles, tooltipsdesc:markers, and the other two prompts from #178 are unchanged.🤖 Generated with Claude Code