Answer questions based on document content for tasks like contract analysis, document understanding, and information retrieval.

Quickstart

Answer Questions from a Document

Send an image of a document along with a question to get relevant answers.

import Bytez from "bytez.js";

const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
const model = client.model("cloudqi/CQI_Visual_Question_Awnser_PT_v0");

const input = {
  image: "https://templates.invoicehome.com/invoice-template-us-neat-750px.png",
  question: "How many hours of labor?"
};

const { error, output } = await model.run(input);

if (error) {
  console.error("Error:", error);
} else {
  const [{ answer, score, start, end }] = output;
  console.log({ answer, score, start, end });
}

Demo