A research paper as a tree of sections. The tree's nodes carry per-section ``summary`` (for navigation) and, on leaves, the section ``content`` (Markdown). Top-level metadata (``arxiv_id``, ``authors``) lives here on the tree itself.
| 18 | model_validator, |
| 19 | ) |
| 20 | |
| 21 | from quantmind.knowledge._base import ArtifactMeta, Citation, SourceRef |
| 22 | from quantmind.knowledge._tree import ( |
| 23 | StructureTree, |
| 24 | StructureTreeValidationError, |
| 25 | TreeKnowledge, |
| 26 | TreeNode, |
| 27 | ) |
| 28 | |
| 29 | |
| 30 | class PaperArtifactKind(str, Enum): |
| 31 | """Closed paper-artifact discriminator accepted by Pydantic and JSON.""" |
| 32 | |
| 33 | CHUNK_SET = "paper_chunk_set" |
| 34 | GLOBAL_SUMMARY = "paper_summary" |
no outgoing calls