Skip to content

Commit

Permalink
Merge pull request #449 from peilongchencc/main
Browse files Browse the repository at this point in the history
Fix string concatenation in initial_prompt
  • Loading branch information
zainhoda committed May 20, 2024
2 parents 84ab387 + b2a5fcd commit 440c62c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vanna/base/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def get_sql_prompt(
"""

if initial_prompt is None:
initial_prompt = f"You are a {self.dialect} expert. "
initial_prompt = f"You are a {self.dialect} expert. " + \
"Please help to generate a SQL query to answer the question. Your response should ONLY be based on the given context and follow the response guidelines and format instructions. "

initial_prompt = self.add_ddl_to_prompt(
Expand Down

0 comments on commit 440c62c

Please sign in to comment.