News for hackers. Stuff that matters.
Re:What We've Learned from a Year of Building with LLMs by solidasparagus on Saturday June 01, 2024 @06:19PM (#40549566)
See if the article said this, I would have agreed - fine-tuning is a tool and it should be used thoughtfully. Although I personally believe that in this funding climate it makes sense to make data collection and model training a core capability of any AI product. However that will only be available and wise for some founders.
Re:What We've Learned from a Year of Building with LLMs by lmeyerov on Saturday June 01, 2024 @07:57PM (#40550178)
Agreed, model training and data collection are great!

The subtle bit is just doesn't have to be for LLMs, as these are typically part of a system-of-models. E.g., we <3 RAG, and GNNs for improving your KG is fascinating. Likewise, dspy's explorations in optimizing prompts, vs LLMs, is very cool.

Re:What We've Learned from a Year of Building with LLMs by solidasparagus on Saturday June 01, 2024 @08:10PM (#40550255)
> we <3 RAG, and GNNs for improving your KG is fascinating

Oh man I am so torn between this being a fantastic idea and this being "building a better slide-rule in the age of the computer".

dspy is definitely a project I want to dig into more

Re:What We've Learned from a Year of Building with LLMs by lmeyerov on Sunday June 02, 2024 @08:40AM (#40553621)
Yeah I would recommend sticking to RAG on naively chunked data for weekend projects by 1 person. Likewise, a consumer tool like perplexity's search engine where you minimize spend per user task or go bankrupt, same thing, do the cheap thing and move on, good enough

Once RAG projects become important and good answers matter - we work with governments, manufacturers, banks, cyber teams, etc - working through data quality, data representation, & retrieval quality helps

Note that we didn't start here: We began with naive RAG, then relevancy filtering, then agentic & neurosymbolic querying, then dynamic example prompt injection, and now are getting into cleaning up the database/kg itself

For folks doing investigative/analytics projects in this space, happy to chat about what we are doing w Louie.AI. These are more implementation details we don't normally write about.

Re:What We've Learned from a Year of Building with LLMs by tarasglek on Sunday June 02, 2024 @04:03AM (#40552312)
Can you give a concrete example of GNNs helping?
Re:What We've Learned from a Year of Building with LLMs by lmeyerov on Sunday June 02, 2024 @08:06AM (#40553442)
Entity resolution - RAG often mixes vector & symbolic queries, and ER improves reverse indexing

Identifying misinfo - Ranking & summarization based on internet data should be a lot more careful, and sometimes the controversy is the interesting part

For both, GNNs are generally SOTA

Re:What We've Learned from a Year of Building with LLMs by qeternity on Sunday June 02, 2024 @02:12PM (#40556135)
Have you actually used DSPy? I still can't figure out what it's useful for beyond optimizing basic few shot prompts.
Re:What We've Learned from a Year of Building with LLMs by lmeyerov on Sunday June 02, 2024 @08:06PM (#40558145)
We tried dspy and a couple others like it. They're neat and I'm happy those teams are experimenting with these frameworks. At the same time, they try to do "too much" by taking over the control flow of your code and running autotuning everywhere over it. We needed to write our own agent framework as even tools like langchain are too insecure and inefficient for being an enterprise platform, and frameworks like dspy are even more far out there.

A year+ later, the most interesting kernel of insight to us from dspy is autotuning a single prompt: it's an optimizeable model just like any other. As soon as you have an eval framework in place for your prompts, having something like dspy tune your prompts on a per-LLM basis would be very cool. I'm not sure where they are on that, it seems against the grain for their focus. We're only now reaching the point where we would see ROI on that kind of thing, it took a long time to get here.

We do run an agentic framework, so doing cross-prompt autotuning would be neat too -- especially for how the orchestrator (ex: CoT) composes with individual agents. We call this the "composition problem" and it's frustrating. However, again, dspy and friends do "too much", by trying to also be the agent framework & runtime, while we just want the autotuner.

Re:What We've Learned from a Year of Building with LLMs by qeternity on Tuesday June 04, 2024 @03:51AM (#40571791)
It’s funny: I found the optimizer (which you could quite easily rip out from DSPy) to be the most underwhelming part of the equation.
Re:What We've Learned from a Year of Building with LLMs by lmeyerov on Tuesday June 04, 2024 @10:37PM (#40580878)
The rest is neat but scary for most production scenarios, while a prompt autotuner can give significant lift + resilience in a predictable & maintainable way to most typical LLM apps

Again... I'm truly happy and supportive that academics are exploring a wild side of the design space. Just, as we are in the 'we ship code people rely on' side of the universe, it's hard to find scenarios where its potential benefits outweigh its costs.