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 9da919e commit f5bc2b5Copy full SHA for f5bc2b5
src/ragas/prompt/pydantic_prompt.py
@@ -394,7 +394,7 @@ async def parse_output_string(
394
llm: BaseRagasLLM,
395
callbacks: Callbacks,
396
retries_left: int = 1,
397
- ):
+ ) -> OutputModel:
398
callbacks = callbacks or []
399
try:
400
jsonstr = extract_json(output_string)
@@ -416,7 +416,7 @@ async def parse_output_string(
416
retries_left=retries_left - 1,
417
)
418
retry_rm.on_chain_end({"fixed_output_string": fixed_output_string})
419
- result = fixed_output_string
+ result = super().parse(fixed_output_string.text)
420
else:
421
raise RagasOutputParserException()
422
return result
0 commit comments