Skip to content

Commit

Permalink
Add newlines after the observations and final answer
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza authored and Juan Valacco committed Apr 4, 2024
1 parent 443a49e commit 51c0390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dataherald/sql_generator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ def stream_agent_steps( # noqa: C901
queue.put(message.content + "\n")
elif "steps" in chunk:
for step in chunk["steps"]:
queue.put(f"**Observation:**\n {step.observation}\n")
queue.put(f"\n**Observation:**\n {step.observation}\n")
elif "output" in chunk:
queue.put(f'**Final Answer:**\n {chunk["output"]}')
queue.put(f'\n**Final Answer:**\n {chunk["output"]}')
if "```sql" in chunk["output"]:
response.sql = replace_unprocessable_characters(
self.remove_markdown(chunk["output"])
Expand Down

0 comments on commit 51c0390

Please sign in to comment.