# Best way to text-to-sql

**URL:** <https://discuss.huggingface.co/t/best-way-to-text-to-sql/108449>\
**Category:** Models\
**Created:** [September 24, 2024, 6:22pm UTC](https://discuss.huggingface.co/t/best-way-to-text-to-sql/108449 "2024-09-24T18:22:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![viktiw](https://avatars.discourse-cdn.com/v4/letter/v/838e76/32.png) [@viktiw](https://discuss.huggingface.co/u/viktiw)\
**Post date:** [September 24, 2024, 6:22pm UTC](https://discuss.huggingface.co/t/best-way-to-text-to-sql/108449/1 "2024-09-24T18:22:58Z")

</div>

Hi all,  
I have a requirement to use text-to-sql model.  
Needing some suggestions here to go for an LLM, LLM + Fine tune or use a model from Hugging face. All pointers and suggestions are welcome on which model will perform best on converting text to complex sql queries.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [September 24, 2024, 10:54pm UTC](https://discuss.huggingface.co/t/best-way-to-text-to-sql/108449/2 "2024-09-24T22:54:16Z")

</div>

The best practice at HF is often to find someone else’s good work and take their strengths in their entirety.  
It’s likely to be there.

> **[Spaces - Hugging Face](https://huggingface.co/spaces?sort=trending&search=sql)**
>
> Discover amazing ML apps made by the community
