UNPKG

pdf-ocr-cli

Version:

A CLI tool for OCR processing of PDF files using Mistral API with optional LLM verification

14 lines (13 loc) 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_SLEEP = exports.DEFAULT_CONCURRENCY = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_RETRY_DELAY = exports.DEFAULT_TIMEOUT = exports.DEFAULT_TOP_P = exports.DEFAULT_TEMPERATURE = exports.DEFAULT_MAX_TOKENS = exports.VERIFICATION_SYSTEM_PROMPT = exports.VERIFICATION_MODEL = void 0; exports.VERIFICATION_MODEL = 'meta-llama/Llama-3.3-70B-Instruct-Turbo-Free'; exports.VERIFICATION_SYSTEM_PROMPT = 'You are an expert OCR text corrector. Your task is to fix errors in OCR-generated text while preserving the original meaning and structure. IMPORTANT: Your response should contain ONLY the corrected text without any explanations, comments, or additional formatting. Do not include phrases like "Here is the corrected text:" or any other commentary. Simply output the clean, corrected text that can be directly used by the system.'; exports.DEFAULT_MAX_TOKENS = 1000; exports.DEFAULT_TEMPERATURE = 0.7; exports.DEFAULT_TOP_P = 0.9; exports.DEFAULT_TIMEOUT = 30000; exports.DEFAULT_RETRY_DELAY = 1000; exports.DEFAULT_MAX_RETRIES = 3; exports.DEFAULT_CONCURRENCY = 2; exports.DEFAULT_SLEEP = 5000;