
Tech
I Tried to Make Natural Language a SQL Predicate. The Numbers Said No.
A few weeks ago I got stuck on a question: what if part of a WHERE clause could be written in plain English?
SELECT *
FROM support_tickets
WHERE SEM_PREDICT (
ticket_text ,
'customer is asking for a refund'
);
I didn't want an LLM writing SQL for me, and I didn't want a chatbot. I also didn't want to send every row to an API. I wanted the natural-language condition to behave like any other predicate the engine can evaluate.
I built a prototype c...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to