ENCOURAGE
Project description
EncouRAGe
the all-in one solution for evaluate RAG methods.
About
This repository provides a flexible library for running Retrieval-Augmented Generation (RAG) methods and evaluate them. It is designed to be modular and extensible, allowing users to easily integrate their own data and test them on RAG methods and calculate metrics.
Overview
The following libraries are used to provide the core functionality:
For Inference Runners:
- 🏃 vllm
- A fast and flexible framework for LLM inference.
For Templates:
- ⚙️ jinja2
- Offers a template engine for dynamic prompt generation.
For Evaluation Metrics:
- 📊 evaluate
- A library for easily accessing and computing a wide range of evaluation metrics.
For Vector Databases:
- 🔄 chroma
- Strong in-memory vector database for efficient data retrieval.
- 🧭 qdrant
- Supports robust vector search for efficient data retrieval.
🚀 Getting Started
pip install encourage-rag
To initialize the environment using uv, run the following command:
uv sync
⚡ Usage Inference Runners
For understanding how to use the inference runners, refer to the following tutorials:
🔍 RAG Methods
Encourage provides several RAG (Retrieval-Augmented Generation) methods to enhance your LLM responses with relevant context:
📊 Evaluation Metrics
Encourage offers a comprehensive set of metrics for evaluating LLM and RAG performance:
- Metrics Overview - Table of all available metrics
- Metrics Explanation - Detailed explanations and formulas
- Metrics Tutorial - Step-by-step guide to using metrics
⚙️ Custom Templates
To use a custom template for the inference, follow the steps below:
📈 Model Tracking
For tracking the model performance, use the following commands:
Contributing
We welcome and value any contributions and collaborations. Please check out Contributing to encourage for how to get involved.
Credits
This project is developed as cooperation project by the HCDS at the University of Hamburg and dida GmbH.
The research and development project is funded by the Federal Ministry of Research, Technology and Space (BMFTR) and supervised by the German Aerospace Center (DLR).
Funding code of the University of Hamburg: 16IS24044B
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 encourage_rag-0.3.7.6.tar.gz.
File metadata
- Download URL: encourage_rag-0.3.7.6.tar.gz
- Upload date:
- Size: 830.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4cd7f2f7b895a6c3b4fcbcf8ebd4824c44ec6d330beb2143707dccfdd1c8318
|
|
| MD5 |
6533bd0b0214a04fee06979dc5436c40
|
|
| BLAKE2b-256 |
01a94c1c985fd017c90174f29dc6899c97e73a1828b38746e39653f2c2e0ac6a
|
Provenance
The following attestation bundles were made for encourage_rag-0.3.7.6.tar.gz:
Publisher:
publish.yml on uhh-hcds/encourage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
encourage_rag-0.3.7.6.tar.gz -
Subject digest:
d4cd7f2f7b895a6c3b4fcbcf8ebd4824c44ec6d330beb2143707dccfdd1c8318 - Sigstore transparency entry: 855085676
- Sigstore integration time:
-
Permalink:
uhh-hcds/encourage@bb7893133798191a535e92e03984707065ce2088 -
Branch / Tag:
refs/tags/0.3.7.6 - Owner: https://github.com/uhh-hcds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bb7893133798191a535e92e03984707065ce2088 -
Trigger Event:
release
-
Statement type:
File details
Details for the file encourage_rag-0.3.7.6-py3-none-any.whl.
File metadata
- Download URL: encourage_rag-0.3.7.6-py3-none-any.whl
- Upload date:
- Size: 90.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3674a02b00efb593ac442b046d81493f238ba70520b8ca6a7b609d45e6221b77
|
|
| MD5 |
cf66d9296621687a106e05c30cf9c524
|
|
| BLAKE2b-256 |
01b166136f2030b0f00d1dcd905a3818bd510aced4129515687d6a1a6317341b
|
Provenance
The following attestation bundles were made for encourage_rag-0.3.7.6-py3-none-any.whl:
Publisher:
publish.yml on uhh-hcds/encourage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
encourage_rag-0.3.7.6-py3-none-any.whl -
Subject digest:
3674a02b00efb593ac442b046d81493f238ba70520b8ca6a7b609d45e6221b77 - Sigstore transparency entry: 855085678
- Sigstore integration time:
-
Permalink:
uhh-hcds/encourage@bb7893133798191a535e92e03984707065ce2088 -
Branch / Tag:
refs/tags/0.3.7.6 - Owner: https://github.com/uhh-hcds
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bb7893133798191a535e92e03984707065ce2088 -
Trigger Event:
release
-
Statement type: