This is a finetuned version of
bge-m3
for the task of SQL table retrieval and ranking.
Model Details
This model can be used to identify relevant SQL tables for query to SQL translation.
The model was finetuned using a curated dataset of SQL table definitions and corresponding natural language queries.
The script used for finetuning:
Flag Embeddings
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
'What is the total biomass of fish in farms with a water temperature above 25 degrees Celsius?',
'CREATE TABLE Farm (FarmID INT, FarmName VARCHAR(50), WaterTemperature DECIMAL, Biomass DECIMAL)',
'CREATE TABLE Locations (id INT PRIMARY KEY, name VARCHAR(50), region VARCHAR(50), depth INT)',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
Training Details
Framework Versions
Python: 3.10.14
Sentence Transformers: 3.0.1
Transformers: 4.42.3
PyTorch: 2.3.1+cu121
Accelerate: 0.31.0
Datasets: 2.20.0
Tokenizers: 0.19.1
Citation
BibTeX
Runs of RaduGabriel BGE-M3-SQL on huggingface.co
91
Total runs
-15
24-hour runs
-19
3-day runs
-18
7-day runs
-8
30-day runs
More Information About BGE-M3-SQL huggingface.co Model
BGE-M3-SQL huggingface.co is an AI model on huggingface.co that provides BGE-M3-SQL's model effect (), which can be used instantly with this RaduGabriel BGE-M3-SQL model. huggingface.co supports a free trial of the BGE-M3-SQL model, and also provides paid use of the BGE-M3-SQL. Support call BGE-M3-SQL model through api, including Node.js, Python, http.
BGE-M3-SQL huggingface.co is an online trial and call api platform, which integrates BGE-M3-SQL's modeling effects, including api services, and provides a free online trial of BGE-M3-SQL, you can try BGE-M3-SQL online for free by clicking the link below.
RaduGabriel BGE-M3-SQL online free url in huggingface.co:
BGE-M3-SQL is an open source model from GitHub that offers a free installation service, and any user can find BGE-M3-SQL on GitHub to install. At the same time, huggingface.co provides the effect of BGE-M3-SQL install, users can directly use BGE-M3-SQL installed effect in huggingface.co for debugging and trial. It also supports api for free installation.