The Hidden Stack Behind Good AI Systems: Visual Workflows Above, Retrieval Discipline Below

Ante Gojsalić

Hatched by Ante Gojsalić

May 12, 2026

9 min read

87%

0

The Real Question Is Not Whether AI Works, But Where It Fails

A curious pattern is emerging in AI practice: the tools that make language models easiest to use often make their weaknesses easiest to ignore. A visual interface lets you drag a PromptTemplate, an LLM, and an LLMChain onto a canvas and feel productive almost instantly. A semantic embedding API lets you turn text into vectors and retrieve relevant passages with minimal friction. Yet the hard part is not wiring things together. The hard part is deciding what should be visible, what should be measurable, and what should be left to the model at all.

That is the deeper tension connecting these two ideas. One side is about making LLM systems buildable, the other is about making retrieval systems trustworthy. Together, they point to a larger truth: the future of AI engineering will belong less to those who can call models, and more to those who can design the right boundaries around them.

The most important question in AI application design is not, "Can the model do this?" It is, "Which layer of the system should be responsible for this decision?"

That shift in perspective changes everything. It moves us from novelty toward architecture, from clever prompts toward resilient pipelines, and from impressive demos toward systems that still perform when the data changes, the language changes, or the budget tightens.


Visual Builders Make AI Accessible, But Accessibility Is Not the Same as Control

A drag and drop interface for language model workflows is appealing for a simple reason: it reduces the cognitive cost of experimentation. Instead of writing boilerplate, you can sketch a chain, connect components, and watch an idea become concrete. That is not a trivial advantage. In practice, visual composition lowers the barrier between intention and implementation, which is exactly what early exploration needs.

But visual systems create a seductive illusion: because the workflow is visible, the behavior feels understandable. In reality, a node graph can conceal just as much complexity as it reveals. A PromptTemplate may look harmless on a canvas, yet the true outcome can depend on wording subtleties, token limits, temperature, hidden assumptions, or the model’s uneven ability to follow instructions. The interface gives you a map, but not the terrain.

This is where many AI projects drift into trouble. Teams prototype rapidly, then assume the same arrangement that made a demo work will remain stable under load, across users, or across languages. The interface makes composition easy, but composition is not the same as correctness. It is easier to connect components than to know whether they are connected for the right reasons.

A useful analogy is home wiring. A visual builder is like seeing the breaker panel and labeling each circuit. Helpful, certainly. But no one would confuse a labeled panel with a safe electrical system. The deeper questions are about load, redundancy, failure modes, and what happens when one circuit draws more than expected. AI workflows are the same. The surface is about design. The substance is about behavior under stress.

This is why workflow tools matter most when they encourage explicitness. They should not just make chains easier to assemble. They should make assumptions easier to inspect. The best visual systems do not merely speed up construction. They force practitioners to confront structure.


Retrieval Is Not a Model Problem, It Is a Boundary Problem

If visual workflow tools help us build the outer shape of AI applications, retrieval evaluation helps us understand their inner limits. Embeddings are often treated like a universal key: convert text into vectors, search nearby vectors, and trust the result. But the evidence from real retrieval settings suggests something more nuanced. The strongest approach is not always using embeddings as the first stage retriever. Often, a cheaper symbolic method like BM25 gets you into the right neighborhood, and embeddings do better as a re-ranking layer.

That finding is more important than it first appears. It means that semantic similarity is powerful, but not omnipotent. A dense vector search can recognize meaning in a broad sense, yet still miss the lexical precision that exact matching provides, especially across languages and domains. In English, reranking BM25 with embeddings can be remarkably cost effective. In multilingual retrieval, the story becomes more complex, and a hybrid model often performs best, though at a higher cost.

The practical lesson is not simply "use embeddings carefully." It is that retrieval systems are all about division of labor. BM25 is good at recall when word overlap matters. Embeddings are good at semantic judgment when the candidate set is already plausible. Together, they form a pipeline that resembles a legal process: one stage narrows the pool, another stage decides the case.

Good retrieval is not a single leap to the answer. It is a sequence of increasingly expensive judgments.

This is a powerful design pattern because it treats computation as a scarce resource. The first stage asks, "What could possibly be relevant?" The second stage asks, "What is actually relevant?" That distinction matters in real systems, where latency, budget, and scale are not theoretical constraints. The difference between first stage retrieval and reranking is the difference between searching a city and reading the best 20 addresses carefully.

The multilingual result is especially revealing. It reminds us that semantics is not universal in the naive sense. Words travel differently across languages, scripts, and cultural contexts. A vector space can appear elegant while silently flattening those differences. A hybrid approach respects the fact that some signals remain local, lexical, or language specific, even when deeper semantic regularities are useful.


The Common Thread: AI Systems Need a Theory of Responsibility

At first glance, a visual chain builder and retrieval evaluation on embeddings seem like separate concerns. One is about developer experience. The other is about search quality. Yet they converge on a single design question: which part of the system should be responsible for which kind of reasoning?

That question is the hidden architecture of modern AI systems. Should the model infer everything from scratch, or should a component upstream filter, structure, or constrain the input? Should the workflow itself encode the logic, or should the model infer the logic from a prompt? Should retrieval be broad and permissive, or narrow and exact before semantic interpretation begins?

A mature AI application does not treat the model as a monolith. It decomposes intelligence into roles. The workflow layer handles orchestration. The retrieval layer handles evidence selection. The language model handles synthesis, generation, and flexible reasoning. When those roles are blurred, systems become brittle. When they are distinct, systems become inspectable and improvable.

This creates a new mental model: think of AI applications as epistemic pipelines rather than just software pipelines. Each stage is not only transforming data, it is transforming certainty. A lexical retriever produces candidates with one kind of confidence. A vector reranker produces a second kind. A prompt chain turns evidence into language. The quality of the final answer depends on whether each layer is assigned the kind of judgment it is actually good at.

That is why the combination of visual composition and retrieval discipline is so interesting. Visual builders are most powerful when they make responsibility explicit. Retrieval systems are most powerful when they divide labor between candidate generation and semantic judgment. Put differently, both ideas reward the same discipline: do not ask one component to do everything just because it can do something impressive.

This is the central insight many teams miss. AI maturity is not defined by how much intelligence can be concentrated into a single model call. It is defined by how well intelligence is distributed across the system.


A Practical Framework: Separate the Three Questions

To build better AI systems, it helps to separate three questions that are often conflated.

  1. What should the system know?
  2. What should the system infer?
  3. What should the system generate?

The first question belongs to retrieval. If the answer requires source material, policies, product facts, or domain documents, the system needs a strategy for bringing that knowledge in. Here, the goal is not elegance. It is coverage, relevance, and cost control. BM25 may be better than a fancy vector search in some scenarios simply because it preserves strong lexical anchors.

The second question belongs to ranking and filtering. Once candidate documents are available, embeddings can help decide which ones are semantically closest to the query intent. This is where dense representations shine, because they can capture paraphrase, context, and broader meaning. But even then, they are best used after the candidate pool is already reasonable.

The third question belongs to the language model. Generation is where the model should synthesize, explain, transform, or draft. This is the moment for fluency and generalization. But generation should be the final stage, not the first. If the model is forced to invent before evidence is gathered, you get confident nonsense. If it is forced to retrieve before it can reason, you get bloated answers without judgment.

A visual workflow builder can help encode this separation. A retrieval pipeline can make it explicit. Together, they create a more disciplined AI stack, one where each layer earns its place. The result is not just better performance. It is better debuggability.

Imagine a customer support assistant. A naive design sends the user question directly to a model and hopes for the best. A better design first retrieves policies with BM25, then reranks the top passages using embeddings, then feeds the best evidence into a prompt chain that generates a response. If the output is wrong, you can inspect each stage. Was the retrieval too narrow? Was reranking misled by semantics? Was the prompt too vague? That is the difference between a toy and a system.


Key Takeaways

  • Treat AI applications as layered judgment systems, not single model calls. Different layers should own different kinds of reasoning.
  • Use retrieval to constrain knowledge before generation. The model should synthesize evidence, not replace evidence.
  • Prefer hybrid retrieval over pure semantic search when precision matters. BM25 plus reranking often beats embeddings alone, especially under budget and multilingual constraints.
  • Use visual workflow tools to expose assumptions, not hide them. A clear canvas should make debugging easier, not just building faster.
  • Design for inspectability. If you cannot tell which layer failed, you cannot improve the system reliably.

The New Measure of Intelligence Is Not Centralization, It Is Coordination

There is a tempting fantasy in AI engineering: that one powerful model, connected to a few tools, will eventually absorb the complexity of the whole stack. But the evidence points in the opposite direction. The more real the use case becomes, the more important coordination becomes. Search needs one logic, orchestration needs another, and generation needs another still.

That is why the most useful AI systems may look less like magic and more like good organizations. They have roles, handoffs, and checks. They separate discovery from decision, candidate retrieval from final ranking, and interface from infrastructure. They do not assume every component should behave like a genius. They assume the system becomes smarter when each component is allowed to specialize.

Visual builders help us see that specialization. Retrieval research reminds us to respect it. Together, they suggest a broader principle: AI works best when intelligence is designed as choreography, not concentration.

That is a useful way to reframe the entire field. The goal is not to hide complexity inside a black box. The goal is to arrange complexity so that each part is responsible for what it can actually do well. When that happens, you get systems that are not only powerful, but understandable, adaptable, and worth trusting.

And perhaps that is the deepest lesson here. The real breakthrough in AI is not that models can do more. It is that we are finally learning how to build systems where models do less, but do it in the right place.

Sources

← Back to Library

Hatch New Ideas with Glasp AI 🐣

Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)

Start Hatching 🐣
The Hidden Stack Behind Good AI Systems: Visual Workflows Above, Retrieval Discipline Below | Glasp