Skip to content

DocumentToImageContent component #9263

@anakin87

Description

@anakin87

We should make an additional component to FileToImageContent called DocumentToImageContent which allows passing of Document objects directly along with specifying the meta field where you'll find the image path.

An additional requirement here is that we should also support looking for a meta field called page_number. In the situation of supporting PDFs we rarely want to send the whole PDF to the vision LLM, but rather a single page (or even maybe a few pages).

Depends on #9258.

@sjrl has background on this.

Metadata

Metadata

Assignees

Labels

P1High priority, add to the next sprint

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions