I’m not good at clojure, so I’ve fine-tuned tiny LLM to complete advanced queries (model card with all info in huggingface, dataset) with real and synt data).
It’s far from perfection, but better, than gpt-4o.
Also I’ve created a plugin for advanced query completion with openai or this model (it’s hosted on my vm).