Skip to content

Synthesize RED-TEAM #857

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

Merged
merged 4 commits into from
Jul 2, 2024
Merged

Conversation

kritinv
Copy link
Collaborator

@kritinv kritinv commented Jun 28, 2024

No description provided.

Copy link

vercel bot commented Jun 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
evals-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2024 10:46am


def generate_goldens(
self,
contexts: List[List[str]],
synthesizer: BaseSynthesizer = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this deleted because of circular import? Need to let users define their own synthesizer, can make it untyped synthesizer = None but check for type in the method using is_instance(synthesizer, BaseSynthesizer)

)
)

def generate_goldens_from_docs(
self,
document_paths: List[str],
synthesizer: BaseSynthesizer = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

)
)
print(self.goldens)
Copy link
Contributor

Choose a reason for hiding this comment

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

Rmb to delete

@penguine-ip penguine-ip merged commit 677831e into confident-ai:main Jul 2, 2024
1 of 5 checks passed
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.

2 participants