You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix UTF-8 encoding: Replace mojibake token string with correct
fullwidth characters for end-of-sentence detection
- Update NGram parameters: ngram_size=20, window_size=50 for more
aggressive repeat prevention (matching custom_run_dpsk_ocr_pdf.py)
- Fix default prompts: Use proper grounding prompt from config instead
of bare <image> tag
- Add CLAUDE.md with project documentation for Claude Code
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+
## Project Overview
6
+
7
+
DeepSeek OCR Pipeline - A production-ready OCR solution using DeepSeek-OCR with AWS CDK, ECS on GPU instances (g4dn.xlarge), and A2I human review workflows. This is a hybrid architecture combining the Bogdanovich77 DeepSeek-OCR Docker implementation with AWS orchestration.
8
+
9
+
## Common Commands
10
+
11
+
```bash
12
+
# Install dependencies
13
+
npm install
14
+
15
+
# Build (compile + lint + synth)
16
+
npm run build
17
+
18
+
# Run linting
19
+
npm run eslint
20
+
21
+
# Synthesize CDK templates
22
+
npm run synth
23
+
24
+
# Deploy to dev environment (requires STAGE=dev env var)
25
+
STAGE=dev npm run deploy:dev
26
+
27
+
# Deploy with specific profile
28
+
npm run deploy-dev # uses --profile dev
29
+
npm run deploy-prod # uses --profile prod
30
+
31
+
# Build Docker image locally
32
+
npm run build-docker
33
+
34
+
# View CDK diff
35
+
npm run diff
36
+
37
+
# Watch mode (hotswap deploys)
38
+
npm run watch
39
+
40
+
# Destroy dev stacks
41
+
STAGE=dev npm run destroy:dev
42
+
```
43
+
44
+
## Architecture
45
+
46
+
### CDK Stage Structure
47
+
48
+
The app uses a single stage (`DevStage`) defined in `src/lib/stages.ts` that orchestrates six stacks:
49
+
50
+
1.**KmsStack** - Encryption keys for all resources
51
+
2.**NetworkingStack** - VPC with public/private/isolated subnets across 3 AZs
This project is managed by Projen. Configuration is in `.projenrc.ts`. After modifying `.projenrc.ts`, run `npx projen` to regenerate project files. Do not manually edit generated files (marked with `// ~~ Generated by projen`).
0 commit comments