No project description provided
Project description
Structured-QA: a Blueprint by Mozilla.ai for answering questions about structured documents.
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.
📘 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 |
|---|---|---|
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
421a32d066ff79e08caea1a8005139dc31b5602da065391aa992267a9d50a9a9
|
|
| MD5 |
6d4d4dd4d96fbddb29fb3b9809e436f4
|
|
| BLAKE2b-256 |
c4e78e9d0684e3bd4dbad23fc69917dcb8344471b50834f59868441b84ddb30e
|
Provenance
The following attestation bundles were made for structured_qa-1.0.4.tar.gz:
Publisher:
release.yaml on mozilla-ai/structured-qa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
structured_qa-1.0.4.tar.gz -
Subject digest:
421a32d066ff79e08caea1a8005139dc31b5602da065391aa992267a9d50a9a9 - Sigstore transparency entry: 169353141
- Sigstore integration time:
-
Permalink:
mozilla-ai/structured-qa@a8cfab45fe5ca55a856ec5704230d5fb7e23e5fb -
Branch / Tag:
refs/tags/1.0.4 - Owner: https://github.com/mozilla-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@a8cfab45fe5ca55a856ec5704230d5fb7e23e5fb -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62927fb2d2bf059702a82518ff3be70e739834f63478cb4dc0191c5aa602e773
|
|
| MD5 |
c661cea692ab90ff28b8f57fd6ba1996
|
|
| BLAKE2b-256 |
e1b676359428e3e6526b9fa834b6e988c84d4032cc4cb472ecfde341892ea9ed
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
structured_qa-1.0.4-py3-none-any.whl -
Subject digest:
62927fb2d2bf059702a82518ff3be70e739834f63478cb4dc0191c5aa602e773 - Sigstore transparency entry: 169353143
- Sigstore integration time:
-
Permalink:
mozilla-ai/structured-qa@a8cfab45fe5ca55a856ec5704230d5fb7e23e5fb -
Branch / Tag:
refs/tags/1.0.4 - Owner: https://github.com/mozilla-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@a8cfab45fe5ca55a856ec5704230d5fb7e23e5fb -
Trigger Event:
release
-
Statement type: