File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
src/experimental/ragas_experimental/testset Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,7 @@ def generate(
4848 docs : t .Sequence [Document ],
4949 test_size : int ,
5050 distribution : QADistribution ,
51- ) -> TestDataset :
52- ...
51+ ) -> TestDataset : ...
5352
5453 def generate_with_langchain_docs (
5554 self ,
Original file line number Diff line number Diff line change 1313)
1414from ragas_experimental .testset .generators import (
1515 QADistribution ,
16- TestDataset ,
1716 TestGenerator ,
1817)
1918from ragas_experimental .testset .graph import Node , NodeLevel
3534from ragas .executor import Executor
3635from ragas .llms .base import llm_factory
3736from ragas .utils import check_if_sum_is_close
37+ from ragas .testset .generator import TestDataset
3838
3939abstract_qa = AbstractQA (distribution = DEFAULT_DISTRIBUTION )
4040comparative_qa = ComparativeAbstractQA (distribution = DEFAULT_DISTRIBUTION )
Original file line number Diff line number Diff line change 44)
55from ragas_experimental .testset .questions .base import (
66 DEFAULT_DISTRIBUTION ,
7+ QAC ,
78 QAGenerator ,
89 QuestionLength ,
910 QuestionStyle ,
1819 "QAGenerator" ,
1920 "QuestionStyle" ,
2021 "QuestionLength" ,
22+ "QAC" ,
2123 "DEFAULT_DISTRIBUTION" ,
2224 "StyleLengthDistribution" ,
2325]
You can’t perform that action at this time.
0 commit comments