Instructions to use KN123/nl2sql with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KN123/nl2sql with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("KN123/nl2sql") model = AutoModelForSeq2SeqLM.from_pretrained("KN123/nl2sql") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,8 +2,12 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
library_name: transformers
|
| 4 |
---
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
library_name: transformers
|
| 4 |
---
|
| 5 |
+
# nl2sql (Natural Language to SQL)
|
| 6 |
+
- Here lies the resources and the fine tuned-model for natural language to SQL (Structured Query Language).
|
| 7 |
|
| 8 |
+
## Few Hints while making use of the API or downloading the model locally.
|
| 9 |
+
1. For ease, while passing the query to the database, make the attributes in single quotes (write custom function).
|
| 10 |
+
2. Remember, SQL is case sensitive, hence in your inference prompt, mention the correct case.
|
| 11 |
|
| 12 |
|
| 13 |
|