Skip to content

uhh-hcds/encourage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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: 16IS24044B

HCDS Logo dida Logo

About

encouRAGe lib for evaluating RAG

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published