Skip to content

Optional parsers: auto-detect + friendly install prompt #14

Description

@RobertsRobots

Context. pdf, docx, and image-OCR parsing in ingest/parse.ts use optional, lazily-loaded libs (pdf-parse, mammoth, tesseract.js) not in package.json by default. Today an unsupported file fails with a generic message.

What to do. Detect when a file needs an uninstalled parser and surface a clear, actionable prompt (npm i pdf-parse …) in both the API response and the drag-and-drop UI. Optionally a one-click "enable rich file parsing" that installs the trio.

Acceptance. Dropping a PDF without the parser installed yields an obvious "install X to enable PDF" message instead of a silent failure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dxTooling / CI / tests / setuphelp wantedBigger lift, help appreciated

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions