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 Apr 18, 2024
1 parent 15c2190 commit 6a3df95
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 6a3df95

Please sign in to comment.