Skip to content

fix(indexing): honor document descriptions without node summaries - #717

Open
DivyamTalwar wants to merge 1 commit into
VectifyAI:mainfrom
DivyamTalwar:fix/document-description-without-summaries
Open

DivyamTalwar wants to merge 1 commit into
VectifyAI:mainfrom
DivyamTalwar:fix/document-description-without-summaries

Conversation

@DivyamTalwar

Copy link
Copy Markdown

Summary

Markdown and standard PDF indexing accept separate options for a document description and node summaries. Both previously skipped an explicitly requested description when node summaries were disabled. This lets a caller request one description from the outline without paying for per-node summaries.

Standard PDF indexing includes the heading hierarchy in the description prompt when there are no summaries. It still uses top-level summaries when available. Both builders use the existing summary-model selection and preserve the output fields.

Validation

  • Both new public-entry-point tests reproduced the missing doc_description on main and pass with the fix. The PDF outline parser and model calls are mocked to verify the flags, input structure, and chosen model without sending requests.
  • 40 tests passed across test_page_index_md.py, test_page_index.py, and test_tree_format.py.
  • git diff --check passes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants