November 2024
The art of mastering the unpredictable: shaping a GenAI solution
The keynote at scale: what we built at Orange Business, what broke, and why "unpredictable" is the architecture problem.
November 2024
The keynote at scale: what we built at Orange Business, what broke, and why "unpredictable" is the architecture problem.


Slide 1 / 24▶ Watch this part · 0:00
Slide 1
I say art, not science, on purpose. Most of us in the room are developers doing something fairly scientific, but GenAI is a new field that is only starting to get good practices and real structure.
Art is also about feeling. A few weeks before this talk, a client demo ended with "the feeling isn't right". No bug, the code works, and yet the feeling isn't right. That is the kind of problem we are dealing with.
Slide 2
What you won't get: answers. I am not going to teach you one implementation or tell you what is right and wrong.
What you should get: the right questions to ask when you build a GenAI solution, and the directions to explore depending on what you want to do.
Slide 3
I am a solution architect for generative AI at Orange Business, and at the time also in the final year of my apprenticeship at Polytech. The lecture hall we were in is, for me, a place of exams, suffering and maths. Tonight it was about AI.
Slide 4
Because we are putting AI everywhere. It is the golden hammer, the magic toy. Whether that is a good idea is up to you, but it is landing more and more in complex systems that need rigour and verification, and we don't always know how to verify it yet.
Most developers have tried to get an LLM to generate JSON, because we all want to connect everything together. It is a nightmare, and it is a good example of the unpredictable: hard to plug into other systems. We used to ship code we test. Now we add a component that is hard to test and hard to use, and we put it everywhere.
Slide 5
I won't go into the architecture. Underneath it is multiplications and additions, but for our purposes it is a magic black box, unpredictable by design.
Researchers work on explainability: knowing why a decision was made, which matters a lot in law, medicine and anything that ranks people. Others work on hybrid AI, mixing statistical AI like LLMs with symbolic AI that follows explicit rules. If a bank refuses you a loan, you want to know exactly why. "Not enough money" is fine. "Because you are a woman" is a problem.
Slide 6
We give LLMs more and more responsibility because we put them inside our systems. And it is simple arithmetic: responsibility you hand over is responsibility you no longer hold.
This is the old problem of delegation. Anyone who has asked someone else to do part of their work knows it is hard: you don't know what result you will get, and if you could control it you would do it yourself. With an LLM it is the same. We delegate a task with no guarantee it will be done well.
Slide 7
Humans found three ways to share responsibility.
The same three patterns show up with LLMs.
Slide 8
Which one to choose depends on the job. To summarise a document, multi-agent is probably useless. To analyse a codebase and suggest performance improvements, it might be worth it.
Slide 9
How do you set the cursor between those three? One rule holds in every case: one job, one responsibility, more control. Meeting notes or a car engine, it is the same contract. The engine factory has one job, deliver an engine that works, and that is all we ask of it.
Slide 10
The question people don't like: do you actually need generative AI, or even AI at all? It is cool, it does things, but you don't always need it. For maths, a calculator works great. For time-series forecasting, there are classic AI models that do it very well without an LLM in the middle.
If the answer is yes, you can move on.
Slide 11
LLMs are new tools. They can read, look and write, more or less well depending on the case.
I put "understand" and "think" in quotes because those are very human notions and I won't start a philosophical debate. What matters: from an input, they produce something like reasoning that gives a different result, usually coherent with what you put in. That is very useful for processing.
Slide 12
But a tool must be used well. You can do whatever you like with a hammer, and I hope you don't hold yours like some of these pictures.
Same with LLMs, and people regularly do absurd things with them. The simplest example is the calculator one: "here is a financial report full of numbers, do the additions and multiplications and give me a summary". It does not work. Yet it is exactly the use case people want, because the model is supposed to "understand".
Slide 13
An LLM is one part of the solution, not the solution. Think of it as a function. Around it you still have all your data, your interfaces, your servers, your users. The question is how to integrate all of that.
Slide 14
I split it into five building blocks; you could draw more or fewer.
Slide 15
Three attitudes to infrastructure.
Underneath sit two older debates. Cloud versus on-premise, which is not specific to AI. And sovereignty: governments, health and political organisations need to keep ownership of their data.
Slide 16
No explicit answer on which model to use, just the questions.
Slide 17
Slide 18
Data can come from almost anywhere. Retrieval augmented generation, in its pure definition, is taking data from outside the model and putting it in its context, wherever it comes from.
Again, it depends where your data is, whether you need real time, whether it is structured, whether it is yours.
Slide 19
The box where everything else goes, and I probably forgot some.
Slide 20
That is the whole picture on one slide. When you start a project, go through every one of these topics and ask what you really need: your data, your infrastructure, your model, the intelligence you build on top.
Slide 21
To go further, a slide I borrowed from Ali Arsanjani; it is his work, not mine. The QR code leads to his full article: more detailed, more technical, and more than 25 minutes can cover.
Slide 22
I barely mentioned users, and they are the ones who end up satisfied, or not at all. With a web interface you can tell when the right information is in the right place and it is usable enough. With an LLM, the client says the feeling isn't right: the chatbot doesn't answer properly, doesn't quite do what they want, misses the implicit.
So user experience matters more than ever, and it is even harder to measure. A whole field of UX for AI is emerging: chat, buttons or voice, depending on the use case and on people's age, culture and job. It is hard, but they are the ones who bring the money in, so they are the ones to convince.
Slide 23
One sentence: success is alignment between five things.
Slide 24
Thank you for listening.