v0.4.2 — rag_hook uses RagResult.context directly
Consumer-side cleanup surfaced by a deep review of the RAG integration points.
Changed
rag_hook.ground_polish_contextnow readsRagResult.contextdirectly instead of rebuilding the context block viapipeline.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_citationhelper 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