Skip to main content

ENCOURAGE

Project description

Encourage Logo
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 Logo


Overview

The following libraries are used to provide the core functionality:

For Inference Runners:

  • 🏃 vllm
    • A fast and flexible framework for LLM inference.
  • 🚈 litellm
    • A popular library for LLM proxy and 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.

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.2.tar.gz (599.2 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.2-py3-none-any.whl (76.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: encourage_rag-0.3.2.tar.gz
  • Upload date:
  • Size: 599.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for encourage_rag-0.3.2.tar.gz
Algorithm Hash digest
SHA256 7d49addc2d4a77af54f4e3ea9054450878358284dec29faa92829398c627d124
MD5 b160f701ad2f05ddb9b712ed294e5e25
BLAKE2b-256 1fc0464f184a3a4058b575f89ae8cd3b51a26c5e850368e941c2b78f260b37b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: encourage_rag-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 76.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for encourage_rag-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 311da41c15330a6b31b60937adb3fc5ebe390bcbc394b942cdeba00e3e3f7bd8
MD5 4431dac01de4f3eb336ae39562eeb04f
BLAKE2b-256 9ef74871df468799ee5517ddf2cb8b0faecf6793dc493e466a71a3a43d703cec

See more details on using hashes here.

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