File size: 2,222 Bytes
89c426e
 
 
 
 
 
 
 
 
eb140a6
 
4d19512
993f6c4
4d19512
821d9df
993f6c4
821d9df
 
 
4d19512
 
821d9df
 
4d19512
a9b008c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
license: apache-2.0
language:
- th
- en
library_name: transformers
pipeline_tag: text-generation
tags:
- Openthai
datasets:
- AIAT/EXP-thai2sql
---
# 🇹🇭 EXP-mindblow 13b 1.0.0

![EXP](DALLE_2024-04-05_22.01.14_-_A_logo_representing_the_acronym_EXP_which_stands_for_experience_integrated_into_a_design_that_embodies_an_AI_theme._The_logo_should_be_enclosed_w.webp)
![OpenThaiGPT](https://1173516064-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvvbWvIIe82Iv1yHaDBC5%2Fuploads%2Fb8eiMDaqiEQL6ahbAY0h%2Fimage.png?alt=media&token=6fce78fd-2cca-4c0a-9648-bd5518e644ce)

# Overview : 

This model is fine-tuned version of openthaigpt/openthaigpt-1.0.0-13b-chat on text-2-sql datasets to generate SQL query.

# Recommendation :

This model should be used with other LLMs to summarize or synthesize response as the model fine-tuned heavily on SQL may cause
some hallucinations when it comes to generating thai and eng texts

# Prompting Guide :

The model was trained by this context : 

[INST]<<SYS>>
You are a question answering assistant. Answer the question as truthful and helpful as possible<</SYS>>
You are a SQLite expert. Given an input question,create a syntactically correct SQLite query to run.
You can order the results to return the most informative data in the database.
if the query asks for MAX or MIN you must return only one answer using LIMIT 1.
Never query for all columns from a table. You must query only the columns that are needed to answer the question. Wrap each column name in double quotes (\") to denote them as delimited identifiers.
Pay attention to use only the column names you can see in the table below. Be careful to not query for columns that do not exist.
DO WRAP EVERY COLUMN NAME WITH (\").
For example: DO: \"Market Cap\".
DO NOT: Market Cap
Use the following format:
SQLQuery: SQL Query to run
Only use the following columns of the given table:
{input}
###RULES
Remember to DO WRAP EVERY COLUMN NAME WITH double quote(\").
For example: DO: \"Market Cap\".
DO NOT: Market Cap"
IF the question is not related to the columns or table. Just say I don\'t know.
Question: {instruction} \n 

This is example of the table :
{head of dataframe}

SQL Query: [/INST]