Repository navigation
feat(biome): add traceable article chunk context - #42
Merged
iihimanshuu merged 1 commit intoAug 23, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request description
Complete the traceable context-output portion of chunk-aware retrieval.
Chunk-aware lexical retrieval, filtering, result limits, and provenance
resolution are already available on
main. This PR adds the remainingstandalone context-generation APIs required by Issue #28.
This PR:
hphbiomeAPI;Closes #28
How to test these changes
Run the focused context and chunk-retrieval tests:
py -3.13 -m pytest tests/test_context.py tests/test_chunk_retrieval.py -q -p no:xonshRun the complete test suite:
py -3.13 -m pytest --cov=hphbiome --cov=hphbiome_hiperhealth --cov-fail-under=92 --cov-report term-missing --no-cov-on-fail -p no:xonsh -qRun Ruff:
py -3.13 -m ruff check packages testsVerify formatting:
py -3.13 -m ruff format --check packages testsRun mypy:
py -3.13 -m mypy packages/hphbiome/src packages/hphbiome-hiperhealth/srcRun pre-commit against the changed files:
py -3.13 -m pre_commit run --files packages/hphbiome/src/hphbiome/context.py packages/hphbiome/src/hphbiome/__init__.py tests/test_context.py --verbosePull Request checklists
This PR is a:
About this PR:
Author's checklist:
Additional information
The full test suite passes with 269 tests and 99.85% coverage.
No external dependency, HiperHealth integration change, medical claim, PHI,
semantic search, embedding, or retrieval-algorithm change is included.
Existing record-level retrieval and context APIs remain backward compatible.