Answer questions based on a given context for applications like customer support, information retrieval, and educational tools
Basic usage
Send a question with context to a model to generate an answer:
Copy
import Bytez from 'bytez.js'const sdk = new Bytez("BYTEZ_KEY");const model = sdk.model("cloudqi/deepset/roberta-base-squad2");await model.create()const { error, output } = await model.run({ question: "Where does Holly live?", context: "My name is Holly and I live in NYC"});console.log({ error, output })