Skip to content

v0.4.2 — rag_hook uses RagResult.context directly

Choose a tag to compare

@silversurfer562 silversurfer562 released this 19 Apr 16:03
· 67 commits to main since this release

Consumer-side cleanup surfaced by a deep review of the RAG integration points.

Changed

  • rag_hook.ground_polish_context now reads RagResult.context directly instead of rebuilding the context block via pipeline.corpus.get() + attune_rag.retrieval.RetrievalHit + attune_rag.prompts.join_context. attune-rag 0.1.3+ already exposes the pre-joined context on its result object; the old _hits_from_citation helper duplicated that work and held a fragile dependency on three internal attune-rag symbols. Deleting it drops 3 medium-risk rows from attune-author's attune-rag API surface. Automatic side benefit: the hook now picks up attune-rag 0.1.4's citation-numbered passage format without any code changes.

Verified

  • 497 tests pass, 31 skipped.

Install

pip install attune-author==0.4.2