04.6.13.18 sqlcoder-7b-2
Model description
The @cf/defog/sqlcoder-7b-2
model includes two nodes:
- sqlcoder-7b-2 Prompt (preview)
- sqlcoder-7b-2 With History (preview)
note
Model ID: @cf/defog/sqlcoder-7b-2
. This model is intended to be used by non-technical users to understand data in SQL databases.
The model is designed to help non-technical users better understand the data in their SQL databases. It works as follows:
- Understanding the database structure: The model is able to analyze the database schema and explain how the database is organized - what tables it has, the relationships between them, the columns contained in each table.
- Data Interpretation: The model can take a sample of data from the database and explain what the data represents in simple language. It will help in understanding what information each column contains, what patterns and trends can be noticed in them.
- Answering questions: Users can ask the model questions about the data in the database and it will try to provide clear explanations using simple language and examples.
Example of launching a node
A description of the node fields can be found here.
Let's run the sqlcoder-7b-2 Prompt (preview) node to process the text and generate a response with parameters:
- User Prompt - Write a query to retrieve all rows of table "X”;
- Max Tokens (Answer Size) - 256.
The output of the node execution is JSON:
- with a response to the
"response"
request;
- with the status of the action
"success": true
.
JSON
{
"result": {
"errors": [],
"messages": [],
"result": {
"response": " SELECT * FROM X;"
},
"success": true
}
}