Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dh 4992/new agent #254

Merged
merged 7 commits into from
Nov 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
DH-4992/reformat with black
  • Loading branch information
MohammadrezaPourreza committed Nov 16, 2023
commit 9fcfb98b0fa740c7a00d69acb32395d3d4511d00
4 changes: 3 additions & 1 deletion dataherald/sql_generator/dataherald_finetuning_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ def create_sql_agent(
**kwargs: Dict[str, Any],
) -> AgentExecutor:
tools = toolkit.get_tools()
prefix = prefix.format(dialect=toolkit.dialect, admin_instructions=toolkit.instructions)
prefix = prefix.format(
dialect=toolkit.dialect, admin_instructions=toolkit.instructions
)
prompt = ZeroShotAgent.create_prompt(
tools,
prefix=prefix,
Expand Down