bobbai00 commented on PR #9494:
URL: https://github.com/apache/texera/pull/9494#issuecomment-7087406968

   Thanks for the review. The evaluation in my first comment used short tasks 
without prompt caching, so I compared the two on two longer tests, both in the 
description and both with Claude Haiku 5.5 and LiteLLM's automatic prompt 
caching (#9589): a conversation of 14 prompts with repeated edits and 
executions, four conversations per side, and 20 tasks drawn at random from 
[KramaBench](https://github.com/mitdbg/Kramabench) (those with CSV files and no 
LLM-judged answer), one attempt per side.
   
   | | `main` | This PR |
   | --- | --- | --- |
   | 14 prompts, per conversation | | |
   | Input tokens sent | 549k | 640k (+17%) |
   | Input cost | $0.0240 | $0.0078 (−67%) |
   | Total cost, output included | $0.0311 | $0.0123 (−60%) |
   | 20 KramaBench tasks, all together | | |
   | Correct answers | 12 | 12 |
   | Input tokens sent | 1.57M | 2.02M (+29%) |
   | Input cost | $0.0487 | $0.0293 (−40%) |
   | Total cost, output included | $0.0912 | $0.0680 (−25%) |
   
   Both sides answered the same 12 KramaBench tasks correctly. Although this PR 
sends more tokens, it costs less: every model call begins with the previous 
call's input, so 96–98% of the input is read from the cache, against 71–82% on 
`main`, whose summary changes on every call. The costs use Claude Haiku 5.5's 
list prices.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to