173 Downloads Updated 6 months ago
ollama run Kaiyue/xiyansql-32b
The model can “translate” queries from natural language to SQL.
Ex:
prompt: "Only generate a single SQL query that returns each customer's total expense and number of orders, sorted by expense descending. Do not include extra examples or alternative interpretations."
Generated SQL: SELECT c.name, SUM(o.total) AS total_expense, COUNT(o.id) AS number_of_orders FROM customers c JOIN orders o ON c.id = o.customer_id GROUP BY c.id ORDER BY total_expense DESC;
I would like to thank mradermacher and XGenerationLab for their contributions to the XiYanSQL-QwenCoder-32B-2504 models hosted on Hugging Face.