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

Add Context_retention_rate metric #111

Merged

Conversation

muditgaur-1009
Copy link
Contributor

Pull Request Template

Description

Metric Addition - Context Retention Rate

This pull request introduces a new feature for evaluating the context retention rate of interactions. The new metric provides insights into how well context is maintained across various interactions in the dataset.

Type of Change

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

How Has This Been Tested?

To test the context retention metric evaluation function, I've written unit tests using pytest. The tests cover various scenarios, including valid JSON inputs, missing timestamps, and empty JSON inputs. These tests ensure that the function behaves as expected and handles different types of input data correctly.

Checklist:

  • My code follows the style guidelines of this project
  • 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
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Impact on Roadmap

This PR aligns with the project roadmap by enhancing the metrics evaluation capabilities, providing more detailed insights into interaction quality, which is crucial for ongoing improvements and assessments.

@muditgaur-1009 muditgaur-1009 changed the title Context retention rate metric Add Context_retention_rate metric Nov 19, 2024
@vijayc9 vijayc9 changed the base branch from hackathon to v1.2 January 16, 2025 06:30
@vijayc9 vijayc9 merged commit b951d9b into raga-ai-hub:v1.2 Jan 16, 2025
@muditgaur-1009
Copy link
Contributor Author

@vijayc9 let me know if you need some other contributions from me as I would love to contribute.

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.

2 participants