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

feat(RAG):add MRR and HitRate retriever metrics. #1456

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

Aries-ckt
Copy link
Collaborator

@Aries-ckt Aries-ckt commented Apr 23, 2024

Description

  • add MRR(Mean Reciprocal Rank) retriever evaluation metric
  • add HitRate retriever evaluation metric

How Has This Been Tested?

python examples/rag/retriever_evaluation_example.py

Metric: RetrieverHitRateMetric
Question: what is awel talk about
Score: 1.0
Metric: RetrieverMRRMetric
Question: what is awel talk about
Score: 1.0
Metric: RetrieverSimilarityMetric
Question: what is awel talk about
Score: 0.9740950570493465

Snapshots:

Include snapshots for easier review.

Checklist:

  • My code follows the style guidelines of this project
  • I have already rebased the commits and make the commit message conform to the project standard.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published in downstream modules

@github-actions github-actions bot added the enhancement New feature or request label Apr 23, 2024
@Aries-ckt Aries-ckt changed the title feat:add MRR and HitRate retriever metrics. feat(RAG):add MRR and HitRate retriever metrics. Apr 23, 2024
Copy link
Collaborator

@csunny csunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

@yyhhyyyyyy
Copy link
Contributor

Test passed~

Metric: RetrieverHitRateMetric
Question: what is awel talk about
Score: 0.0
Metric: RetrieverMRRMetric
Question: what is awel talk about
Score: 0.0
Metric: RetrieverSimilarityMetric
Question: what is awel talk about
Score: 0.8598387491988569

Copy link
Collaborator

@fangyinc fangyinc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+.

@fangyinc fangyinc merged commit 7152997 into eosphoros-ai:main Apr 25, 2024
4 checks passed
Hopshine pushed a commit to Hopshine/DB-GPT that referenced this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants