From: Ricardo Wurmus <rekado@elephly.net>
To: Arun Isaac <arunisaac@systemreboot.net>
Cc: Ricardo Wurmus <rekado@elephly.net>, kaagum@systemreboot.net
Subject: Re: [PATCH v2 0/5] Context compaction
Date: Thu, 19 Nov 2026 15:28:55 +0100 [thread overview]
Message-ID: <87wlq851zs.fsf@elephly.net> (raw)
In-Reply-To: <20261115044752.5595-1-arunisaac@systemreboot.net>
Hi Arun,
> Here's a new v2 patchset. I think this is looking pretty close
> to
> completion. Let me know what you think.
Thank you for the patches. Unfortunately, it looks like
(compaction-request-context-length effect) doesn't return the
context length in my case.
--8<---------------cut here---------------start------------->8---
WARNING: (kaagum web): imported module (rnrs conditions) overrides
core binding `&error'
Backtrace:
In ice-9/boot-9.scm:
1791:12 11 (with-exception-handler _ _ #:unwind? _
#:unwind-for-type _)
In unknown file:
10 (apply-smob/0 #<thunk 7fd284eaf3a0>)
In ice-9/boot-9.scm:
740:2 9 (call-with-prompt _ _ #<procedure
default-prompt-handler (k proc)>)
In ice-9/eval.scm:
619:8 8 (_ #(#(#<directory (guile-user) 7fd284eb2c80>)))
In ice-9/boot-9.scm:
161:2 7 (with-fluid* _ _ _)
In ice-9/ports.scm:
439:17 6 (call-with-output-file _ _ #:binary _ #:encoding _)
In ice-9/boot-9.scm:
161:2 5 (with-fluid* _ _ _)
In kaagum/tea.scm:
1021:6 4 (tea-loop _ "https://llm.example.com" "sk-bf-..."
(("vllm/Qwen/Qwen3.8-27B" . #<<model> name: #f description: #f
context-length: #f>) ("vllm/Aleph-Alpha/Kolibri-1" . #<<model>
name: #f description: #f context-length: #f>)
("vllm/google/medgemma-27b-it" . #<<model> name: #f
description: #f context-length: #f>)
("vllm/onprem-ai/Apertus-v1.5-70B-FP8" . #<<model> name: #f
description: #f context-length: #f>)) (("read" . #<<tool>
description: …>) …) …)
In srfi/srfi-1.scm:
789:15 3 (append-map #<procedure 7fd26522a380 at
kaagum/tea.scm:1021:25 (t-9386c0004f0da33-21f8)>
(#<<compaction-request> session-id: "session-0" model:
"vllm/Qwen/Qwen3.8-27B" messages: (#<<user-message> content:
"hello">) tokens: 0 context-length: #f>))
702:17 2 (map1 (#<<compaction-request> session-id: "session-0"
model: "vllm/Qwen/Qwen3.8-27B" messages: (#<<user-message>
content: "hello">) tokens: 0 context-length: #f>))
In kaagum/tea.scm:
1091:11 1 (do-effect #<<compaction-request> session-id:
"session-0" model: "vllm/Qwen/Qwen3.8-27B" messages:
(#<<user-message> content: "hello">) tokens: 0 context-length:
#f> "https://llm.example.com" "sk-bf-..." _ #<procedure
7fd264e9ce60 at kaagum/compacters.scm:109:2 (messages #:key
tokens context-length)>)
In kaagum/compacters.scm:
110:11 0 (_ (#<<user-message> content: "hello">) #:tokens _
#:context-length _)
kaagum/compacters.scm:110:11: In procedure /: Wrong type argument
in position 2: #f
--8<---------------cut here---------------end--------------->8---
That's on the very first prompt after launching kaagum.
--
Ricardo
next prev parent reply other threads:[~2026-11-19 14:29 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 8:11 strategies for context management Ricardo Wurmus
2026-11-06 14:21 ` Arun Isaac
2026-11-06 21:28 ` Ricardo Wurmus
2026-11-07 8:15 ` Ricardo Wurmus
2026-11-08 1:35 ` Arun Isaac
2026-11-08 1:36 ` [PATCH] Support context compaction Arun Isaac
2026-11-09 13:25 ` strategies for context management Ricardo Wurmus
2026-11-10 23:42 ` Arun Isaac
2026-11-13 22:41 ` [PATCH 1/4] Add message record equality comparators Arun Isaac
2026-11-13 22:41 ` [PATCH 2/4] Support context compaction Arun Isaac
2026-11-13 22:41 ` [PATCH 3/4] Add sliding window compacter Arun Isaac
2026-11-13 22:41 ` [PATCH 4/4] Allow loading compacter from file Arun Isaac
2026-11-13 22:46 ` strategies for context management Arun Isaac
2026-11-15 4:47 ` [PATCH v2 0/5] Context compaction Arun Isaac
2026-11-19 14:28 ` Ricardo Wurmus [this message]
2026-11-19 14:29 ` Ricardo Wurmus
2026-11-19 18:43 ` Arun Isaac
2026-11-20 5:39 ` Ricardo Wurmus
2026-11-20 5:56 ` Ricardo Wurmus
2026-11-20 13:42 ` Arun Isaac
2026-11-20 13:45 ` Arun Isaac
2026-11-20 14:01 ` Ricardo Wurmus
2026-11-22 16:54 ` Arun Isaac
2026-11-15 4:47 ` [PATCH v2 1/5] Support context compaction Arun Isaac
2026-11-15 4:47 ` [PATCH v2 2/5] Add sliding window compacter Arun Isaac
2026-11-15 4:47 ` [PATCH v2 3/5] Add summarizing compacter Arun Isaac
2026-11-15 4:47 ` [PATCH v2 4/5] Document context compacters Arun Isaac
2026-11-15 4:47 ` [PATCH v2 5/5] Allow user-defined " Arun Isaac
2026-11-08 1:43 ` strategies for context management Arun Isaac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wlq851zs.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=arunisaac@systemreboot.net \
--cc=kaagum@systemreboot.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox