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 Trust Score to JSON Output for Quick Reliability Assessment #137

Open
wrench1997 opened this issue Sep 2, 2024 · 1 comment
Open

Comments

@wrench1997
Copy link

wrench1997 commented Sep 2, 2024

Hello,

I'd like to propose a new feature for our module's JSON output. Currently, we provide data in JSON format, but I believe we can enhance its usefulness by adding a "trust score" for each field.

Feature Request:

  • Add a "trustScore" attribute to each field in the JSON output
  • This score should represent the degree of confidence or reliability for that particular field
  • The score could be on a scale (e.g., 0-100 or 0-1), where a higher score indicates higher confidence and reliability

Benefits:

  1. Quick identification of highly reliable data points
  2. Easier prioritization of which fields may need further verification
  3. Enhanced transparency about the reliability of the output

Example of proposed JSON structure:

{
  "name": {
    "value": "John Doe",
    "trustScore": 0.9
  },
  "age": {
    "value": 30,
    "trustScore": 0.7
  },
  "occupation": {
    "value": "Software Engineer",
    "trustScore": 0.3
  }
}

In this example, the "name" field has a high trust score, indicating high reliability, while the "occupation" field has a lower score, suggesting it may need verification.

Implementation Considerations:

  • Determine the most appropriate scale for the trust score
  • Decide on the algorithm or method to calculate the trust score
  • Consider the performance impact of adding this feature

I believe this addition would significantly improve our ability to quickly assess the reliability of our output. It would be particularly useful for prioritizing verification efforts, quality assurance, and improving the overall dependability of our system.

Please let me know your thoughts on this proposal. I'm happy to provide more details or discuss this further if needed.

Thank you for your consideration!

@wrench1997 wrench1997 changed the title Add Hallucination Score to JSON Output for Quick Problem Identification Add Trust Score to JSON Output for Quick Reliability Assessment Sep 2, 2024
@noamgat
Copy link
Owner

noamgat commented Sep 3, 2024

I'm not sure how this could be handled by API, but if you have a concrete suggestion, I'm open to reading about it.
The question of "what is the trust score algorithm" is a very deep and hard one. Its an entire field of research.

It might be related to https://github.com/noamgat/lm-format-enforcer?tab=readme-ov-file#diagnostics---will-i-always-get-good-results , I think users who want to research into hallucinations can use that part of the API

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

No branches or pull requests

2 participants