Skip to content

Commit

Permalink
Dh-4992/update prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza committed Nov 16, 2023
1 parent 8fc94a6 commit 52f527a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dataherald/sql_generator/dataherald_finetuning_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,11 @@ def create_sql_agent(
**kwargs: Dict[str, Any],
) -> AgentExecutor:
tools = toolkit.get_tools()
admin_instructions = ""
for index, instruction in enumerate(toolkit.instructions):
admin_instructions += f"{index+1}) {instruction['instruction']}\n"
prefix = prefix.format(
dialect=toolkit.dialect, admin_instructions=toolkit.instructions
dialect=toolkit.dialect, admin_instructions=admin_instructions
)
prompt = ZeroShotAgent.create_prompt(
tools,
Expand Down

0 comments on commit 52f527a

Please sign in to comment.