Skip to content

query contains both text and images #369

Open

Description

@HZWHH

Could you tell me how to handle it if a query contains both text and images? Do you have any relevant examples? Thank you.

Activity

  1. athrael-soju commented on Feb 13, 2026

    @athrael-soju
    Contributor

    @HZWHH Good question! These models work a bit differently from general-purpose vision-language models. They're designed so that documents are processed as images and queries are processed as text, so there isn't a built-in way to pass both text and images as a query.

    That said, if what you're looking for is "find me pages that look like this image", you can embed your query image the same way you'd embed a document and compare it directly against your index. That works out of the box.

    Hope that helps!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions