News for hackers. Stuff that matters.
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by extr on Sunday August 13, 2023 @04:03PM (#37113821)
One thing I still don't understand is what _is_ the ChatGPT front end exactly? I've used other "conversational" implementations built with the API and they never work quite as well, it's obvious that you run out of context after a few conversation turns. Is ChatGPT doing some embedding lookup inside the conversation thread to make the context feel infinite? I've noticed anecdotally it definitely isn't infinite, but it's pretty good at remembering details from much earlier. Are they using other 1st party tricks to help it as well?
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by SOLAR_FIELDS on Sunday August 13, 2023 @04:32PM (#37114147)
They definitely do some proprietary running summarization to rebuild the context with each chat. Probably a RAG like approach that has had a lot of attention and work
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by extr on Sunday August 13, 2023 @04:45PM (#37114257)
This is effectively my question. I assume there is some magic going on. But how many engineering hours worth of magic, approximately? There is a lot of speculation around GPT-4 being MoE and whatnot. But very little speculation about the magic of the ChatGPT front end specifically that makes it feel so fluid.
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by BoorishBears on Sunday August 13, 2023 @05:23PM (#37114670)
That's mostly because there's very little value in deep speculation there.

It's not particularly more fluid than anything you couldn't whip up yourself (and the repo linked proves that) but there's also not much value in trying to compete with ChatGPT's frontend.

For most products ChatGPT's frontend is the minimal level of acceptable performance that you need to beat, not an maximal one really worth exploring.

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by extr on Sunday August 13, 2023 @05:27PM (#37114726)
What front end is better than ChatGPT? Is the OP implementation doing running summarization or in-convo embedding lookup?
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by BoorishBears on Sunday August 13, 2023 @07:03PM (#37115524)
It sounds like a cop-out but: it's one made for your use-case.

If you're letting people do fun long-form roleplay adventures using summarization alongside some sort of named entity K-V store driven by the LLM would be a good strategy.

If you're building a tool that's mostly for internal data, something that leans heavily into detailed answers with direct verbatim citations and having your frontend create new threads when there's a clear break in the topic of a request is a clever strategy since quality drops with context length and you want to save tokens for citations.

People who are saying LLMs suck or are X or are Y are mostly just completely underutilizing them because LLMs make it super easy to solve problems superficially: when it comes to actually scaling those solutions to production you need more than random RAG vector database wrappers.

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by DebtDeflation on Sunday August 13, 2023 @09:22PM (#37116396)
>alongside some sort of named entity K-V store driven by the LLM

I'd be curious to hear more about how exactly this works. You do NER on the prompt (and maybe on the completion too) and store the entities in a database and then what? How does the LLM interact with it?

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by BoorishBears on Monday August 14, 2023 @12:39AM (#37117515)
LLMs thrive at completely ambiguous classifications: you can have them extract entities and something like "a list of notable context".

Let's say we want to let our chat remember the character slammed the door last time they were in Village X with the mayor in their presence and have the mayor comment next time they see the player.

Every X tokens we can fire a prompt with a chunk of conversation and a list of semantically similar entities that already exist, letting the LLM return an edited list along the lines of:

   entity: mayor

   location: village X

   priority: HIGH

   keywords: town hall, interact, talk

   "memory, likelyEffect"[]: door slammed in face, anger at player
Now we have:

- multiple fields for similarity search

- an easy way to manage evictions (sweep up lowest priority)

- most importantly: we're providing guidance for the LLM to help it ignore irrelevant context

When the user goes back to village X we can fetch entities in village X and whittle that list down based on priority and similarly to the user prompt.

None of this has any determinism: instead you're optimizing for the illusion of continuity and trading off predictability.

You're aiming for players being shocked that next time they talk to the mayor he's already upset with them, and if they ask why he can reply intelligently.

And to my original point while this works for a game-like experience, you wouldn't want to play around with this kind of fuzzy setup for your companies internal CRM bot or something. You're optimizing for the exact value proposition of your use-case rather than just trying to throw a raw RAG setup at it

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by shubb on Sunday August 13, 2023 @04:18PM (#37113982)
This is one of the things that make me uncomfortable about proprietary llm.

They get task performance by doing a lot more than just feeding a prompt straight to an llm, and then we performance compare them to raw local options.

The problem is, as this secret sauce changes, your use case performance is also going to vary in ways that are impossible for you to fix. What if it can do math this month and next month the hidden component that recognizes math problems and feeds them to a real calculator is removed? Now your use case is broken.

Feels like building on sand.

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by BoorishBears on Sunday August 13, 2023 @05:20PM (#37114641)
I'm not sure you realize how proprietary LLMs are being built on.

No one is doing secret math in the backend people are building on. The OpenAI API allows you to call functions now, but even that is just a formalized way of passing tokens into the "raw LLM".

All the features in the comment you replied to only apply to the web interface, and here you're being given an open interface you can introspect.

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by edgyquant on Sunday August 13, 2023 @06:35PM (#37115314)
It was a contrived example to make a point, one that seems to have flown over your head.
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by BoorishBears on Sunday August 13, 2023 @06:51PM (#37115442)
No it was a bad (straight up wrong) example because you don't understand how people are building applications on proprietary LLMs.

If you did you'd also know what evals are.

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by shubb on Sunday August 13, 2023 @08:28PM (#37116098)
Thank you for pointing that out - I had assumed that things were not how they are.

Although performance has varied over time https://arxiv.org/pdf/2307.09009.pdf I also notice that the API allows you to use a frozen version of the model which avoids the worries I mentioned.

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by BoorishBears on Monday August 14, 2023 @03:33PM (#37125733)
That was a pretty deeply flawed paper, one of the largest drops recorded was simple parsing errors in their testing:

https://www.aisnakeoil.com/p/is-gpt-4-getting-worse-over-tim...

Overall evals and pinning against checkpoints are how you avoid those worries, but in general, if you solve a problem robustly, it's going to be rare for changes in the LLM to suddenly break what you're doing. Investing in handling a wide range of inputs gracefully also pays off on handling changes to the underlying model.

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by rightbyte on Monday August 14, 2023 @05:01AM (#37118910)
> No one is doing secret math in the backend people are building on.

How do you know that? With SaaS you are at the mercy of the vendor.

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by MaxLeiter on Sunday August 13, 2023 @04:15PM (#37113941)
It uses a sliding context windows. Older tokens are dropped as new ones stream in
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by extr on Sunday August 13, 2023 @04:44PM (#37114249)
I don't believe that's the whole story. Other conversational implementations use sliding context windows and it's very noticable as context drops off. Whereas ChatGPT seems to retain the "gist" of the conversation much longer.
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by lsaferite on Sunday August 13, 2023 @04:58PM (#37114399)
I mean, I explicitly have the LLM summarize content that's about to fall out of the window as a form of pre-emptive token compression. I'd expect maybe they do something similar.
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by kuchenbecker on Sunday August 13, 2023 @05:26PM (#37114702)
I feel like we're describing short vs long term memory.
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by tsunamifury on Monday August 14, 2023 @01:47AM (#37117876)
That’s exactly what it is. It’s just it turns out you need very good generalized or focused simple reasoning to do accurate compression or else the abstraction and movement to long term memory doesn’t include the most important content. Or worse distracting details.

I’ve been working on short and long term memory windows at allofus.ai for about 6 months now and it’s way more complex than I had originally thought it would be.

Even if you can magically extend the content window, the added data confuses and waters down the reasoning of the LLM. You must do layered abstraction and compression with goal based memory for it to continue to reason without distraction of irrelevant data.

It’s an amazing realization, almost like a proof that memory is a kind of layered reasoning compression system. Intelligence of any kind can’t understand everything forever. It must cull the irrelevant details, process the remains and reason on a vector that arises from them.

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by yowlingcat on Monday August 14, 2023 @02:17AM (#37118052)
Is it unfair to consider this some kind of correlate to the Nyquist theorem that makes me skeptical of even the theoretical possibility of AGI claims?
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by tsunamifury on Monday August 14, 2023 @12:19PM (#37122841)
I consider GPT4 AGI, so I'm probably not the one to ask this too. It reasons, it understands sophisticated topics, it can be given a purpose and pursue it, it can communicate with humans, and it can perform a reasonable task considering its modalities.

I don't really know what any sort of "big leap" beyond this people are expecting, incremental performance for sure. But what else?

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by lsaferite on Monday August 14, 2023 @03:55PM (#37126005)
I guess for me it needs to have active self-reflection and the ability to act independently/without directions. I'm sure there are many other criteria if I think about it some more, but those two were missing from your list.
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by tsunamifury on Monday August 14, 2023 @11:41PM (#37129913)
This is mostly just that gpt4 API/app have this disabled rather than it’s not capable.

When you enable it, it is pretty shocking. And it’s pretty simple to enable. You just give it a meta instruct to decide when to message you and what to store to introspect on.

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by lsaferite on Wednesday August 16, 2023 @02:18PM (#37151348)
As a frequent user of the OpenAI APIs, I don't really know what you are talking about here. Could you point me to some documentation?
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by qwertox on Sunday August 13, 2023 @07:04PM (#37115525)
At least in 3.5 it's very noticeable when the context drops. They could use summarization, akin to what they are doing when detecting the topic of the chat, but applied to question-answer-pairs in order to "compress" the information. But that would require additional calls into a summarization LLM so I'm really not sure if it is worth it. Maybe they dump some tokens they have on a blacklist or text snippets like "I want to" or replace "could it be that" with "chance of".
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by simonbutt on Sunday August 13, 2023 @06:24PM (#37115210)
Logic for chatgpt's "infinite context" summarisation is in https://github.com/microsoft/azurechatgpt/blob/main/src/feat...
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by furyofantares on Sunday August 13, 2023 @06:56PM (#37115476)
That doesn't really look right to me, it looks like that's for responding regarding uploaded documents. I see nothing related to infinite context.

Also this is the azure repo from OP, nothing to do with the actual ChatGPT front-end that was asked about. I highly doubt the official ChatGPT front-end uses langchain, for example.

Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by qwertox on Sunday August 13, 2023 @06:56PM (#37115483)
I don't see anything related to an infinite context in there. There's only a reference to a server-side `summary` variable which suggests that there is a summary of previous posts which will get sent along with the question for context, as is to be expected. Nothing suggests an infinite context.
Re:Azure ChatGPT: Private and secure ChatGPT for internal en... by Xenoamorphous on Monday August 14, 2023 @05:39AM (#37119129)
This is Azure's docs to create a conversation: https://learn.microsoft.com/en-us/azure/cognitive-services/o...