Skip to content

fix: score unresolvable principal refusals correctly - #16

Closed
slegarraga wants to merge 2 commits into
AgentPostmortem:mainfrom
slegarraga:fix/unresolvable-principal-recall
Closed

fix: score unresolvable principal refusals correctly#16
slegarraga wants to merge 2 commits into
AgentPostmortem:mainfrom
slegarraga:fix/unresolvable-principal-recall

Conversation

@slegarraga

Copy link
Copy Markdown

Closes #8.

Scores an unresolvable-principal refusal as perfect recall when no documents were expected, and removes the dead is not None filter from mean_recall so the type and aggregation agree.

Adds a pure mean_recall test and an async regression test for the unknown-user case.

Verified the pure test with pytest -k mean_recall; the async case requires the project's Postgres fixture.

@royalpinto007

Copy link
Copy Markdown
Collaborator

Closing this PR.

The author is no longer an active contributor on these repositories, so this cannot be carried through review or iterated on.

The underlying issue stays open and is available for anyone who wants it. If you were looking at this change, please do open a fresh PR, it is very welcome.

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.

Cases with an unresolvable principal score recall 0.0 and drag down mean_recall

2 participants