this post was submitted on 02 Mar 2026
27 points (90.9% liked)

No Stupid Questions

46873 readers
774 users here now

No such thing. Ask away!

!nostupidquestions is a community dedicated to being helpful and answering each others' questions on various topics.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules (interactive)


Rule 1- All posts must be legitimate questions. All post titles must include a question.

All posts must be legitimate questions, and all post titles must include a question. Questions that are joke or trolling questions, memes, song lyrics as title, etc. are not allowed here. See Rule 6 for all exceptions.



Rule 2- Your question subject cannot be illegal or NSFW material.

Your question subject cannot be illegal or NSFW material. You will be warned first, banned second.



Rule 3- Do not seek mental, medical and professional help here.

Do not seek mental, medical and professional help here. Breaking this rule will not get you or your post removed, but it will put you at risk, and possibly in danger.



Rule 4- No self promotion or upvote-farming of any kind.

That's it.



Rule 5- No baiting or sealioning or promoting an agenda.

Questions which, instead of being of an innocuous nature, are specifically intended (based on reports and in the opinion of our crack moderation team) to bait users into ideological wars on charged political topics will be removed and the authors warned - or banned - depending on severity.



Rule 6- Regarding META posts and joke questions.

Provided it is about the community itself, you may post non-question posts using the [META] tag on your post title.

On fridays, you are allowed to post meme and troll questions, on the condition that it's in text format only, and conforms with our other rules. These posts MUST include the [NSQ Friday] tag in their title.

If you post a serious question on friday and are looking only for legitimate answers, then please include the [Serious] tag on your post. Irrelevant replies will then be removed by moderators.



Rule 7- You can't intentionally annoy, mock, or harass other members.

If you intentionally annoy, mock, harass, or discriminate against any individual member, you will be removed.

Likewise, if you are a member, sympathiser or a resemblant of a movement that is known to largely hate, mock, discriminate against, and/or want to take lives of a group of people, and you were provably vocal about your hate, then you will be banned on sight.



Rule 8- All comments should try to stay relevant to their parent content.



Rule 9- Reposts from other platforms are not allowed.

Let everyone have their own content.



Rule 10- Majority of bots aren't allowed to participate here. This includes using AI responses and summaries.



Credits

Our breathtaking icon was bestowed upon us by @Cevilia!

The greatest banner of all time: by @TheOneWithTheHair!

founded 2 years ago
MODERATORS
 

I have some data science background, and I kinda understand how LLM parameter tuning works and how model generates text.

Simplifying and phrasing my understanding, an LLM works like - Given a prompt: Write a program to check if input is an odd number (converts the prompt to embedding), then the LLM plays a dice game/probability game of: given prompt, then generate a set of new tokens.

Now my question is, how are the current LLM's are able to parse through a bunch of search results and play the above dice game? Like at times it reads through say 10 URLs and generate results, how are they able to achieve this? What's the engineering behind generating such huge verbose of texts? Cause I always argue about the theoretical limitations of LLM, but now that these "agents" are able to manage huge verbose of text I dont seem to have a good argument. So what exactly is happening? And what is the ~~limit of AI~~ non theortical limit of AI?

Edit

you are viewing a single comment's thread
view the rest of the comments
[–] affenlehrer@feddit.org 15 points 20 hours ago* (last edited 16 hours ago) (2 children)

The LLMs will just predict probabilities for the single next token based on all previous tokens in the context window (it's own and the ones entered by the user, system prompt or tool calls). The inference engine / runtime decides which token will be selected, usually one with high probably but that's configurable.

The LLM can also generate (predict) special tokens like "end of imaginary dialogue" to end it's turn (the runtime will give the user a chance to reply) or to call tools (the runtime will call the tool and add the result to the context window).

The LLM does not really care about if the stuff in the context was put there by a user, the system prompt, a tool or whatnot. It just predicts the next token probabilities. If you configure the runtime accordingly it will happily "play" the role of the user or of a tool (you usually don't want that).

Some of the tool calls are e.g. web searches etc. and the search results will be added to the context window. The LLM can decide to do more calls for further research, save data in "memory" that can be accessed by later "sessions" or call other tools (new tools pop up daily).

Models tend to get larger context windows with every update (right now it's usually between 250K - 2M tokens but the model performance usually gets worse with more filled context windows (needle in a hay stack).

To keep the window small agentic tools often "compact" the context window by summarizing it and then starting a new session with the compacted context.

Sometimes a task is split into multiple sessions (agents) that each have their own context window. E.g. one extra session for a long context subtask like analysis of a long document with a specific task and the result is then sent to an orchestrator agent in charge of the big picture.

The fact that everything in the context window regardless of the origin is used to predict the next token is also the reason why it's so difficult to avoid prompt injection. It all "looks" the same for the LLM and there is no "hard coded" way from excluding anything.

[–] KindnessisPunk@piefed.ca 9 points 20 hours ago* (last edited 19 hours ago) (1 children)

It's non-deterministic nature is honestly the scariest thing about vibe coding. In it's early days when I was experimenting with several llms it quickly became apparent that I would spend 10 times as much time cleaning up its code as I would writing it myself because it would just put in completely nonsense code that did nothing.

[–] affenlehrer@feddit.org 2 points 16 hours ago

I have mixed feelings about it. I wouldn't give code a full production application but I think it's sometimes helpful if the LLM is able to generate a prototype or scaffold to get a head start. Removes some of the friction of starting a project.

The fully vibe coded stuff I've seen so far were usually unmaintainable dumpster fires.

[–] surewhynotlem@lemmy.world 3 points 20 hours ago

This is the best explanation of prompt injection I've seen