Spaces:
Running
Running
Commit
·
fae80e2
1
Parent(s):
34cedd8
Update CLAUDE.md with reasoning trace support documentation
Browse files- Document new reasoning trace detection and display features
- Add implementation details for reasoning-parser.js module
- List supported datasets and UI components
- Include feature descriptions and technical details
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
CLAUDE.md
CHANGED
|
@@ -8,6 +8,35 @@ OCR Text Explorer is a modern, standalone web application for browsing and compa
|
|
| 8 |
|
| 9 |
## Recent Updates
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
### Markdown Rendering Support (Added 2025-08-01)
|
| 12 |
|
| 13 |
The application now supports rendering markdown-formatted VLM output for improved readability:
|
|
|
|
| 8 |
|
| 9 |
## Recent Updates
|
| 10 |
|
| 11 |
+
### Reasoning Trace Support (Added 2025-08-07)
|
| 12 |
+
|
| 13 |
+
The application now supports displaying reasoning traces from models like NuMarkdown-8B-Thinking that include their analysis process in the output:
|
| 14 |
+
|
| 15 |
+
**Features:**
|
| 16 |
+
- Automatic detection of `<think>` and `<answer>` XML-like tags in improved text
|
| 17 |
+
- Collapsible "Model Reasoning" panel showing the model's thought process
|
| 18 |
+
- Clean separation of reasoning from final output for better readability
|
| 19 |
+
- Reasoning statistics (word count, percentage of total output)
|
| 20 |
+
- Support for formatted reasoning steps with numbered analysis points
|
| 21 |
+
- "Reasoning Trace" badge indicator in the statistics panel
|
| 22 |
+
|
| 23 |
+
**Implementation Details:**
|
| 24 |
+
- New `reasoning-parser.js` module handles detection and parsing of reasoning traces
|
| 25 |
+
- Supports multiple reasoning formats (`<think>`, `<thinking>`, `<reasoning>` tags)
|
| 26 |
+
- Formats numbered steps from reasoning content for structured display
|
| 27 |
+
- Caches parsed reasoning to avoid reprocessing
|
| 28 |
+
- Exports include optional reasoning trace content
|
| 29 |
+
|
| 30 |
+
**Supported Datasets:**
|
| 31 |
+
- `davanstrien/india-medical-ocr-test` - Medical documents processed with NuMarkdown-8B-Thinking
|
| 32 |
+
- Any dataset with reasoning traces in supported XML-like formats
|
| 33 |
+
|
| 34 |
+
**UI Components:**
|
| 35 |
+
- Collapsible reasoning panel with smooth animations
|
| 36 |
+
- Step-by-step reasoning display with numbered indicators
|
| 37 |
+
- "Final Output" label when reasoning is present
|
| 38 |
+
- Dark mode optimized styling for reasoning sections
|
| 39 |
+
|
| 40 |
### Markdown Rendering Support (Added 2025-08-01)
|
| 41 |
|
| 42 |
The application now supports rendering markdown-formatted VLM output for improved readability:
|