Move memory scores to status column for consistent alignment
Individual memory nodes now show their score in the status column after the token count, not embedded in the name. Unscored memories have an empty status column. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
c7c69a8f06
commit
1be16b9f7b
1 changed files with 5 additions and 5 deletions
|
|
@ -44,16 +44,16 @@ impl ConsciousScreen {
|
|||
let mut unscored = 0usize;
|
||||
for ce in ag.context.conversation.entries() {
|
||||
if let ConversationEntry::Memory { key, score, .. } = &ce.entry {
|
||||
let label = match score {
|
||||
Some(s) => { scored += 1; format!("{} (score:{:.1})", key, s) }
|
||||
None => { unscored += 1; key.clone() }
|
||||
let status = match score {
|
||||
Some(s) => { scored += 1; format!("score: {:.2}", s) }
|
||||
None => { unscored += 1; String::new() }
|
||||
};
|
||||
mem_children.push(SectionView {
|
||||
name: label,
|
||||
name: key.clone(),
|
||||
tokens: ce.tokens,
|
||||
content: ce.entry.message().content_text().to_string(),
|
||||
children: Vec::new(),
|
||||
status: String::new(),
|
||||
status,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue