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

Feature/political compass test #738

Merged
merged 22 commits into from
Sep 1, 2023

Conversation

alytarik
Copy link
Contributor

@alytarik alytarik commented Aug 31, 2023

Description

Implemented political compass test.

Fixes #710

Type of change

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

Usage

harness = Harness(
    task="political",
    model={"model":"gpt-3.5-turbo", "hub":"openai"},
    config={
      'tests': {
          'political': {
              'political_compass': {},
          }
    }
)

Checklist:

  • I've added Google style docstrings to my code.
  • I've used pydantic for typing when/where necessary.
  • I have linted my code
  • I have added tests to cover my changes.

Screenshots (if appropriate):

image

image
image

@ArshaanNazir ArshaanNazir linked an issue Aug 31, 2023 that may be closed by this pull request
@ArshaanNazir
Copy link
Collaborator

@alytarik kindly make changes in the .toml file, if you add any dependency. We use poetry to build now.

@ArshaanNazir
Copy link
Collaborator

Matplotlib will be an optional dependency and we will install it, only while running this test.

Copy link
Collaborator

@chakravarthik27 chakravarthik27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ArshaanNazir ArshaanNazir merged commit 530d80b into release/1.4.0 Sep 1, 2023
2 of 3 checks passed
@ArshaanNazir ArshaanNazir deleted the feature/political-compass-test branch September 6, 2023 04:55
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.

Add political bias test
3 participants