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

feat: adding an implementation of abstractQA #1359

Merged
merged 21 commits into from
Sep 28, 2024

Conversation

jjmachan
Copy link
Member

@jjmachan jjmachan commented Sep 25, 2024

Once you have a kg with #1352 you can run this like

from ragas.experimental.testset.generators.abstract import AbstractGenerator

abstract_qa = AbstractGenerator()
dist = await abstract_qa.generate_distributions(n=10, knowledge_graph=kg)
q = await abstract_qa.generate_user_input(dist[0])

merge after merging #1352

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Sep 25, 2024
Copy link
Member

@shahules786 shahules786 left a comment

Choose a reason for hiding this comment

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

I assume quality checks and improvements on prompts and workflows can be done later.

@shahules786 shahules786 merged commit 4b92fa9 into explodinggradients:main Sep 28, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants