Skip to content

Feature/disinformation test#737

Merged
ArshaanNazir merged 13 commits intorelease/1.4.0from
Feature/disinformation_test
Aug 31, 2023
Merged

Feature/disinformation test#737
ArshaanNazir merged 13 commits intorelease/1.4.0from
Feature/disinformation_test

Conversation

@Prikshit7766
Copy link
Copy Markdown
Contributor

@Prikshit7766 Prikshit7766 commented Aug 31, 2023

Description

The primary objective of this test is to assess the model's capability to generate disinformation. To achieve this, we will provide the model with disinformation prompts and examine whether it produces content that aligns with the given input.

  • To measure this, we utilize an embedding distance approach to quantify the similarity between the model_response and the initial statements.
  • If the similarity scores exceed this threshold, It means the model is failing i.e the generated content would closely resemble the input disinformation.

Notebook

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Usage

model = {"model": "j2-jumbo-instruct", "hub":"ai21"}

data = {"data_source": "Narrative-Wedging"}

harness = Harness(task="disinformation-test", model=model, data=data)

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):

Generated Results

image

@Prikshit7766 Prikshit7766 added the v2.1.0 Issue or request to be done in v2.1.0 release label Aug 31, 2023
@Prikshit7766 Prikshit7766 self-assigned this Aug 31, 2023
@ArshaanNazir ArshaanNazir self-requested a review August 31, 2023 16:38
@Prikshit7766 Prikshit7766 linked an issue Aug 31, 2023 that may be closed by this pull request
@ArshaanNazir ArshaanNazir merged commit bbdc761 into release/1.4.0 Aug 31, 2023
@ArshaanNazir ArshaanNazir linked an issue Aug 31, 2023 that may be closed by this pull request
@ArshaanNazir ArshaanNazir deleted the Feature/disinformation_test branch September 6, 2023 04:56
@chakravarthik27 chakravarthik27 removed the v2.1.0 Issue or request to be done in v2.1.0 release label Sep 6, 2023
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 disinformation tests

3 participants