-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlib.rs
More file actions
55 lines (50 loc) · 1.82 KB
/
Copy pathlib.rs
File metadata and controls
55 lines (50 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright (c) 2026 vectorless developers
// SPDX-License-Identifier: Apache-2.0
//! Document types - pure data structures for document tree representation.
//!
//! This module contains the core types that represent hierarchical documents.
//! These types have no dependencies on compile or retrieval logic.
//!
//! # Types
//!
//! - [`TreeNode`] - A node in the document tree
//! - [`DocumentTree`] - Arena-based tree structure
//! - [`NodeId`] - Unique identifier for tree nodes
//! - [`TocView`] - Table of Contents generator
//! - [`StructureNode`] - JSON export structure
//! - [`NodeReference`] - In-document reference (e.g., "see Appendix G")
//! - [`RefType`] - Type of reference (Section, Appendix, Table, etc.)
mod format;
mod navigation;
mod node;
mod reasoning;
mod reference;
mod serde_helpers;
mod structure;
mod toc;
mod tree;
pub mod understanding;
// New: Agent acceleration types
mod chain;
mod evidence;
mod overlap;
mod query_route;
pub use format::DocumentFormat;
pub use navigation::{ChildRoute, DocCard, NavEntry, NavigationIndex, SectionCard};
pub use node::{NodeId, TreeNode};
pub use reasoning::{
ReasoningIndex, ReasoningIndexBuilder, ReasoningIndexConfig, SectionSummary, SummaryShortcut,
TopicEntry,
};
pub use reference::{NodeReference, RefType, ReferenceExtractor};
pub use structure::{DocumentStructure, StructureNode};
pub use toc::{TocConfig, TocEntry, TocNode, TocView};
pub use tree::{DocumentTree, RetrievalIndex};
pub use understanding::{
CURRENT_SCHEMA_VERSION, Concept, Document, DocumentInfo, DocumentMeta, IngestInput,
};
// Re-export agent acceleration types
pub use chain::{ChainIndex, ChainType, ReasoningChain};
pub use evidence::{EvidenceScore, EvidenceScoreMap};
pub use overlap::{ContentOverlapMap, OverlapEntry, OverlapType};
pub use query_route::{ConceptRoute, QueryRoutingTable, RouteTarget};