Want to have a nice know-it-all bot that can answer any question?
Usage
hf_question_answering_payload(question, context)
Arguments
- question
a question to be answered based on the provided context
- context
the context to consult for answering the question
Value
An inference payload
Examples
hf_question_answering_payload(
question = "What is R?",
context = "R is a language for statistical computing."
)
#> $inputs
#> $inputs$question
#> [1] "What is R?"
#>
#> $inputs$context
#> [1] "R is a language for statistical computing."
#>
#>