openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Memory: ingest images into the brain (description and text from PNG/JPEG/WebP/HEIC)

Open CodeGhost21 opened this issue 1 month ago • 4 comments

Problem

Adding an image to the brain fails today. OpenHuman's document converter chain (crates/openhuman-core/src/memory/convert.rs, TinyMemory's ConverterChain) has converters for plain text, HTML and Markdown, and, since #7034, PDF, Word, PowerPoint and Excel. No converter claims an image, so the chain answers UnsupportedFormat, and the image is not stored.

#6718 listed blob_ref extraction for images ("the chat model for images") as an ingest path. It was not built, and this issue tracks it on its own so #6718 can close.

What is needed

  • A converter for common image formats (PNG, JPEG, WebP, HEIC at least) that produces text the brain can index:
    • a description of the image;
    • any text in it (screenshots, scanned pages, whiteboards).
  • A decision on how that text is produced:
    • a vision model through the existing inference path, which costs credits per image and adds latency; or
    • local OCR, which is cheaper but has no description, and adds a native dependency. That must stay out of the always-on kernel floor (scripts/kernel-floor.limits).
  • Long work goes off the request path, like the Office converter does (spawn_blocking / a background job).
  • A clear error for formats that are still unsupported, shown to the user rather than a silent drop.
  • Tests: a fixture per format, a failure case, and a check that the cost of each ingest is known.

Open questions

  • Should a scanned PDF (image-only pages) go through the same path?
  • What happens to PII redaction on text taken out of images?
  • What are the size and dimension limits per image?

Related

  • #6718, which is closing; this is the one ingest path it moves out.
  • #7034, which added PDF and Office ingest.
  • #7023, which measures per-ingest cost.

CodeGhost21 avatar Oct 07 '26 10:10 CodeGhost21

Image ingest (PNG/JPEG/WebP/HEIC) into memory: needs a converter producing text via vision model or OCR, plus limits and error handling. This is a new functionality request, not a bug.

Labelled priority: p3.

tinysweeper avatar Oct 07 '26 10:10 tinysweeper

@CodeGhost21 @senamakel @M3gA-Mind can i take this feature request

aryash45 avatar Oct 07 '26 16:10 aryash45

Triage: needs opinion — “Memory: ingest images into the brain (description and text from PNG/JPEG/WebP/HEIC)” needs a maintainer decision on product scope/priority or fresh reproduction evidence before its status can be settled. Please advise whether to pursue, narrow, or close it.

senamakel avatar Oct 09 '26 17:10 senamakel

We re-checked against current main: images still aren't ingested into the brain. No converter claims PNG, JPEG, WebP or HEIC, so they're refused as an unsupported format. A maintainer needs to settle the open questions in the issue (vision model or local OCR, PII handling, size limits) before work starts. @aryash45 offered to take this, so the decision can go here.

M3gA-Mind avatar Nov 16 '26 16:11 M3gA-Mind