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: implement TestsetGenerator #1375

Merged
merged 32 commits into from
Sep 28, 2024

Conversation

jjmachan
Copy link
Member

@jjmachan jjmachan commented Sep 28, 2024

Putting everything together

from ragas.experimental.testset import TestsetGenerator
from ragas.llms import llm_factory

generator = TestsetGenerator(llm=llm)
dataset = generator.generate_with_langchain_docs(docs, test_size=10)
dataset

Summary from Github CoPilot

This pull request introduces several changes to the ragas project, focusing on improvements to the test set generation and integration with Langfuse. The changes include new utility functions, updates to class structures, and enhancements to documentation.

Enhancements to Test Set Generation:

Documentation and Configuration Updates:

Codebase Simplification and Refactoring:

Integration with Langfuse:

These changes collectively enhance the functionality and maintainability of the test set generation process, improve documentation, and ensure better integration with external libraries like Langfuse.finish prompt object

@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Sep 28, 2024
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Sep 28, 2024
@jjmachan
Copy link
Member Author

jjmachan commented Sep 28, 2024

now things to do before pre-release

  • 2 more simulators for testset generation
  • add callbacks and traces
  • finish prompt object
  • switch everything from experimental to main

@jjmachan jjmachan merged commit 43fe5d2 into explodinggradients:main Sep 28, 2024
15 checks passed
@jjmachan jjmachan deleted the feat/putting-together branch September 28, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants