Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

21.3 KB
Raw Blame
<svg xmlns="http://www.w3.org/2000/svg" width="1500" height="1060" viewBox="0 0 1500 1060" font-family="Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif">
<rect x="0" y="0" width="1500" height="1060" rx="20" fill="#FFFFFF"/>
<text x="40" y="46" font-size="26" font-weight="700" fill="#1F2329" text-anchor="start">What happens in one turn</text>
<rect x="40" y="70" width="1420" height="110" rx="0" fill="#F5F9FF"/>
<text x="105" y="131" font-size="17" font-weight="700" fill="#3370FF" text-anchor="middle">Client</text>
<rect x="40" y="180" width="1420" height="120" rx="0" fill="#F7F3FF"/>
<text x="105" y="235" font-size="17" font-weight="700" fill="#7F3BF5" text-anchor="middle">OpenViking</text>
<text x="105" y="257" font-size="17" font-weight="700" fill="#7F3BF5" text-anchor="middle">Gateway</text>
<rect x="40" y="300" width="1420" height="110" rx="0" fill="#F1EBFF"/>
<text x="105" y="361" font-size="17" font-weight="700" fill="#6425D0" text-anchor="middle">OpenViking</text>
<rect x="40" y="410" width="1420" height="110" rx="0" fill="#FFF8F0"/>
<text x="105" y="460" font-size="17" font-weight="700" fill="#FF8800" text-anchor="middle">Upstream</text>
<text x="105" y="482" font-size="17" font-weight="700" fill="#FF8800" text-anchor="middle">model</text>
<rect x="40" y="70" width="1420" height="450" rx="0" fill="none" stroke="#E5E6EB" stroke-width="1"/>
<line x1="40" y1="180" x2="1460" y2="180" stroke="#E5E6EB" stroke-width="1"/>
<line x1="40" y1="300" x2="1460" y2="300" stroke="#E5E6EB" stroke-width="1"/>
<line x1="40" y1="410" x2="1460" y2="410" stroke="#E5E6EB" stroke-width="1"/>
<line x1="170" y1="70" x2="170" y2="520" stroke="#E5E6EB" stroke-width="1"/>
<rect x="190" y="90" width="200" height="74" rx="10" fill="#FFFFFF" stroke="#3370FF" stroke-width="1.8"/>
<text x="290" y="114.07" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">New user message</text>
<text x="290" y="133.34" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">Client resends</text>
<text x="290" y="152.19" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">the full history</text>
<rect x="1124" y="95" width="186" height="65" rx="10" fill="#FFFFFF" stroke="#3370FF" stroke-width="1.8"/>
<text x="1217" y="133.42" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">User sees the reply</text>
<rect x="190" y="200" width="200" height="84" rx="10" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.8"/>
<text x="290" y="228.095" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">Check key, find</text>
<text x="290" y="248.895" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">the conversation</text>
<text x="290" y="268.165" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">New or housekeeping?</text>
<circle cx="192" cy="202" r="13" fill="#7F3BF5"/>
<text x="192" y="207.5" font-size="15" font-weight="700" fill="#FFFFFF" text-anchor="middle">1</text>
<rect x="416" y="200" width="200" height="84" rx="10" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.8"/>
<text x="516" y="228.095" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">Replay memory</text>
<text x="516" y="248.895" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">added earlier</text>
<text x="516" y="268.165" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">Byte-identical, in place</text>
<circle cx="418" cy="202" r="13" fill="#7F3BF5"/>
<text x="418" y="207.5" font-size="15" font-weight="700" fill="#FFFFFF" text-anchor="middle">2</text>
<rect x="642" y="200" width="200" height="84" rx="10" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.8"/>
<text x="742" y="229.07" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">Recall</text>
<text x="742" y="248.34" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">New messages only</text>
<text x="742" y="267.19" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">Waits up to 2 s</text>
<circle cx="644" cy="202" r="13" fill="#7F3BF5"/>
<text x="644" y="207.5" font-size="15" font-weight="700" fill="#FFFFFF" text-anchor="middle">3</text>
<rect x="868" y="200" width="200" height="84" rx="10" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.8"/>
<text x="968" y="238.495" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">Forward</text>
<text x="968" y="257.765" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">No API translation</text>
<circle cx="870" cy="202" r="13" fill="#7F3BF5"/>
<text x="870" y="207.5" font-size="15" font-weight="700" fill="#FFFFFF" text-anchor="middle">4</text>
<rect x="1250" y="200" width="196" height="84" rx="10" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.8"/>
<text x="1348" y="229.07" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">Queue the turn</text>
<text x="1348" y="248.34" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">Saved to OpenViking</text>
<text x="1348" y="267.19" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">one turn later</text>
<circle cx="1252" cy="202" r="13" fill="#7F3BF5"/>
<text x="1252" y="207.5" font-size="15" font-weight="700" fill="#FFFFFF" text-anchor="middle">5</text>
<rect x="642" y="318" width="200" height="74" rx="10" fill="#FFFFFF" stroke="#6425D0" stroke-width="1.8"/>
<text x="742" y="351.495" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">Search OpenViking</text>
<text x="742" y="370.765" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">Using the user's key</text>
<rect x="1250" y="318" width="196" height="74" rx="10" fill="#FFFFFF" stroke="#6425D0" stroke-width="1.8"/>
<text x="1348" y="341.095" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">Save on the</text>
<text x="1348" y="361.895" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">next message</text>
<text x="1348" y="381.165" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">Commit, then extract</text>
<rect x="868" y="430" width="200" height="70" rx="10" fill="#FFFFFF" stroke="#FF8800" stroke-width="1.8"/>
<text x="968" y="461.495" font-size="16" font-weight="700" fill="#1F2329" text-anchor="middle">Model replies</text>
<text x="968" y="480.765" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="middle">Streamed</text>
<polyline points="290,164 290,189" fill="none" stroke="#3370FF" stroke-width="2" stroke-linejoin="round"/>
<polygon points="290,198 284.5,188.0 295.5,188.0" fill="#3370FF"/>
<polyline points="390,242 406,242" fill="none" stroke="#7F3BF5" stroke-width="2" stroke-linejoin="round"/>
<polygon points="415,242 405.0,247.5 405.0,236.5" fill="#7F3BF5"/>
<polyline points="616,242 632,242" fill="none" stroke="#7F3BF5" stroke-width="2" stroke-linejoin="round"/>
<polygon points="641,242 631.0,247.5 631.0,236.5" fill="#7F3BF5"/>
<polyline points="842,242 858,242" fill="none" stroke="#7F3BF5" stroke-width="2" stroke-linejoin="round"/>
<polygon points="867,242 857.0,247.5 857.0,236.5" fill="#7F3BF5"/>
<polyline points="692,284 692,308" fill="none" stroke="#7F3BF5" stroke-width="2" stroke-linejoin="round"/>
<polygon points="692,317 686.5,307.0 697.5,307.0" fill="#7F3BF5"/>
<polyline points="792,318 792,294" fill="none" stroke="#7F3BF5" stroke-width="2" stroke-linejoin="round"/>
<polygon points="792,285 797.5,295.0 786.5,295.0" fill="#7F3BF5"/>
<text x="850" y="330" font-size="14" font-weight="400" fill="#7F3BF5" text-anchor="start">Up to 1,600 tokens</text>
<text x="850" y="349" font-size="14" font-weight="400" fill="#7F3BF5" text-anchor="start">per message, added</text>
<text x="850" y="368" font-size="14" font-weight="400" fill="#7F3BF5" text-anchor="start">at the message end</text>
<polyline points="1028,284 1028,420" fill="none" stroke="#8F959E" stroke-width="2" stroke-linejoin="round"/>
<polygon points="1028,429 1022.5,419.0 1033.5,419.0" fill="#8F959E"/>
<polyline points="1068,465 1098,465 1098,128 1114,128" fill="none" stroke="#8F959E" stroke-width="2" stroke-linejoin="round"/>
<polygon points="1123,128 1113.0,133.5 1113.0,122.5" fill="#8F959E"/>
<text x="1108" y="330" font-size="14" font-weight="400" fill="#646A73" text-anchor="start">Reply streams</text>
<text x="1108" y="349" font-size="14" font-weight="400" fill="#646A73" text-anchor="start">back chunk</text>
<text x="1108" y="368" font-size="14" font-weight="400" fill="#646A73" text-anchor="start">by chunk</text>
<circle cx="1098" cy="242" r="3.5" fill="#8F959E"/>
<polyline points="1098,242 1240,242" fill="none" stroke="#8F959E" stroke-width="1.5" stroke-linejoin="round" stroke-dasharray="3 4"/>
<polygon points="1249,242 1239.0,247.5 1239.0,236.5" fill="#8F959E"/>
<polyline points="1350,284 1350,308" fill="none" stroke="#7F3BF5" stroke-width="2" stroke-linejoin="round" stroke-dasharray="6 4"/>
<polygon points="1350,317 1344.5,307.0 1355.5,307.0" fill="#7F3BF5"/>
<text x="40" y="546" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="start">If OpenViking times out or is unavailable, the message goes out without memory and does not get it later.</text>
<text x="40" y="565" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="start">Tool steps skip step 3; sub-agent calls, title generation and other housekeeping requests skip steps 3 and 5.</text>
<text x="40" y="606" font-size="20" font-weight="700" fill="#1F2329" text-anchor="start">Why replay: providers cache prompts by prefix</text>
<text x="40" y="678" font-size="16" font-weight="700" fill="#2EA121" text-anchor="start">Replayed</text>
<rect x="192" y="650" width="120" height="44" rx="4" fill="#E3F5E1" stroke="#2EA121" stroke-width="1.5"/>
<text x="252" y="677" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">System prompt</text>
<rect x="316" y="650" width="96" height="44" rx="4" fill="#E3F5E1" stroke="#2EA121" stroke-width="1.5"/>
<text x="364" y="677" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Message 1</text>
<rect x="416" y="650" width="96" height="44" rx="4" fill="#EDE6FF" stroke="#2EA121" stroke-width="1.5"/>
<text x="464" y="677" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Memory A</text>
<rect x="516" y="650" width="84" height="44" rx="4" fill="#E3F5E1" stroke="#2EA121" stroke-width="1.5"/>
<text x="558" y="677" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Reply 1</text>
<rect x="604" y="650" width="96" height="44" rx="4" fill="#E3F5E1" stroke="#2EA121" stroke-width="1.5"/>
<text x="652" y="677" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Message 2</text>
<rect x="704" y="650" width="96" height="44" rx="4" fill="#EDE6FF" stroke="#2EA121" stroke-width="1.5"/>
<text x="752" y="677" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Memory B</text>
<rect x="804" y="650" width="84" height="44" rx="4" fill="#E3F5E1" stroke="#2EA121" stroke-width="1.5"/>
<text x="846" y="677" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Reply 2</text>
<rect x="892" y="650" width="126" height="44" rx="4" fill="#FFFFFF" stroke="#8F959E" stroke-width="1.5"/>
<text x="955" y="677" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">New message 3</text>
<rect x="1022" y="650" width="100" height="44" rx="4" fill="#FFFFFF" stroke="#8F959E" stroke-width="1.5"/>
<text x="1072" y="677" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">New recall</text>
<line x1="192" y1="640" x2="888" y2="640" stroke="#2EA121" stroke-width="1.5"/>
<line x1="192" y1="640" x2="192" y2="646" stroke="#2EA121" stroke-width="1.5"/>
<line x1="888" y1="640" x2="888" y2="646" stroke="#2EA121" stroke-width="1.5"/>
<text x="540" y="633" font-size="14" font-weight="700" fill="#2EA121" text-anchor="middle">Cache hit, billed at the cached rate</text>
<line x1="892" y1="640" x2="1122" y2="640" stroke="#8F959E" stroke-width="1.5"/>
<line x1="892" y1="640" x2="892" y2="646" stroke="#8F959E" stroke-width="1.5"/>
<line x1="1122" y1="640" x2="1122" y2="646" stroke="#8F959E" stroke-width="1.5"/>
<text x="1007" y="633" font-size="14" font-weight="700" fill="#8F959E" text-anchor="middle">New content</text>
<text x="40" y="766" font-size="16" font-weight="700" fill="#F54A45" text-anchor="start">Not replayed</text>
<rect x="192" y="738" width="120" height="44" rx="4" fill="#E3F5E1" stroke="#2EA121" stroke-width="1.5"/>
<text x="252" y="765" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">System prompt</text>
<rect x="316" y="738" width="96" height="44" rx="4" fill="#E3F5E1" stroke="#2EA121" stroke-width="1.5"/>
<text x="364" y="765" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Message 1</text>
<rect x="416" y="738" width="96" height="44" rx="4" fill="#FFFFFF" stroke="#8F959E" stroke-width="1.5" stroke-dasharray="5 4"/>
<text x="464" y="765" font-size="14" font-weight="400" fill="#8F959E" text-anchor="middle">none</text>
<rect x="516" y="738" width="84" height="44" rx="4" fill="#E3F5E1" stroke="#2EA121" stroke-width="1.5"/>
<text x="558" y="765" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Reply 1</text>
<rect x="604" y="738" width="96" height="44" rx="4" fill="#E3F5E1" stroke="#2EA121" stroke-width="1.5"/>
<text x="652" y="765" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Message 2</text>
<rect x="704" y="738" width="96" height="44" rx="4" fill="#FFFFFF" stroke="#F54A45" stroke-width="1.5" stroke-dasharray="5 4"/>
<text x="752" y="765" font-size="14" font-weight="400" fill="#F54A45" text-anchor="middle">missing</text>
<rect x="804" y="738" width="84" height="44" rx="4" fill="#FDECEC" stroke="#F54A45" stroke-width="1.5"/>
<text x="846" y="765" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Reply 2</text>
<rect x="892" y="738" width="126" height="44" rx="4" fill="#FDECEC" stroke="#F54A45" stroke-width="1.5"/>
<text x="955" y="765" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">New message 3</text>
<rect x="1022" y="738" width="100" height="44" rx="4" fill="#FDECEC" stroke="#F54A45" stroke-width="1.5"/>
<text x="1072" y="765" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">New recall</text>
<line x1="192" y1="728" x2="700" y2="728" stroke="#2EA121" stroke-width="1.5"/>
<line x1="192" y1="728" x2="192" y2="734" stroke="#2EA121" stroke-width="1.5"/>
<line x1="700" y1="728" x2="700" y2="734" stroke="#2EA121" stroke-width="1.5"/>
<text x="446" y="721" font-size="14" font-weight="700" fill="#2EA121" text-anchor="middle">Same as last turn: hit</text>
<line x1="704" y1="728" x2="1122" y2="728" stroke="#F54A45" stroke-width="1.5"/>
<line x1="704" y1="728" x2="704" y2="734" stroke="#F54A45" stroke-width="1.5"/>
<line x1="1122" y1="728" x2="1122" y2="734" stroke="#F54A45" stroke-width="1.5"/>
<text x="913" y="721" font-size="14" font-weight="700" fill="#F54A45" text-anchor="middle">Full price from last turn's memory onward</text>
<rect x="1164" y="652" width="26" height="18" rx="3" fill="#EDE6FF" stroke="#2EA121" stroke-width="1.5"/>
<text x="1200" y="667" font-size="14" font-weight="400" fill="#646A73" text-anchor="start">Memory the gateway added</text>
<rect x="1164" y="682" width="26" height="18" rx="3" fill="#E3F5E1" stroke="#2EA121" stroke-width="1.5"/>
<text x="1200" y="697" font-size="14" font-weight="400" fill="#646A73" text-anchor="start">Cache hit, cached rate</text>
<rect x="1164" y="712" width="26" height="18" rx="3" fill="#FDECEC" stroke="#F54A45" stroke-width="1.5"/>
<text x="1200" y="727" font-size="14" font-weight="400" fill="#646A73" text-anchor="start">Cache miss, full price</text>
<rect x="1164" y="742" width="26" height="18" rx="3" fill="#FFFFFF" stroke="#8F959E" stroke-width="1.5"/>
<text x="1200" y="757" font-size="14" font-weight="400" fill="#646A73" text-anchor="start">New in this turn</text>
<text x="40" y="812" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="start">The client's history never contains what the gateway added, so the gateway keeps its own record and puts it back on every request.</text>
<text x="40" y="832" font-size="14.5" font-weight="400" fill="#646A73" text-anchor="start">Without replay, each turn is recomputed from where memory was added in the previous turn; the exact cost depends on the provider's cache breakpoints.</text>
<rect x="40" y="856" width="760" height="180" rx="12" fill="#F7F3FF" stroke="#7F3BF5" stroke-width="1.5"/>
<text x="62" y="888" font-size="17" font-weight="700" fill="#1F2329" text-anchor="start">Across turns: save the conversation, extract memories</text>
<rect x="62" y="904" width="159.5" height="72" rx="8" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.5"/>
<text x="141.75" y="935" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Next message</text>
<text x="141.75" y="954" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">arrives</text>
<polyline points="224.5,940 236.5,940" fill="none" stroke="#7F3BF5" stroke-width="1.8" stroke-linejoin="round"/>
<polygon points="245.5,940 235.5,945.5 235.5,934.5" fill="#7F3BF5"/>
<rect x="247.5" y="904" width="159.5" height="72" rx="8" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.5"/>
<text x="327.25" y="925.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Previous turn</text>
<text x="327.25" y="944.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">saved to an</text>
<text x="327.25" y="963.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">OpenViking session</text>
<polyline points="410,940 422,940" fill="none" stroke="#7F3BF5" stroke-width="1.8" stroke-linejoin="round"/>
<polygon points="431,940 421.0,945.5 421.0,934.5" fill="#7F3BF5"/>
<rect x="433" y="904" width="159.5" height="72" rx="8" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.5"/>
<text x="512.75" y="925.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">20,000 tokens</text>
<text x="512.75" y="944.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">pending, or 10</text>
<text x="512.75" y="963.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">quiet minutes</text>
<polyline points="595.5,940 607.5,940" fill="none" stroke="#7F3BF5" stroke-width="1.8" stroke-linejoin="round"/>
<polygon points="616.5,940 606.5,945.5 606.5,934.5" fill="#7F3BF5"/>
<rect x="618.5" y="904" width="159.5" height="72" rx="8" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.5"/>
<text x="698.25" y="925.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Session commits;</text>
<text x="698.25" y="944.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">OpenViking</text>
<text x="698.25" y="963.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">extracts memories</text>
<text x="62" y="1000" font-size="14" font-weight="400" fill="#646A73" text-anchor="start">Regenerated or abandoned answers are never saved.</text>
<text x="62" y="1019" font-size="14" font-weight="400" fill="#646A73" text-anchor="start">The last turn is saved after 10 quiet minutes.</text>
<rect x="830" y="856" width="630" height="180" rx="12" fill="#F7F3FF" stroke="#7F3BF5" stroke-width="1.5"/>
<text x="852" y="888" font-size="17" font-weight="700" fill="#1F2329" text-anchor="start">Across turns: compact long conversations</text>
<rect x="852" y="904" width="178" height="72" rx="8" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.5"/>
<text x="941" y="925.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">90% of the</text>
<text x="941" y="944.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">context window</text>
<text x="941" y="963.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">(default)</text>
<polyline points="1033,940 1045,940" fill="none" stroke="#7F3BF5" stroke-width="1.8" stroke-linejoin="round"/>
<polygon points="1054,940 1044.0,945.5 1044.0,934.5" fill="#7F3BF5"/>
<rect x="1056" y="904" width="178" height="72" rx="8" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.5"/>
<text x="1145" y="925.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Same model writes</text>
<text x="1145" y="944.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">a summary (up to</text>
<text x="1145" y="963.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">8,000 tokens)</text>
<polyline points="1237,940 1249,940" fill="none" stroke="#7F3BF5" stroke-width="1.8" stroke-linejoin="round"/>
<polygon points="1258,940 1248.0,945.5 1248.0,934.5" fill="#7F3BF5"/>
<rect x="1260" y="904" width="178" height="72" rx="8" fill="#FFFFFF" stroke="#7F3BF5" stroke-width="1.5"/>
<text x="1349" y="925.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">Then send: system</text>
<text x="1349" y="944.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">prompt, summary and</text>
<text x="1349" y="963.5" font-size="14" font-weight="400" fill="#1F2329" text-anchor="middle">what follows the cut</text>
<text x="852" y="1000" font-size="14" font-weight="400" fill="#646A73" text-anchor="start">Text before the cut is no longer sent; the client's history stays as it is.</text>
<text x="852" y="1019" font-size="14" font-weight="400" fill="#646A73" text-anchor="start">Compaction costs one extra model request.</text>
</svg>