mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-04-29 10:06:21 +02:00
Restructure examples directory and improve document storage (#189)
* Consolidate tests/ into examples/documents/ * Add line_count and reorder structure keys * Lazy-load documents with _meta.json index * Update demo script and add pre-shipped workspace * Extract shared helpers for JSON reading and meta entry building
This commit is contained in:
parent
74e549a23a
commit
77722838e1
26 changed files with 430 additions and 61 deletions
|
|
@ -0,0 +1,83 @@
|
|||
{
|
||||
"doc_name": "2023-annual-report-truncated.pdf",
|
||||
"structure": [
|
||||
{
|
||||
"title": "Preface",
|
||||
"start_index": 1,
|
||||
"end_index": 4,
|
||||
"node_id": "0000"
|
||||
},
|
||||
{
|
||||
"title": "About the Federal Reserve",
|
||||
"start_index": 5,
|
||||
"end_index": 7,
|
||||
"node_id": "0001"
|
||||
},
|
||||
{
|
||||
"title": "Overview",
|
||||
"start_index": 7,
|
||||
"end_index": 8,
|
||||
"node_id": "0002"
|
||||
},
|
||||
{
|
||||
"title": "Monetary Policy and Economic Developments",
|
||||
"start_index": 9,
|
||||
"end_index": 9,
|
||||
"nodes": [
|
||||
{
|
||||
"title": "March 2024 Summary",
|
||||
"start_index": 9,
|
||||
"end_index": 14,
|
||||
"node_id": "0004"
|
||||
},
|
||||
{
|
||||
"title": "June 2023 Summary",
|
||||
"start_index": 15,
|
||||
"end_index": 20,
|
||||
"node_id": "0005"
|
||||
}
|
||||
],
|
||||
"node_id": "0003"
|
||||
},
|
||||
{
|
||||
"title": "Financial Stability",
|
||||
"start_index": 21,
|
||||
"end_index": 21,
|
||||
"nodes": [
|
||||
{
|
||||
"title": "Monitoring Financial Vulnerabilities",
|
||||
"start_index": 22,
|
||||
"end_index": 28,
|
||||
"node_id": "0007"
|
||||
},
|
||||
{
|
||||
"title": "Domestic and International Cooperation and Coordination",
|
||||
"start_index": 28,
|
||||
"end_index": 30,
|
||||
"node_id": "0008"
|
||||
}
|
||||
],
|
||||
"node_id": "0006"
|
||||
},
|
||||
{
|
||||
"title": "Supervision and Regulation",
|
||||
"start_index": 31,
|
||||
"end_index": 32,
|
||||
"nodes": [
|
||||
{
|
||||
"title": "Supervised and Regulated Institutions",
|
||||
"start_index": 32,
|
||||
"end_index": 35,
|
||||
"node_id": "0010"
|
||||
},
|
||||
{
|
||||
"title": "Supervisory Developments",
|
||||
"start_index": 35,
|
||||
"end_index": 50,
|
||||
"node_id": "0011"
|
||||
}
|
||||
],
|
||||
"node_id": "0009"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue