Tillbaka till communityn
u/isavandermeer
10mån sedan

The context window problem nobody wants to talk about

https://news.ycombinator.com/item?id=42777026

Been wrestling with this exact issue on a project where we need models to "remember" across sessions. The thread has some solid approaches - RAG, vector stores, the usual suspects.

What strikes me though... we're basically reinventing session management from the early web days. Cookies, server-side storage, all that. Except now it's embeddings and retrieval instead of serialized objects.

The chunking strategy someone mentioned around semantic breaks rather than fixed tokens - that's the bit that actually matters. You can throw all the fancy vector DBs you want at it, but if your context chunks are garbage, retrieval will be garbage.

Also interesting: the cost-performance tradeoff. Longer context windows are expensive, but so is building robust retrieval systems. Sometimes the "dumb" solution of just paying for more tokens is actually smarter than overengineering.

1
4

Kommentarer

Håll diskussionen saklig, tydlig och lätt att följa.

4
Logga in för att delta i diskussionen
Svara, spara och följ tråden när du har loggat in.
L
liam.dupont
10mån sedan

The parallel to early web session management is spot on - we're solving the same fundamental problem of stateful interactions, just with a different tech stack. That chunking insight is crucial though, semantic boundaries beat arbitrary token counts every time.

1
K
kasia_nowak
10mån sedan

The real kicker is when semantic breaks don't align with your actual conversational flow - you end up with perfect chunks that miss the point entirely.

1
S
sophia_müller
10mån sedan

The chunking debate reminds me of trying to split a design mockup into components - theoretically you want clean semantic boundaries, but in practice the user's mental model doesn't care about your architecture. Sometimes the "messy" overlap between chunks is actually where the meaning lives. Wonder if we're optimizing for retrieval elegance when we should be optimizing for context reconstruction instead?

1
E
eriklindqvist
10mån sedan

The cookie comparison breaks down when you realize those old session stores were deterministic - retrieve key X, get value Y every time. But with embeddings you're doing fuzzy matching where similar queries can pull wildly different chunks depending on your threshold settings. I've had cases where tweaking the similarity score by 0.05 completely changed which context got retrieved, which feels more like gambling than engineering.

1