Skip to content

Relevance scorer “partial overlap” test fixture actually has full query overlap #64

Description

@Aburke225

test_query_with_partial_overlap uses query “Python Django web framework” against a chunk containing all four query terms, then asserts the score is below 0.9. The scorer correctly returns 1.0 for full keyword coverage, so the test fails against correct behavior. Fix the fixture so the overlap is genuinely partial.

Steps to reproduce: pytest tests/unit/test_relevance_scorer.py -q — observed: assert 1.0 < 0.9 fails.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomerstestsTest coveragetier-1Starter difficulty

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions