News for hackers. Stuff that matters.
Re:Declarative Programming with AI/LLMs by yu3zhou4 on Sunday September 15, 2024 @01:17PM (#41548783)
That’s a fascinating direction to explore. It turns out that translating instructions into AI/ML tasks and wrapping it with Python code is easy to build [0]. It starts with LLM decididing what type of task should be performed, then there’s a search over Hugging Face catalog, inference on a model (picked by heuristics) with Inference Endpoints and parsing the output to most relevant Python type [1]

[0] https://github.com/jmaczan/text-to-ml

[1] Page four - https://pagedout.institute/download/PagedOut_004_beta1.pdf#p...

Re:Declarative Programming with AI/LLMs by probably_wrong on Sunday September 15, 2024 @02:31PM (#41549325)
I can't tell whether you're being honest or not. 10 years ago this was a literal joke [1] that people would tell and implement as "look at this terrible idea". Nowadays I can't tell anymore.

[1] https://gkoberger.github.io/stacksort/

Re:Declarative Programming with AI/LLMs by yu3zhou4 on Sunday September 15, 2024 @02:58PM (#41549495)
I coded this proof of concept to show how easy it is to have AI mingled with a regular Python code. I didn't know it's considered a terrible idea xd