Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[Nerdearla Argentina 2025] LLMs as domain experts

[Nerdearla Argentina 2025] LLMs as domain experts

Collaborating with domain experts is essential to practicing DDD, but sometimes it can be challenging for various reasons. Maybe the communication is not in tune to make the domain knowledge possible to use yet, or their availability to answer your questions is not enough, you might even not have a proper domain expert on the team! These might be occasions where an LLM AI primed to act like a domain expert might be just what you need. So in this talk, we’ll discuss how to use LLMs as powerful tools when practicing DDD!

Avatar for Talysson de Oliveira Cassiano

Talysson de Oliveira Cassiano

September 25, 2025
Tweet

More Decks by Talysson de Oliveira Cassiano

Other Decks in Technology

Transcript

  1. Domain - Finance - Health - Education - Commerce -

    Aviation - Mining - Transportation - … Problem A system of abstractions that describes selected aspects of a domain and can be used to solve problems related to that domain Domain Model
  2. Airplane (domain) Plane model - Business relevance - Mentioned in

    conversations - Involved in business rules
  3. Why domain experts may not be available - Their available

    time is scarce - The access to them is not easy or practical - The communication is not in tune yet - The team doesn't have domain experts (yet)
  4. If you don't know where you are going, any road

    will get you there. - Lewis Carroll
  5. Special in-flight meals - Allow airlines to offer special in-flights

    meals paid in advance - Customers order special meals up to 5 hours before the boarding - A list of meals is sent to a specialized company, which will cook and deliver them directly to the airports - Customers can rate their experience and be part of a loyalty program and get discounts and gifts
  6. In-flight trolleys (meal carts) In-flight meal shortage Cold chain HACCP

    (Hazard Analysis Critical Control Point) Long-haul flights Extra in-flight meals Turnaround schedules
  7. [...] the programmer's knowledge transcends that [knowledge] given in documentation

    [...] - Programming as Theory Building, Peter Naur, 1985
  8. But it can be good enough! The documentation does not

    contain the totality of the model
  9. Documenting the domain model - Sub-domains and bounded contexts -

    Scope and responsibilities - Ubiquitous language glossary - Context map - Use cases and user stories of your system - Tactical patterns - Aggregates, entities, value objects, repositories, domain services, …
  10. Make the documentation LLM-friendly - Don't leave important concepts implicit

    - When images are needed, add a description as well - Explicitly state possible misunderstandings - E.g.: "Don't confuse <concept> with <another concept>"
  11. Use tools to make it even more LLM-friendly - Use

    team workspaces in LLM chat tools - Connect the LLM to MCP servers of your documentation platform - GitHub - Confluence - Notion - Use well-known LLM-friendly formats for coding tools - AGENTS.md - CLAUDE.md
  12. LLMs as domain experts - LLMs can't be fully trusted,

    they can hallucinate - Arguably, humans can make mistakes too - The difference there is that humans can be held accountable - Human domain experts provide domain expertise and collaboratively cultivates the model - LLMs can be used to the former, but should not be used for the latter