Clever vim plugin: given a series of string literals containing an interpolated variables, prompt the user for values and send the query to a real DB! https://www.vim.org/scripts/script.php?script_id=356
(convenient, but I hope it doesn't promote code vulnerable to SQL injection)
Related Posts
I've added syntax highlighting to the prompt of my programming language!
It's not strictly necessary, but it's nice to have. It caught a bug with lexing incomplete string literals too.
LLMs are a really accessible machine learning technique. I dabbled with text classifiers a few years ago and the APIs were way more involved.
(system_prompt: String, input: String) -> String
I can prototype with this much more easily!
@tristanC That's an option! There's often cases where you know what the user wanted though, so you can provide a sensible AST that the toolchain can handle.
For example, a malformed string literal can still be parsed a string so type checking etc can be helpful.