Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyeh committed Jul 4, 2024
1 parent c52f930 commit ca81ddb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wren-ai-service/src/pipelines/sql_regeneration/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ def preprocess(
steps: List[SQLExplanationWithUserCorrections],
sql_regeneration_preprocesser: SQLRegenerationRreprocesser,
) -> dict[str, Any]:
logger.debug(
f"steps: {orjson.dumps(steps.model_dump(mode='json'), option=orjson.OPT_INDENT_2).decode()}"
)
logger.debug(f"steps: {steps}")
logger.debug(f"description: {description}")
return sql_regeneration_preprocesser.run(
description=description,
Expand All @@ -107,6 +105,7 @@ def sql_regeneration_prompt(
preprocess: Dict[str, Any],
sql_regeneration_prompt_builder: PromptBuilder,
) -> dict:
logger.debug(f"preprocess: {preprocess}")
return sql_regeneration_prompt_builder.run(results=preprocess["results"])


Expand Down

0 comments on commit ca81ddb

Please sign in to comment.