Skip to main content

ENCOURAGE

Project description

encourage
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.

encourage


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:

⚙️ 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: 01IS24044B

HCDS Logo dida Logo

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

encourage_rag-0.3.5.tar.gz (638.1 kB view details)

Uploaded Source

Built Distribution

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

encourage_rag-0.3.5-py3-none-any.whl (81.5 kB view details)

Uploaded Python 3

File details

Details for the file encourage_rag-0.3.5.tar.gz.

File metadata

  • Download URL: encourage_rag-0.3.5.tar.gz
  • Upload date:
  • Size: 638.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for encourage_rag-0.3.5.tar.gz
Algorithm Hash digest
SHA256 3aeb8a24b2054de9019a33cdafdac7a22e2bbc5f1ce8f8e354009da67cf7fa67
MD5 4da70cdb12ae27322e511b70cd690aed
BLAKE2b-256 6ef9d5f1e06ae18b054419e4609f43df18fe4d5d21f7329d6263418c234f4c84

See more details on using hashes here.

Provenance

The following attestation bundles were made for encourage_rag-0.3.5.tar.gz:

Publisher: publish.yml on uhh-hcds/encourage

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

File details

Details for the file encourage_rag-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: encourage_rag-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 81.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for encourage_rag-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3eeb7f823f237b4e71bb6959cf23ac1ae921d175b8fc7d59b3cba66c8175c411
MD5 ef3aca4558c4ed7ff4c5a24cf815b7ac
BLAKE2b-256 6a3f4a62c5bf61bd835b942ad42104dd38ef47edf92c5e3566675a0652c2a6bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for encourage_rag-0.3.5-py3-none-any.whl:

Publisher: publish.yml on uhh-hcds/encourage

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