News for hackers. Stuff that matters.
Re:Patterns for Building LLM-Based Systems and Products by fooblat on Wednesday August 02, 2023 @07:50AM (#36969571)
I'm starting to see a lot of products in "beta" that seem to be little more than a very thin wrapper around ChatGPT. So thin that it is trivial to get it to give general responses.

I recently trialed an AI Therapy Assistant service. If I stayed on topic, then it stayed on topic. If I asked it to generate poems or code samples, it happily did that too.

It felt like they rushed it out without even considering that someone might ask it non-therapy related questions.

Re:Patterns for Building LLM-Based Systems and Products by bbaumgar on Wednesday August 02, 2023 @08:48AM (#36970162)
Maybe I'm not following why this is undesirable behavior? Did the therapy session work?
Re:Patterns for Building LLM-Based Systems and Products by fooblat on Wednesday August 02, 2023 @01:22PM (#36973902)
From my perspective this is undesired by the vendor because there was no therapy session, just various free uses of OpenAI via their account.
Re:Patterns for Building LLM-Based Systems and Products by irthomasthomas on Wednesday August 02, 2023 @09:01AM (#36970304)
There's no way to avoid that except training your own model. It will, likely, always be possible to jailbreak chatbots, or just steer the conversation off course. That's why you must never give them direct access to anything.
Re:Patterns for Building LLM-Based Systems and Products by visarga on Friday August 04, 2023 @10:42AM (#37000741)
You can use a smaller model for topic classification.
Re:Patterns for Building LLM-Based Systems and Products by FemmeAndroid on Wednesday August 02, 2023 @10:10AM (#36971141)
I’m happy to believe that the therapy was ineffective, but I don’t necessarily understand why going off topic is bad. In my experience, I had a lot of conversations with therapists that were ‘off topic.’

I’ve definitely talked poetry and writing with a therapist, and while I’ve never had my therapist provide code, we’ve definitely talked tech in great detail.

Maybe those therapists were intentionally making me comfortable by engaging with shared interests. And the LLM isn’t being intentional about it, but I’m not convinced that a therapist is ineffective if they fail to stay ‘on topic’ when directed off topic by their patient.

Re:Patterns for Building LLM-Based Systems and Products by sharemywin on Wednesday August 02, 2023 @10:48AM (#36971664)
especially since you could probably just have it classify the question and then have it respond with a few canned responses if not.

"Is this question an appropriate question to ask a Therapy Assistant please respond with a single word Yes or No"

or something like that. will it be perfect probably not. but I mean it's only mental health what could go wrong...

Re:Patterns for Building LLM-Based Systems and Products by baobabKoodaa on Wednesday August 02, 2023 @11:33AM (#36972294)
I don't see the purpose of this. You will add an additional prompt (cost + latency) just to check if the user is on topic. Why? Why do we need to prevent the users of the therapy bot from generating poems or code samples? Shouldn't we rather spend our efforts optimizing the intended use case?
Re:Patterns for Building LLM-Based Systems and Products by sensanaty on Wednesday August 02, 2023 @04:25PM (#36976849)
To extrapolate from my own company and the orders we got from the suits, it basically boils down to them saying "Been hearing about this fancy Chat AI thing, can you whip up something like that quick so we can put out a press release saying $COMPANY is doing AI as well?".

Most corpos couldn't give a rat's ass about it, it's just the fancy new toy on the block that's saturating everyone's newsfeeds so they have to jump on it lest they be left in the dust by the competition who are doing the exact same shit, aka calling the "Open"AI APIs and pretending they're doing something groundbreaking.

We got interrupted mid-sprint, mid-epic to make some shitty wrapper around their APIs. I suspect the overwhelming majority of companies with fancy new "AI" features are doing the exact same shit

Re:Patterns for Building LLM-Based Systems and Products by visarga on Friday August 04, 2023 @10:40AM (#37000710)
We don't depend on OpenAI, we can use LLaMA2 models.