Repository navigation
Match visual page discovery by page_nums across shared boundaries - #484
Merged
Merged
Conversation
- Removed unused `StagedEnrichment` class and related functionality to streamline the enrichment process. - Updated tests to reflect changes in scope handling and ensure accurate task enqueuing. - Adjusted publication logic to enhance the efficiency of namespace generation and document scope content replacement. - Improved documentation for clarity on the progressive ingestion state and job creation processes.
- Updated test cases to reflect changes in chunk content and metadata for better accuracy in visual page discovery. - Improved SQL queries for visual discovery to utilize materialized views, optimizing performance and clarity. - Adjusted logic for handling page numbers and chunk ownership to ensure correct retrieval across sections. - Enhanced assertions in tests to validate the expected behavior of visual discovery with boundary pages.
Remove an unused test import and type the vector_repair stage update so lint and typecheck stay green. Co-authored-by: Cursor <[email protected]>
1 of 2 tasks
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.
Summary
document_page_embeddings.chunk_idownership: join bypage_num ∈ chunk.page_numsso shared boundary pages (section end + next section start) light both neighbors.chunk_idcolumn during publication.StagedEnrichmentremoval / related publication wiring) and add local-dev debug helpers.Test plan
make checkapps/api/tests/contract/test_scope_enrichment_publish_contract.pyboundary visual M0/coarse assertionssection_targetsreturns pages[638..643]including opening page 638; Appendix A neighbor also keeps 638Made with Cursor