Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(testset): for generating testset with new docs (#1001)
fixes #848 This pull request introduces updates to the TestsetGenerator and ComplexEvolution classes within the generator.py and evolutions.py files respectively. The primary focus of these changes is to improve the handling of new documents during test dataset generation, ensuring that data from previous documents does not interfere with the generation process. ### Before ![Screenshot 2024-05-31 183725 before](https://github.com/explodinggradients/ragas/assets/77217074/dcc24e81-2e35-4e20-8638-2904d6779225) Here row 2 and 4 are generated from the document used for the previous generation ### After ![Screenshot 2024-05-31 184647 after](https://github.com/explodinggradients/ragas/assets/77217074/582afeeb-9ade-4d35-891c-af54af21c859) Here all rows generated are based on the new document provided
- Loading branch information