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

Nei quiz, aggiungere una condizione per cercare contenuti senza "Dati insufficienti per generare una risposta" #7

Open
mwithi opened this issue Oct 31, 2024 · 0 comments

Comments

@mwithi
Copy link
Member

mwithi commented Oct 31, 2024

Condizione da utilizzare su ES:

const hasResponse = (row) => {
  const version = row?.version || 0

  if (version >= 11) {
    const confidences_nnr_multi = row?.responseObj?.confidences_nnr_multi || 0
    const confidences_nnr_multi_threshold = row?.responseObj?.confidences_nnr_multi_threshold || 0

    return confidences_nnr_multi > confidences_nnr_multi_threshold <=====
  } else {
    const response = row?.response || null

    return response !== 'miss'
  }
}
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

1 participant