gomate-community / rageval

Evaluation tools for Retrieval-augmented Generation (RAG) methods.
Apache License 2.0
119 stars 9 forks source link

add setup.py #44

Closed faneshion closed 7 months ago

faneshion commented 7 months ago

we can use rageval by install it as package:

Install the package:

git clone https://github.com/gomate-community/rageval.git
cd rageval
python3 setup.py install

Use RagEval:

import rageval as rl
metric = rl.metrics. ContextRecall()
metric. init_model(model)
results = metric._score_batch(testset)
codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (97b23c9) 71.64% compared to head (b8494e6) 71.64%. Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #44 +/- ## ======================================= Coverage 71.64% 71.64% ======================================= Files 16 16 Lines 388 388 ======================================= Hits 278 278 Misses 110 110 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.