feat(ocr): added reducto and pulse for OCR#2843
Merged
waleedlatif1 merged 2 commits intostagingfrom Jan 16, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile SummaryThis PR adds two new OCR tools—Reducto and Pulse—for extracting text from documents. Both implementations follow the established patterns in the codebase with proper authentication, file access verification, and comprehensive type definitions. Key additions:
Implementation highlights:
The code is well-structured, follows existing patterns, and includes appropriate error handling. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Block as Reducto/Pulse Block
participant Parser as Parser Tool
participant APIRoute as API Route
participant Auth as Authentication
participant Storage as File Storage
participant OCR as OCR API
User->>Block: Configure with file and settings
Block->>Parser: Invoke tool with parameters
Parser->>Parser: Validate inputs
Parser->>APIRoute: POST to parse endpoint
APIRoute->>Auth: Verify user authentication
Auth-->>APIRoute: Authentication successful
alt Internal workspace file
APIRoute->>Storage: Extract storage information
APIRoute->>Auth: Check file permissions
Auth-->>APIRoute: Permission granted
APIRoute->>Storage: Generate temporary download URL
Storage-->>APIRoute: Return temporary URL
else External file URL
APIRoute->>APIRoute: Use provided URL
end
APIRoute->>OCR: Send file for processing
OCR-->>APIRoute: Return extracted content
APIRoute->>Parser: Return results
Parser->>Parser: Transform response
Parser-->>Block: Deliver output
Block-->>User: Show extracted text
|
Collaborator
Author
|
@greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Tested manually
Checklist