Ragelo

Latest version: v0.1.8

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.1.8

New features:
The `Query` object now supports two new methods for easier evaluation of your retrieval pipeline:
- `query.get_runs()` returns a dictionary of TREC-style runs for all the agents that retrieved documents for that query. (the mapping is agent_id -> query_id->document_id->retrieval_score).
- `query.get_qrels()` returns a TREC-style qrels dictionary with the judgement scores assigned by an Evaluator. The mapping is query_id->document_id->relevance).

You can explore how these two methods work in the new [example notebook here](https://github.com/zetaalphavector/RAGElo/blob/master/docs/examples/notebooks/custom_retrieval_prompt.ipynb) that uses the [`ir-measures`](https://ir-measur.es/en/latest/) package.

Another addition (by RodrJ106) is the addition of a new `LLMProvider` for Ollama! Now you can also run RAGElo on locally, without the need to call an external provider. Thanks!

A potential breaking change is that the `retrieved_docs` and the `answers` attributes of the `Query` object are now dictionaries instead of lists (mapping the document id or the agent name, respectively, to the actual object). This was done to better support future changes where RAGElo relies less on CSV files everywhere, but instead saves and serializes its internal state as a dictionary, until the user actually asks for an output as a CSV.


What's Changed
* Add missing f-string to warning. by RodrJ106 in https://github.com/zetaalphavector/RAGElo/pull/38
* Add ollama as new llm provider by RodrJ106 in https://github.com/zetaalphavector/RAGElo/pull/39
* Remove extra domain sentence by din0s in https://github.com/zetaalphavector/RAGElo/pull/40
* Add get_qrels and get_runs for Queries by ArthurCamara in https://github.com/zetaalphavector/RAGElo/pull/41

New Contributors
* RodrJ106 made their first contribution in https://github.com/zetaalphavector/RAGElo/pull/38
* din0s made their first contribution in https://github.com/zetaalphavector/RAGElo/pull/40

**Full Changelog**: https://github.com/zetaalphavector/RAGElo/compare/0.1.7...0.1.8

0.1.7

What's Changed
* Python3.8 fixes by ArthurCamara in https://github.com/zetaalphavector/RAGElo/pull/37


**Full Changelog**: https://github.com/zetaalphavector/RAGElo/compare/0.1.6...0.1.7

0.1.6

What's Changed
* Fix issue with RDNAM parsing of answer by matprst in https://github.com/zetaalphavector/RAGElo/pull/32
* docs: update README.md by eltociear in https://github.com/zetaalphavector/RAGElo/pull/33
* Elo Ranker returns dictionary with agents scores by ArthurCamara in https://github.com/zetaalphavector/RAGElo/pull/34

New Contributors
* matprst made their first contribution in https://github.com/zetaalphavector/RAGElo/pull/32
* eltociear made their first contribution in https://github.com/zetaalphavector/RAGElo/pull/33

**Full Changelog**: https://github.com/zetaalphavector/RAGElo/compare/0.1.5...0.1.6

0.1.5

Adds support to Python >= 3.8

What's Changed
* Support Python 3.8 by ArthurCamara in https://github.com/zetaalphavector/RAGElo/pull/29


**Full Changelog**: https://github.com/zetaalphavector/RAGElo/compare/0.1.3...0.1.5

0.1.4

Hotfix for Python3.10

0.1.2

Main changes:
- OpenAI calls are much faster now and can be done in parallel.
- The pairwise answer evaluations are easier to use and more configurable.
- A new PairwiseExpertAnswerEvaluator evaluator was added.
- Added a notebook with examples of using RAGElo as a library.

What's Changed
* Added parallel calls to OpenAI with asyncio by ArthurCamara in https://github.com/zetaalphavector/RAGElo/pull/21
* Change from aiohttp sessions to using OpenAI's Async clients. by ArthurCamara in https://github.com/zetaalphavector/RAGElo/pull/22
* Improve batching by ArthurCamara in https://github.com/zetaalphavector/RAGElo/pull/25
* Refactor pairwise answer eval by frejonb in https://github.com/zetaalphavector/RAGElo/pull/26
* Notebook example by ArthurCamara in https://github.com/zetaalphavector/RAGElo/pull/27


**Full Changelog**: https://github.com/zetaalphavector/RAGElo/compare/0.1.1...0.1.2

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.