Skip to content

Commit

Permalink
Add RAGASMetric (#35)
Browse files Browse the repository at this point in the history
* add ragas metric

Signed-off-by: changwangss <chang1.wang@intel.com>
  • Loading branch information
changwangss committed Jun 26, 2024
1 parent 3ec5441 commit 7406bf3
Show file tree
Hide file tree
Showing 6 changed files with 455 additions and 0 deletions.
4 changes: 4 additions & 0 deletions evals/metrics/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
15 changes: 15 additions & 0 deletions evals/metrics/ragas/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

#

from .ragas import (
RAGASContextualPrecisionMetric,
RAGASContextualRelevancyMetric,
RAGASAnswerRelevancyMetric,
RAGASFaithfulnessMetric,
RAGASContextualRecallMetric,
RagasMetric,
)
Loading

0 comments on commit 7406bf3

Please sign in to comment.