We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d658a1 commit 54e9f4dCopy full SHA for 54e9f4d
src/ragas/testset/evolutions.py
@@ -202,7 +202,13 @@ async def generate_datarow(
202
if isinstance(relevant_contexts_result, dict)
203
else None
204
)
205
- if relevant_context_indices is None:
+
206
+ if relevant_context_indices is not None:
207
+ relevant_context_indices = [
208
+ idx for idx in relevant_context_indices if isinstance(idx, int)
209
+ ]
210
211
+ if relevant_context_indices is None or not relevant_context_indices:
212
relevant_context = CurrentNodes(
213
root_node=current_nodes.root_node, nodes=current_nodes.nodes
214
0 commit comments