umBRELA
📟 Instructions
Create Conda Environment
conda create -n umbrela python=3.10
conda activate umbrela
If you do not already have JDK 21 installed, install via conda:
conda install -c conda-forge openjdk=21 maven -y
Install following dependencies for retrieval:
conda install -c pytorch faiss-cpu pytorch -y
Install Dependencies
pip install -r requirements.txt
Judgment generation snippet
Setting up the model jugde:
from umbrela.vicuna_judge import VicunaJudge
judge_vicuna = VicunaJudge("dl19-passage")
Passing qrel-passages for evaluations:
input_dict = {
"query": {"text": "how long is life cycle of flea", "qid": "264014"},
"candidates": [
{
"doc": {
"segment": "The life cycle of a flea can last anywhere from 20 days to an entire year. It depends on how long the flea remains in the dormant stage (eggs, larvae, pupa). Outside influences, such as weather, affect the flea cycle. A female flea can lay around 20 to 25 eggs in one day."
},
"docid": "4834547",
"score": 14.971799850463867,
},
]
}
judgments = judge_vicuna.judge(input_dict)
🙏 Acknowledgments
This research is supported in part by the Natural Sciences and Engineering Research Council (NSERC) of Canada.
Metadata
Release files for umbrela 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| umbrela-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for umbrela-0.0.7-py3-none-any.whl |
Release files / umbrela-0.0.7-py3-none-any.whl
| Download URL | umbrela-0.0.7-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c193acd1d3cece6d976eb75d3b71a4e77734de8b8ba5035aed00dec667a5f6ff
|
|
BLAKE2b-256 checksum How to use checksums |
c9db83fac13f1fa7d403c2ed655bd17e6e2fc88f6e9046da9a7e593020a40961
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.14
|
Security for umbrela 0.0.7
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.