Skip to content

feat: add context compaction hook - #12196

Draft
sjrl wants to merge 8 commits into
mainfrom
add-context-compaction
Draft

feat: add context compaction hook#12196
sjrl wants to merge 8 commits into
mainfrom
add-context-compaction

Conversation

@sjrl

@sjrl sjrl commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Related Issues

  • fixes #issue-number

Proposed Changes:

How did you test it?

Notes for the reviewer

Checklist

  • I have read the contributors guidelines and the code of conduct.
  • I have updated the related issue with new insights and changes.
  • I have added unit tests and updated the docstrings.
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
  • I have documented my code.
  • I have added a release note file, following the contributors guidelines.
  • I have run pre-commit hooks and fixed any issue.

@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
haystack-docs Ignored Ignored Preview Jul 30, 2026 1:56pm

Request Review

@sjrl sjrl self-assigned this Jul 30, 2026
@github-actions github-actions Bot added topic:tests type:documentation Improvements on the docs labels Jul 30, 2026
@sjrl
sjrl force-pushed the add-context-compaction branch from f150d3a to bc92e30 Compare July 30, 2026 12:47
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  haystack/hooks/compaction
  __init__.py
  hooks.py 178, 185, 190, 202-203
  sliding_window.py
  utils.py
  haystack/hooks/compaction/types
  __init__.py
  protocol.py
Project Total  

This report was generated by python-coverage-comment-action

@sjrl sjrl mentioned this pull request Jul 30, 2026
Base automatically changed from add-token-counters to main July 30, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic:tests type:documentation Improvements on the docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant