{ "document": { "source": "tests/lathe.md", "objective": "Technical documentation for lathe rebuilding process", "recommended_splitters": [ "chapter", "component", "code_block", "diagram" ], "total_lines": 246, "segments": [ { "type": "chapter", "title": "Steps to Rebuild a Lathe", "location": { "start_line": 1, "end_line": 47 }, "components": [ { "type": "mermaid_diagram", "content": "flowchart", "location": { "start_line": 5, "end_line": 16 }, "quality_score": 0.9 }, { "type": "process_steps", "content": "10 numbered steps", "location": { "start_line": 18, "end_line": 47 }, "quality_score": 0.95, "context_importance": "high" } ], "quality_score": 0.95, "context_importance": "critical" }, { "type": "chapter", "title": "Required Tools and Equipment", "location": { "start_line": 49, "end_line": 85 }, "components": [ { "type": "mermaid_diagram", "content": "mindmap", "location": { "start_line": 51, "end_line": 66 }, "quality_score": 0.85 }, { "type": "table", "content": "tools table", "location": { "start_line": 68, "end_line": 85 }, "quality_score": 0.9 } ], "quality_score": 0.9, "context_importance": "high" }, { "type": "chapter", "title": "Lathe Component Structure", "location": { "start_line": 87, "end_line": 99 }, "components": [ { "type": "mermaid_diagram", "content": "erDiagram", "location": { "start_line": 89, "end_line": 99 }, "quality_score": 0.9 } ], "quality_score": 0.9, "context_importance": "medium" }, { "type": "chapter", "title": "Additional Resources", "location": { "start_line": 101, "end_line": 105 }, "components": [ { "type": "links", "content": "external resources", "location": { "start_line": 103, "end_line": 105 }, "quality_score": 0.7 } ], "quality_score": 0.7, "context_importance": "low" }, { "type": "chapter", "title": "Diagnostic Code Examples", "location": { "start_line": 107, "end_line": 246 }, "components": [ { "type": "code_block", "language": "typescript", "title": "Measuring Backlash", "location": { "start_line": 111, "end_line": 136 }, "quality_score": 0.95 }, { "type": "code_block", "language": "typescript", "title": "Wear Rate Calculation", "location": { "start_line": 138, "end_line": 168 }, "quality_score": 0.95 }, { "type": "code_block", "language": "typescript", "title": "Alignment Verification", "location": { "start_line": 170, "end_line": 195 }, "quality_score": 0.95 }, { "type": "code_block", "language": "typescript", "title": "Temperature Monitoring", "location": { "start_line": 197, "end_line": 246 }, "quality_score": 0.95 } ], "quality_score": 0.95, "context_importance": "high" } ], "splitting_recommendations": [ { "purpose": "General understanding", "method": "chapter", "rationale": "Natural document structure with clear context boundaries" }, { "purpose": "Code analysis", "method": "code_block", "rationale": "Isolated typescript implementations for specific functionality" }, { "purpose": "Visual comprehension", "method": "diagram", "rationale": "Self-contained mermaid diagrams explaining different aspects" }, { "purpose": "Component reference", "method": "component", "rationale": "Logical grouping of related content (diagrams, tables, code)" } ] } }