Report whether a predict used the cached context or restored it (cache_outcome)
维护者通常 1 天内回复
评估
调研方向
Read src/tabctx/serve/service.py and src/tabctx/engine.py to trace how restore counts reach the predict response, then check src/tabctx/client.py for the result model. Use tests/unit/test_standalone_service.py for the hit case and tests/unit/test_spill.py to find how to trigger a spill. Done when both outcomes are reported correctly and the unit suite passes.
由索引模型根据 Issue 内容生成。
描述
A predict response says how long it took (latency_ms, timings_ms) but not whether the cached context was used as is, restored from the disk tier, or missing. Users can't see evictions, and slow restores look like slow predicts. (Item 3 of #46.)
What to do
- Add
cache_outcome: "hit" | "restored"toTabctxPredictResponseinsrc/tabctx/serve/service.py. - The engine already knows:
TabctxEngine.predictcountsrestoreswithtiming.count("restores")(src/tabctx/engine.py). Carry that through to the response; for coalesced requests the batch's outcome applies to all members. - Show it in
PredictResultinsrc/tabctx/client.py(with a default, at the end). - Tests:
tests/unit/test_standalone_service.py(a hit), and a spill test that restores (seetests/unit/test_spill.pyfor how to force a spill).
Done when
- A predict right after a fit reports
hit; one after the context was spilled reportsrestored. uv run pytest tests/unit -n autopasses.
- 主要语言
- Python
- 星标
- 1
- 派生
- 1
- 平均合并
- 6 小时 45 分钟
- 30 天内合并 PR
- 66
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
VectorInstitute/tabctx 的其他 Issue
-
area/api enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
VectorInstitute/tabctx#111 ·
维护者通常 1 天内回复
-
documentation good first issue help wanted
难度 3/5 1-2 天 新手友好度 76/100
VectorInstitute/tabctx#113 ·
维护者通常 1 天内回复
-
area/api enhancement P3 roadmap
难度 5/5 一周以上 新手友好度 25/100
VectorInstitute/tabctx#106 ·
维护者通常 1 天内回复
-
area/latency enhancement help wanted P2 roadmap
难度 5/5 一周以上 新手友好度 35/100
VectorInstitute/tabctx#104 ·
维护者通常 1 天内回复
-
area/api area/memory enhancement P1 roadmap
难度 5/5 一周以上 新手友好度 35/100
VectorInstitute/tabctx#103 ·
维护者通常 1 天内回复
查看 VectorInstitute/tabctx 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
its-me-prash/vwgroup-connect-ha#2019 ·
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 86/100
KonstantinStarovoytov/kitden#21 ·
维护者通常 1 天内回复
-
Refactor未关闭
难度 2/5 1-3 小时 新手友好度 62/100
ehmatthes/gh-profiler#166 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
smart-on-fhir/smart-fetch#73 ·
-
good first issue help wanted
难度 1/5 1-3 小时 新手友好度 85/100
RizgarOzan/playcal#13 ·