You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add page-preserving tree construction and agentic navigation for supported financial long documents: papers, filings, transcripts, and reports.
This complements semantic search rather than replacing it:
semantic search finds candidates across a collection;
agentic navigation reasons through one candidate document's hierarchy.
The semantic baseline in #111 and its paper integration in #112 land first.
Motivation
Long financial documents do not fit in one extraction pass, and flat chunks lose document structure and page provenance. A page-anchored TreeKnowledge provides:
structure-aware navigation through titles and summaries;
page-anchored evidence through canonical citations;
one shared tree contract across supported financial document types.
VectifyAI/PageIndex validates the approach, but implementation choice remains open. Reuse or adapt low-level PageIndex mechanics where useful while preserving QuantMind's own tree, time, provenance, and citation contracts.
Ownership
preprocess/: preserve page boundaries and deterministic outline signals.
knowledge/: reuse TreeKnowledge, TreeNode, and Citation; do not add a second PageIndexNode tree model. Extend Citation with optional end_page: page is the 1-based inclusive start, an omitted end means one page, and a present end must satisfy end_page >= page.
flows/: build/enrich canonical trees and summaries with the Agents SDK.
Per-domain public extraction names must follow docs/design/en/operations.md; shared enrichment helpers remain private. Results identify canonical item/node IDs and page evidence; they do not expose a provider-specific response type.
Builds a valid canonical TreeKnowledge without a second tree schema.
Keeps deterministic page/outline work free of LLM calls.
Keeps summary enrichment in flows/ and navigation in mind/navigation/.
Depends on Tracking: Migrate Agent layer to OpenAI Agents SDK #71 for a mind scaffold and import-linter boundary. If that scaffold has not landed, this issue adds the minimal package and enforces mind -> library -> knowledge without persistence/index ownership in mind.
Returns canonical node IDs plus page-anchored evidence.
Reuses LocalKnowledgeLibrary for persistence or semantic shortlist when needed.
Includes offline tests and one focused example.
Compares navigation quality with the semantic baseline on a bounded financial-document fixture.
Functions over class hierarchies; no generic retriever abstraction.
Standard parsing without OCR is acceptable for V1.
The implementation may reuse PageIndex code or concepts subject to license, dependency, and contract review; do not commit to reimplementing commodity mechanics before that review.
Feature Summary
Add page-preserving tree construction and agentic navigation for supported financial long documents: papers, filings, transcripts, and reports.
This complements semantic search rather than replacing it:
The semantic baseline in #111 and its paper integration in #112 land first.
Motivation
Long financial documents do not fit in one extraction pass, and flat chunks lose document structure and page provenance. A page-anchored
TreeKnowledgeprovides:VectifyAI/PageIndex validates the approach, but implementation choice remains open. Reuse or adapt low-level PageIndex mechanics where useful while preserving QuantMind's own tree, time, provenance, and citation contracts.
Ownership
preprocess/: preserve page boundaries and deterministic outline signals.knowledge/: reuseTreeKnowledge,TreeNode, andCitation; do not add a secondPageIndexNodetree model. ExtendCitationwith optionalend_page:pageis the 1-based inclusive start, an omitted end means one page, and a present end must satisfyend_page >= page.flows/: build/enrich canonical trees and summaries with the Agents SDK.library/: persist canonical trees and provide semantic candidates through feat(library): local semantic knowledge library MVP #111; this issue adds no second store or semantic index.mind/navigation/: perform agentic traversal over titles and summaries.flows/or an agent application: optionally compose semantic shortlist and tree navigation after both primitives exist.API Direction
Per-domain public extraction names must follow
docs/design/en/operations.md; shared enrichment helpers remain private. Results identify canonical item/node IDs and page evidence; they do not expose a provider-specific response type.Acceptance Criteria
page <= end_pagewhen an end is present.TreeKnowledgewithout a second tree schema.flows/and navigation inmind/navigation/.mindscaffold and import-linter boundary. If that scaffold has not landed, this issue adds the minimal package and enforcesmind -> library -> knowledgewithout persistence/index ownership inmind.LocalKnowledgeLibraryfor persistence or semantic shortlist when needed.scripts/verify.shpasses.Non-goals
PageIndexNodeor genericDocumentschemaRelated Issues
mindcognitive boundary.Implementation Considerations
Breaking Changes