Skip to content

fix(cache): partition KG answers by chunk selection - #3877

Open
Shizoqua wants to merge 1 commit into
HKUDS:mainfrom
Shizoqua:fix/query-cache-related-chunks
Open

fix(cache): partition KG answers by chunk selection#3877
Shizoqua wants to merge 1 commit into
HKUDS:mainfrom
Shizoqua:fix/query-cache-related-chunks

Conversation

@Shizoqua

@Shizoqua Shizoqua commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Partition KG answer-cache entries by chunk-selection configuration.

Problem

Changing related_chunk_number or kg_chunk_pick_method can change the retrieved context while reusing an answer cached under the previous configuration.

Changes

Include both settings in the KG answer-cache key and recorded cache metadata.

Testing

47 relevant query-cache tests passed. Ruff, pre-commit and git diff --check passed.

Compatibility and Risk

Low risk. Existing KG cache entries using the previous key will be bypassed.

Related Issue

No related issue.

Signed-off-by: Lanre Shittu <136805224+Shizoqua@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant