Repository navigation
Replies: 2 comments
|
I'm facing the same problem, my plan tree is so long, now after 5-6 times of compaction, my chat session has become too laggy just to type or to scroll up and down. |
0 replies
|
Totally agree I have the same problem |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
A teaching session runs until the whole plan is covered, so the context keeps growing. Long contexts have three costs:
Compaction helps, but it does not fully solve this. The summary is lossy, and #160 shows cases where repeated compaction barely shrinks the context. If the context can be made smaller without losing teaching quality, it seems worth doing.
Starting a new session does not work as a workaround today. A new session sees only proposition names from the graph (
list_sessions/list_propositions). It does not see the plan tree, which nodes are done, the learner's mistakes, or where the lesson stopped. So the learner has to rebuild the plan by hand, as several people in #500 and #160 describe.Idea
Probe and plan once, then go through the plan in several shorter sessions. When a session ends, it hands off a compact state to the next one: the plan tree with statuses, what the learner understands and gets wrong, and the current moment. The next session starts from that state instead of from scratch.
The compaction summary already has this shape (learner's understanding, teaching arc, plan tree verbatim, current moment), so a first version could reuse it: a "Continue in a new session" action that creates a new teaching session seeded with that summary.
Related
Question for maintainers
Does splitting a lesson across sessions fit the intended design, or should a lesson stay one session with better compaction?
All reactions