Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ragaaf (RAG assessment annotation free) #157

Merged
merged 28 commits into from
Oct 15, 2024

Conversation

adkakne
Copy link
Contributor

@adkakne adkakne commented Oct 11, 2024

Description

Adding annotation free RAG evaluation feature using LLM-as-a-judge methodology.

Issues

n/a.

Type of change

List the type of change like below. Please delete options that are not relevant.

  • New feature (non-breaking change which adds new functionality)

Dependencies

jsonlines, openai

Tests

Added ./tests/test_ragaaf.py for testing.

adkakne and others added 21 commits September 20, 2024 03:27
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: Yingchun Guo <yingchun.guo@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Co-authored-by: root <root@idc708073.jf.intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
for more information, see https://pre-commit.ci

Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: ZePan110 <ze.pan@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
tests/test_ragaaf.py Outdated Show resolved Hide resolved
adkakne and others added 5 commits October 10, 2024 23:53
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
@adkakne
Copy link
Contributor Author

adkakne commented Oct 11, 2024

Test is working with local endpoint for mistralai/Mixtral-8x7B-Instruct-v0.1 sharded on 8 HPUs.
image

Signed-off-by: aasavari <aasavari.dhananjay.kakne@intel.com>
@adkakne
Copy link
Contributor Author

adkakne commented Oct 11, 2024

Hi @XinyuYe-Intel @lkk12014402 @minmin-intel,

After your review, I made updates to RAGAAF codebase, our final offering is -

  1. Data - can accept unit test cases, local datasets or benchmarking datasets
  2. Models - can accept all OpenAI models or a endpoint.
  3. Hardware - endpoint can run on HPU/GPU/CPU, local testing supports GPU/CPU, OpenAI testing uses their remote server.
  4. Metrics - we offer factualness, correctness, relevance and readability. User can add their own metrics easily.

Thank you for your final review and your insights for improvements in the code.

@lkk12014402
Copy link
Collaborator

LGTM

@XinyuYe-Intel XinyuYe-Intel merged commit 2413e70 into opea-project:main Oct 15, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants