SQLCoder-7b-2 is live.

SQLCoder-7b-2 is live.

Faster, Smaller, The best Text-to-SQL LLM model.

Overview

SQLCoder is a Text-to-SQL LLM family from Defog.ai (YC W23): a human-level AI analyst for every enterprise user.

Text-to-SQL is a crucial task. This task can convert text (natural language) into SQL statements based on the table schema.

Text-to-SQL enables end users to retrieve data from a database instead of having to write SQL statements.

Benchmark

According to the Defog.ai team's benchmark, SQLCoder-7b-2 and SQLCoder-70b-alpha have accuracy that surpasses that of GPT-4.

They have proposed a Text-to-SQL benchmark named SQL-Eval.

image/png
SQLCoder performance chart

Model card

defog/sqlcoder-7b-2 · Hugging Face
We’re on a journey to advance and democratize artificial intelligence through open source and open science.

Limitation

  1. Text-to-SQL is not the same as Text-to-Analytic. This model should be treated as a translation from text into SQL. Do not treat this model as an analyst or ask it questions like 'How can we improve sales?' or 'Tell me about the insights.'
  2. Read-access only. 'This model has not been trained to reject malicious requests from users with write access to databases,' according to the Defog.ai team.
  3. Only PostgreSQL syntax. This model was trained on PostgreSQL syntax, so it is not capable of handling other database syntaxes.

Playground

Link to playground.

The playground contain 3 sections.

1.Table schema DDL and relation.

First is the DDL schema.

You could generate the schema from your database and paste it directly. The DDL schema helps the LLM understand the existing tables.

Second is the relation(s).

The relations help the LLM perform joins between tables. They represent the primary keys and foreign keys.

2.Question.

The question section could be the user's question. The user could ask anything that relates to the DDL schema and relations that were provided in the previous section.

3.SQL Statement.

The response from the model is the 'SQL statement'.

The SQL statement alone is not helpful for the end user. You need to execute this SQL statement using a query engine that connects to your database.

After you get the response from the database, you could directly show the result from the SQL query or refine the result and the question using another LLM.

How to use

The DDL schema and relations must be contained in the 'system' role.

The question must be contained in the 'user' role.

Like this example.

[{
  'role': 'system',
  'content': '{DDL}'
  },
  {
  'role': 'user',
  'content': ' What are our top 3 products by revenue in the New York ? '
}]

Provide a runnable code sample in this notebook.

Float16-example/bare_metal/TextToSQL at main · vultureprime/Float16-example
Contribute to vultureprime/Float16-example development by creating an account on GitHub.

Register : https://app.float16.cloud/register

Read more

GPU monitoring dashboard

GPU monitoring dashboard

บทความนี้ผมจะพาทุกคนมาเรียนรู้การทำ monitoring dashboard ของ GPU ด้วย grafana กันนะครับ โดยจะเริ่มกันตั้งแต่วิธีการติดตั้ง grafana จนไปถึงการตั้งค่าให้รับค่าการทำงานจาก gpu โดยใช้ dcgm-exporter ผ่าน prometheous จนสามารถสร้างเป็น dashboard ที่ดูการทำงานต่างๆของ GPU ได้ และทั้งหมดเราจะทำการ

By matichon maneegard
ทำ E2E Test ด้วย AI โดยใช้ Midscene.js ร่วมกับ Playwright

ทำ E2E Test ด้วย AI โดยใช้ Midscene.js ร่วมกับ Playwright

E2E testing แบบที่ไม่ต้องเขียน selector ในโพสต์นี้เราจะมาลองใช้ Midscene.js สำหรับควบคุบ UI แบบที่สั่งด้วย Natural language ร่วมกับ Playwright ซึ่งเป็น framework ยอดนิยมสำหรับการทำ automated browser test Midscene.js คืออะไร? Midscene.js เป็น JavaScript SDK ที่ใช้โมเดล

By matichon maneegard
Nvidia GPU Driver Setup: Essential Steps for LLM Developers

Nvidia GPU Driver Setup: Essential Steps for LLM Developers

ยุคนี้ที่ AI มาแรงแบบสุดๆ LLM น่าจะเป็นสิ่งที่ทุกบริษัทพูดถึงกัน หลายๆที่อยากให้ LLM Solution เข้ามามีบทบาทในบริษัทมากขึ้น ไม่ว่าจะเป็นการทำ Chatbot, RAG เป็นต้น สิ่งที่ตามมาก็คือ Solution เหล่านั้นต้องอยู่ใน Infrastructure ของบริ

By matichon maneegard
ทำ Data Extraction จาก image โดยใช้ LLM Multimodal

ทำ Data Extraction จาก image โดยใช้ LLM Multimodal

ในการทำ Data Extraction จากรูปภาพ เช่น สลิปใบเสร็จ, บัตรประชาชน, หรือแบบฟอร์มกระดาษ วิธีดั้งเดิมมักใช้ OCR (Optical Character Recognition) ร่วมกับการเขียน rule หรือ regex เพื่อแยกข้อมูลออกมา ซึ่งยุ่งยากหรือเมื่อรูปแบบข้อมูลเปลี่ยน ซึ่งจริงๆแล้วเรามี

By matichon maneegard