duyntnet commited on
Commit
a637edd
1 Parent(s): 979aec9

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ pipeline_tag: text-generation
6
+ inference: false
7
+ tags:
8
+ - transformers
9
+ - gguf
10
+ - imatrix
11
+ - sqlcoder-7b-2
12
+ ---
13
+ Quantizations of https://huggingface.co/defog/sqlcoder-7b-2
14
+
15
+
16
+ # From original readme
17
+
18
+ ## Uses
19
+
20
+ This model is intended to be used by non-technical users to understand data inside their SQL databases. It is meant as an analytics tool, and not as a database admin tool.
21
+
22
+ This model has not been trained to reject malicious requests from users with write access to databases, and should only be used by users with read-only access.
23
+
24
+ ## How to Get Started with the Model
25
+
26
+ Use the code [here](https://github.com/defog-ai/sqlcoder/blob/main/inference.py) to get started with the model.
27
+
28
+ ## Prompt
29
+
30
+ Please use the following prompt for optimal results. Please remember to use `do_sample=False` and `num_beams=4` for optimal results.
31
+
32
+ ```
33
+ ### Task
34
+ Generate a SQL query to answer [QUESTION]{user_question}[/QUESTION]
35
+
36
+ ### Database Schema
37
+ The query will run on a database with the following schema:
38
+ {table_metadata_string_DDL_statements}
39
+
40
+ ### Answer
41
+ Given the database schema, here is the SQL query that [QUESTION]{user_question}[/QUESTION]
42
+ [SQL]
43
+ ```