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

Fix string concatenation in initial_prompt #449

Merged
merged 1 commit into from
May 20, 2024
Merged

Fix string concatenation in initial_prompt #449

merged 1 commit into from
May 20, 2024

Conversation

peilongchencc
Copy link
Contributor

old version:

dialect = "SQL"
initial_prompt = f"You are a {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. "
print(initial_prompt)

terminal ouput:

You are a SQL expert.

new version:

dialect = "SQL"
initial_prompt = f"You are a {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. "
print(initial_prompt)

terminal ouput:

You are a SQL 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. 

@zainhoda zainhoda merged commit 440c62c into vanna-ai:main May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants