Example: Question Answering
>>> from transformers import pipeline
>>> qa_model = pipeline("question-answering")qa_model(
question="Where are the best cookies?",
context="The best cookies are in Aporia's office."
)
# ==> {'score': 0.8362494111061096,
# 'start': 24,
# 'end': 39,
# 'answer': "Aporia's office"}Extract Embeddings
Storing your Predictions
id
question (text)
context (text)
embeddings (embedding)
answer (text)
score (numeric)
timestamp (datetime)
Schema mapping
Next steps
Last updated