Skip to main content

BCQA (Benchmarking Complex QA)

BCQA is a benchmark for a wide range of complex Qa tasks. It also aims to provide a easy to use framework for evaluating retrieval and reasoning approaches for answering complex multi-hop questions.

Setup

  1. Clone the repo
  2. Create a conda environment conda create -n bcqa
  3. pip install -e .

Running Evaluation

The evaluation scripts for retreival and LLMs are in the evaluation folder

For instance to run dpr retreival for Wikimultihopqa run
python3 evaluation/wikimultihop/run_dpr_inference.py

Before running the above script make sure you have configured the correct paths for the data and corpus files in evaluation/config.ini

Example: wikimultihopqa = /home/bcqa/BCQA/2wikimultihopQA
wikimultihopqa-corpus = /home/bcqa/BCQA/wiki_musique_corpus.json

Coding Practices

Auto-formatting code

  1. Install black: pip install black or conda install black
  2. In your IDE: Enable formatting on save.
  3. Install isort: pip install isort or conda install isort
  4. In your IDE: Enable sorting import on save.

In VS Code, you can do this using the following config:

{
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
        "source.organizeImports": true
    }
}

Type hints

Use type hints for everything! No exceptions.

Docstrings

Write a docstring for every function (except the main function). We use the Google format. In VS Code, you can use autoDocstring.

Example

def sum(a: float, b: float) -> float:
    """Compute the sum of a and b.

    Args:
        a (float): First number.
        b (float): Second number.
    
    Returns:
        float: The sum of a and b.
    """

    return a + b

Metadata

Release files for bcqa 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bcqa 1.1.4
File Size Uploaded Provenance Actions
bcqa-1.1.4.tar.gz 92.6 kB Without provenance Details for bcqa-1.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bcqa 1.1.4
File Interpreter ABI Platform Actions
bcqa-1.1.4-py3-none-any.whl Python 3 none any Details for bcqa-1.1.4-py3-none-any.whl

Total release size: 237.3 kB

Release files / bcqa-1.1.4.tar.gz

Download URL bcqa-1.1.4.tar.gz
Size 92.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d31652e2651c600e2c7f89041bb8ab7938828be3841845f030e157116a525a5b
BLAKE2b-256 checksum
How to use checksums
f6360e745920ef0437a5e4a2b3ce79968fea448ffa6cd43dc5f327464c08f512
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.4

Release files / bcqa-1.1.4-py3-none-any.whl

Download URL bcqa-1.1.4-py3-none-any.whl
Size 144.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25a03667978202e2a7eca49bd0dd07444f55274566fe10c05d3c902ca40498ce
BLAKE2b-256 checksum
How to use checksums
78d03e83b61fc1ccda5c21998a28c3b27dd8a231ef39bec504ea26194b322c0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.11.4

Security for bcqa 1.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page