Huggingface.js documentation

Interface: DocumentQuestionAnsweringOutput

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: DocumentQuestionAnsweringOutput

Properties

answer

answer: string

A string that’s the answer within the document.

Defined in

inference/src/tasks/multimodal/documentQuestionAnswering.ts:24


end

Optional end: number

?

Defined in

inference/src/tasks/multimodal/documentQuestionAnswering.ts:28


score

Optional score: number

A float that represents how likely that the answer is correct

Defined in

inference/src/tasks/multimodal/documentQuestionAnswering.ts:32


start

Optional start: number

?

Defined in

inference/src/tasks/multimodal/documentQuestionAnswering.ts:36

< > Update on GitHub