Skip to content

Commit

Permalink
Handle ValueError in extract_table_summaries (#13318)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonsch217 committed May 7, 2024
1 parent abfd92a commit c26ee76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ async def _get_table_output(table_context: str, summary_query_str: str) -> Any:
try:
response = await query_engine.aquery(summary_query_str)
return cast(PydanticResponse, response).response
except ValidationError:
except (ValidationError, ValueError):
# There was a pydantic validation error, so we will run with text completion
# fill in the summary and leave other fields blank
query_engine = index.as_query_engine(llm=llm)
Expand Down

0 comments on commit c26ee76

Please sign in to comment.