Find answers from the community

Updated 2 months ago

Sql

hey guys,i am trying to integrate llama index for the use case text to sql with a hugging face llm model,
i have a database of my own on mysql, and the reference that i used is "https://docs.llamaindex.ai/en/stable/examples/index_structs/struct_indices/SQLIndexDemo.html" and when i tried to use sqlcoder 7b, it isn't generated what i expected as output, my guess is that the problem is at the query_wrapper_prompt in prompt template
can some one help me out with what i am supposed to give as system prompt and query_wrapper_prompt(prompt template) for the llm sqlcoder 7b
L
S
4 comments
I think it's more complicated than just the query wrapper prompt

Here's an example prompt for this model in here

https://colab.research.google.com/drive/1z4rmOEiFkxkMiecAWeTUlPl0OmKgfEu7?usp=sharing
Likely need to update the prompt template for text to sql to match a format like that
cool thanks got the isssue
Add a reply
Sign up and join the conversation on Discord