Skip to content

Commit 1cad1da

Browse files
fix: handle non-dict types for overlapped_items in MultiHopSpecificQuerySynthesizer
1 parent b0c09b6 commit 1cad1da

File tree

1 file changed

+2
-1
lines changed
  • ragas/src/ragas/testset/synthesizers/multi_hop

1 file changed

+2
-1
lines changed

ragas/src/ragas/testset/synthesizers/multi_hop/specific.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ async def _generate_scenarios(
9494
data=prompt_input, llm=self.llm, callbacks=callbacks
9595
)
9696
)
97+
overlapped_items = [[item] for item in themes]
9798
base_scenarios = self.prepare_combinations(
9899
[node_a, node_b],
99-
themes,
100+
overlapped_items,
100101
personas=persona_list,
101102
persona_item_mapping=persona_concepts.mapping,
102103
property_name=self.property_name,

0 commit comments

Comments
 (0)