Skip to main content

No project description provided

Project description

Project logo

Structured-QA: a Blueprint by Mozilla.ai for answering questions about structured documents.

Docs Tests Ruff

This Blueprint demonstrates how to use open-source models and a simple LLM workflow to answer questions based on structured documents.

It is designed to showcase a simpler alternative to more complex and/or resource demanding alternatives, such as RAG systems that rely on vectorDBs and/or long-context models with large token windows.

structure-qa Diagram

📘 To explore this project further and discover other Blueprints, visit the Blueprints Hub.

👉 📖 For more detailed guidance on using this project, please visit our Docs here.

Quick-start

Get started with structured-qa using one of the options below:

Google Colab HuggingFace Spaces GitHub Codespaces
Try on Colab Try on Spaces Try on Codespaces

You can also install and use the blueprint locally:

Command Line Interface

pip install structured-qa
structured-qa \
--question "What optimizer was used to train the model?" \
--input_file "example_data/1706.03762v7.pdf" \
--output_dir "example_outputs/1706.03762v7.pdf"

Graphical Interface App

git clone https://github.com/mozilla-ai/structured-qa.git
cd structured-qa
pip install -e .
python -m streamlit run demo/app.py

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

Contributing

Contributions are welcome! To get started, you can check out the CONTRIBUTING.md file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

structured_qa-1.0.4.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

structured_qa-1.0.4-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file structured_qa-1.0.4.tar.gz.

File metadata

  • Download URL: structured_qa-1.0.4.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for structured_qa-1.0.4.tar.gz
Algorithm Hash digest
SHA256 421a32d066ff79e08caea1a8005139dc31b5602da065391aa992267a9d50a9a9
MD5 6d4d4dd4d96fbddb29fb3b9809e436f4
BLAKE2b-256 c4e78e9d0684e3bd4dbad23fc69917dcb8344471b50834f59868441b84ddb30e

See more details on using hashes here.

Provenance

The following attestation bundles were made for structured_qa-1.0.4.tar.gz:

Publisher: release.yaml on mozilla-ai/structured-qa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file structured_qa-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: structured_qa-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for structured_qa-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 62927fb2d2bf059702a82518ff3be70e739834f63478cb4dc0191c5aa602e773
MD5 c661cea692ab90ff28b8f57fd6ba1996
BLAKE2b-256 e1b676359428e3e6526b9fa834b6e988c84d4032cc4cb472ecfde341892ea9ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for structured_qa-1.0.4-py3-none-any.whl:

Publisher: release.yaml on mozilla-ai/structured-qa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page