diff --git a/README.md b/README.md index 63b4531..1eca369 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,8 @@ that makes it simple to ask questions of documents and (2) a `Document` abstract to feed into the pipeline. ```python ->>> from docquery import document, pipeline ->>> p = pipeline('document-question-answering') +>>> from docqa import document, pipeline +>>> p = pipeline.get_pipeline() >>> doc = document.load_document("/path/to/document.pdf") >>> for q in ["What is the invoice number?", "What is the invoice total?"]: ... print(q, p(question=q, **doc.context))