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.
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.
Please use the following prompt for optimal results. Please remember to use
do_sample=False
and
num_beams=4
for optimal results.
### Task
Generate a SQL query to answer [QUESTION]{user_question}[/QUESTION]
### Database Schema
The query will run on a database with the following schema:
{table_metadata_string_DDL_statements}
### Answer
Given the database schema, here is the SQL query that [QUESTION]{user_question}[/QUESTION]
[SQL]
Evaluation
This model was evaluated on
SQL-Eval
, a PostgreSQL based evaluation framework developed by Defog for testing and alignment of model capabilities.
You can read more about the methodology behind SQLEval
here
.
Results
We classified each generated question into one of 6 categories. The table displays the percentage of questions answered correctly by each model, broken down by category.
sqlcoder-7b-2 huggingface.co is an AI model on huggingface.co that provides sqlcoder-7b-2's model effect (), which can be used instantly with this defog sqlcoder-7b-2 model. huggingface.co supports a free trial of the sqlcoder-7b-2 model, and also provides paid use of the sqlcoder-7b-2. Support call sqlcoder-7b-2 model through api, including Node.js, Python, http.
sqlcoder-7b-2 huggingface.co is an online trial and call api platform, which integrates sqlcoder-7b-2's modeling effects, including api services, and provides a free online trial of sqlcoder-7b-2, you can try sqlcoder-7b-2 online for free by clicking the link below.
defog sqlcoder-7b-2 online free url in huggingface.co:
sqlcoder-7b-2 is an open source model from GitHub that offers a free installation service, and any user can find sqlcoder-7b-2 on GitHub to install. At the same time, huggingface.co provides the effect of sqlcoder-7b-2 install, users can directly use sqlcoder-7b-2 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.