Lowering brief states the grade scale
LOWER_INSTRUCTIONS gains 'a grade is permille, 0 to 1000' (the encode brief already states it). The pinned lowering test requires the sentence and asserts the item's speaker entity id and group are in no prompt text. This edits context.rs, a PROMPT_SOURCE_DIGEST input: the digest moves and runs opened before this commit stop opening; open a fresh run to ablate under the new brief. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
633bf831dc
commit
00feb1d310
2 changed files with 13 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ A feature is {feature, value}; value is {\"Grade\": 0 to 1000}, {\"Option\": lab
|
|||
/// Fixed per run by `PROMPT_SOURCE_DIGEST`.
|
||||
pub const LOWER_INSTRUCTIONS: &str = "\
|
||||
Say the packet below in English (en-US), as one utterance of its speaker: all of its meaning and nothing it does not carry.
|
||||
Every id is the inventory's listed below and every feature value is as listed. The stance is the speaker's felt affect and restraint: it shapes how the utterance is said, not what it says.
|
||||
Every id is the inventory's listed below and every feature value is as listed; a grade is permille, 0 to 1000. The stance is the speaker's felt affect and restraint: it shapes how the utterance is said, not what it says.
|
||||
A referent with an entity is named by one of that entity's forms on the entities line.
|
||||
Answer with one JSON object and nothing else: {\"text\": \"...\"}. No code fence, no commentary.";
|
||||
|
||||
|
|
|
|||
|
|
@ -630,6 +630,7 @@ mod lowering {
|
|||
for needed in [
|
||||
"en-US",
|
||||
"all of its meaning and nothing it does not carry",
|
||||
"a grade is permille, 0 to 1000",
|
||||
"felt affect and restraint",
|
||||
"shapes how the utterance is said, not what it says",
|
||||
"forms on the entities line",
|
||||
|
|
@ -640,6 +641,17 @@ mod lowering {
|
|||
// The one call it makes is its item; the key is in no text.
|
||||
assert_eq!(prompt.item_keys(), [item.as_str()]);
|
||||
assert!(!prompt.text().contains(item.as_str()));
|
||||
// The view's speaker and group are private: the item's speaker entity
|
||||
// id and its group are in no text.
|
||||
let held = CorpusStore::open(&data("daodejing/corpus.cc"))
|
||||
.unwrap()
|
||||
.get(item.as_str())
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
assert!(!held.group.is_empty());
|
||||
for private in [held.speaker.as_str(), held.group.as_str()] {
|
||||
assert!(!prompt.text().contains(private), "{private}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue