Skip to content

Commit

Permalink
Dh-5738/fixing the few-shot samples format (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza authored and DishenWang2023 committed May 7, 2024
1 parent a52d20e commit dfe45da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dataherald/sql_generator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ def stream_agent_steps( # noqa: C901
)
elif "steps" in chunk:
for step in chunk["steps"]:
queue.put(f"\n**Observation:**\n {step.observation}\n")
queue.put(
f"\n**Observation:**\n {self.format_sql_query_intermediate_steps(step.observation)}\n"
)
elif "output" in chunk:
queue.put(
f'\n**Final Answer:**\n {self.format_sql_query_intermediate_steps(chunk["output"])}'
Expand Down

0 comments on commit dfe45da

Please sign in to comment.