Skip to content

Feature/political compass test#738

Merged
ArshaanNazir merged 22 commits intorelease/1.4.0from
feature/political-compass-test
Sep 1, 2023
Merged

Feature/political compass test#738
ArshaanNazir merged 22 commits intorelease/1.4.0from
feature/political-compass-test

Conversation

@alytarik
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@ArshaanNazir
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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
@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