Panel Discussion: Best Practices for LLMs in Production

various · Tech · 2023 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Generative AI production readiness and LLMOps practice

The panel addresses how teams move generative AI prototypes into production despite easy prototyping, hard deployment, cost/latency/quality tradeoffs, hardware constraints, evaluation uncertainty, modular failure modes, UX risk, and unclear RAG-versus-fine-tuning decisions.

Constraints:

Architecture

The panel recommends a production lifecycle rather than a single model trick: start with APIs to test value, whiteboard system architecture before over-investing, instrument the modular stack from day one, capture user feedback and product metrics, version code/data/indexes/prompts, use RAG for knowledge injection and fine-tuning for output style, protect users with guardrails and UX recovery paths, and iterate continuously after launch.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  API_prototype["API prototype"] --> System_design_review["System design review"]
  API_prototype --> Production_observability["Production observability"]
  System_design_review --> RAG_retrieval_layer["RAG retrieval layer"]
  System_design_review --> Fine_tuning_track["Fine-tuning track"]
  System_design_review --> UX_and_guardrails["UX and guardrails"]
  Production_observability --> User_feedback_loop["User feedback loop"]
  Production_observability --> Evaluation_dataset_and_metrics["Evaluation dataset and metrics"]
  Production_observability --> Modular_LLM_stack["Modular LLM stack"]
  Modular_LLM_stack --> RAG_retrieval_layer
  Modular_LLM_stack --> Fine_tuning_track
  Modular_LLM_stack --> Prompt_and_artifact_versioning["Prompt and artifact versioning"]
  Modular_LLM_stack --> UX_and_guardrails
  RAG_retrieval_layer --> Prompt_and_artifact_versioning
  Fine_tuning_track --> Evaluation_dataset_and_metrics
  Prompt_and_artifact_versioning --> Evaluation_dataset_and_metrics
  UX_and_guardrails --> User_feedback_loop
  User_feedback_loop --> Evaluation_dataset_and_metrics
  User_feedback_loop --> System_design_review
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
API prototype Low-friction initial implementation used to validate product traction before custom model investment. System design review, Production observability
System design review Architecture planning step that decides whether value comes from RAG, model interaction, fine-tuning, simpler ML, or product design. RAG retrieval layer, Fine-tuning track, UX and guardrails
Production observability Tracks usage, component-level behavior, traces, latency, user interactions, and failure locations after launch. User feedback loop, Evaluation dataset and metrics, Modular LLM stack
Modular LLM stack The assembled prompts, retrieval, model calls, post-processing, UX, and infrastructure blocks that deliver the feature. RAG retrieval layer, Fine-tuning track, Prompt and artifact versioning, UX and guardrails
RAG retrieval layer Retrieval/indexing system used to provide factual knowledge and context to models. Modular LLM stack, Prompt and artifact versioning
Fine-tuning track Model adaptation path for response style, domain terminology, and output behavior. Evaluation dataset and metrics, Modular LLM stack
Prompt and artifact versioning Version control for prompts, data, indexes, and code so changes can be traced. Evaluation dataset and metrics
UX and guardrails User-interface and input/output protection layer for bad, offensive, dangerous, or privacy-leaking outputs. User feedback loop
User feedback loop Human ratings, interactions, edit distance, refreshes, and product metrics that guide iteration. Evaluation dataset and metrics, System design review
Evaluation dataset and metrics Use-case-specific ground truth, prompts, and optimization/supporting metrics used to decide model or system changes. Fine-tuning track, Prompt and artifact versioning

Data flow

A generative AI feature starts as an API-backed prototype, moves through system-design review, launches with observability across modular components, captures user feedback and top-line metrics, and feeds evaluation results into prompt, retrieval, fine-tuning, data, index, and UX iterations.

3 supporting quotes
“start with like some like some open like an API for example open AI to test out if this product is even having any traction”transcript, stated
“having the visibility or observability stack in place for the first time that you get it into the wild is so crucial”transcript, stated
“building out this data set that would essentially be your ground truth data set uh and then defining the metrics that you will be using to evaluate”transcript, stated

Why this architecture

The panelists argue that model choice alone is not the production system. LLM applications are modular, non-deterministic, and expensive, so teams need system design, observability, evaluation, versioning, UX protection, and iteration from the first deployment.

3 supporting quotes
“a lot of the value in llms doesn't come from the model itself which seems like magic but comes from the system and the product you build around it”transcript, stated
“these systems are very modular they're they're little Lego blocks that were were're piping together”transcript, stated
“we need to version uh everything from our code to our data uh to our prompts and we need to be able to see how the system is working”transcript, stated

Models used: GPT-4 · OpenAI models · Open source LLMs · RAG systems · Fine-tuned models

Scale

Alternatives considered (roads not taken)

Start by fine-tuning or hosting custom models

Rejected because: The panel recommends first testing traction with API access because fine-tuning and hosting introduce major costs.

“before you start developing your own LMS before you start fine tuning things right it's like there's a lot of costs involved”transcript, stated

Treat production as the finish line

Rejected because: Panelists frame production as the start of iteration, where interesting failures and improvements happen.

“the project starts when you have deoy the model for the first time”transcript, stated
“everything interesting happens after production”transcript, stated

Optimize token usage and latency because they are easy to measure

Rejected because: The panel warns that easy metrics may not reflect user value or experience.

“measure the easy things like oh what's s token usage and what's their latency I mean who cares may maybe somebody cares”transcript, stated
“in the end of the day it's about user experience and whether whatever your whatever is this thing that's powered by your wonderful favorite llm”transcript, stated

Use fine-tuning for fresh factual knowledge

Rejected because: Panelists distinguish RAG for knowledge injection from fine-tuning for style, terminology, and output behavior.

“if you are thinking um I want it to stay up to date with my knowledge well you probably shouldn't be using fine tuning”transcript, stated
“you should probably be using some kind of rag uh system”transcript, stated

Patterns

observability-tracing (operations)

The panel recommends observability before production so teams can trace user interactions and locate failing components in modular LLM stacks.

“you need observability before you even get to production”transcript, stated
“being able to know which Lego block handles which part of the application uh is is crucial”transcript, stated

eval-driven-development (evaluation)

The panel emphasizes user feedback, ground-truth datasets, and use-case-specific metrics as the basis for production iteration.

“user feedback is the best feedback you can get it's the best metric you can get your users will tell you if your model is failing”transcript, stated
“think about the data sets uh what's your data set what is your how how do you represent your use case in the data set”transcript, stated

model-routing (model-operations)

Teams are advised to prototype with API providers, then decide whether to fine-tune, prompt open-source models, or use other providers.

“prototype with GBC 4 is the best and easiest way to do it and then figure out what you want to do with your use case”transcript, stated
“whether it's fine-tuning whether it's just prompting an open source model or whether it's using one of the other providers”transcript, stated

rag-retrieval (retrieval)

RAG is positioned as the right mechanism for adding factual knowledge and current context to model outputs.

“rag is a really good way to get your model to know things like know facts um that are less likely to be wrong”transcript, stated
“the retrieval uh part of rag is the uh the highest leverage part of that system”transcript, stated

prompt-versioning (prompting)

Prompt, data, index, and code versioning are treated as non-negotiable for production LLM systems.

“like versioning software versioning tools you can't do these things without them I don't just mean for like code uh but like your data your indices”transcript, stated
“we need to version uh everything from our code to our data uh to our prompts”transcript, stated

guardrails-io-filtering (safety)

The panel recommends input and output guardrails to protect users from bad outputs and prevent PII leakage to public endpoints.

“thinking about gar rails so if like basic output checking uh and in many cases basic input checking”transcript, stated
“make sure your users are not leaking pii into your application”transcript, stated

Tradeoffs

Prototype with model APIs before investing in custom models.

Chose API-backed validation over Immediate fine-tuning and self-hosting.

Rationale: APIs reveal whether users want the product before the team pays for larger GPUs, tuning, and hosting.

“start with like some like some open like an API for example open AI to test out if this product is even having any traction”transcript, stated
“there's a lot of costs involved with like tuning and then especially with hosting those models”transcript, stated

Treat production as an iteration point.

Chose Launch with observability and improvement loops over Waiting for a perfect pre-production model.

Rationale: Real users reveal prompt classes, failures, and interaction patterns that cannot be fully anticipated in the lab.

“production like kind of almost is like a Boogyman that like everything has to be perfect”transcript, stated
“what is actually like the whole like a tool chain of actually going back and noticing those issues and fixing those issues”transcript, stated

Use one primary optimization metric with supporting metrics.

Chose Focused use-case-specific evaluation over Optimizing dozens of benchmark metrics at once.

Rationale: A single north-star metric plus supporting indicators is easier to manage and align with the user experience.

“pick one that you want to optimize pick a handful that are important to you”transcript, stated
“you don't want to like sit there and try to optimize all over the place”transcript, stated

Gotchas (what bit them)

Prototype ease hides production difficulty.

Root cause: LLMs are computationally expensive and force cost-latency-quality tradeoffs that are less severe in traditional ML.

Resolution: Prototype quickly, but plan system architecture, infrastructure, observability, and hardware strategy before scaling.

“it's so easy to get to two prototype and secondly because it is so difficult to get to production”transcript, stated
“we have this really really obvious tradeoff that you have to make between cost latency and quality in language models”transcript, stated

Teams may optimize irrelevant metrics.

Root cause: Token usage and latency are easy to measure but may not show whether users receive value.

Resolution: Pick two or three metrics tied to user experience, plus supporting metrics across the stack.

“determine two three things that actually reflect whether your app or this experience is useful to the user”transcript, stated
“measuring some amount of metrics between kind of the translation points in your stack is also key”transcript, stated

User experience is often treated as an afterthought.

Root cause: Teams focus on fine-tuning and model plumbing while forgetting that non-deterministic outputs can be offensive, dangerous, or confusing.

Resolution: Design recovery UX and guardrails so users can get unstuck and stay protected.

“very little focused on the user experience uh and especially around how do you protect your user”transcript, stated
“if the user is like stuck somewhere with uh with a bad output or something that doesn't make sense how do they get un stock”transcript, stated

RAG/fine-tuning confusion wastes effort.

Root cause: Teams treat RAG and fine-tuning as alternatives instead of tools for different failure modes.

Resolution: Use RAG when context is missing or stale; use fine-tuning when output style, terminology, or format is wrong.

“Rag and fine-tuning are are not alternatives to each other they they have different purposes”transcript, stated
“F tuning is what we use to teach our models how to Output uh the kinds of outputs we want in the way we want”transcript, stated

Evaluation

The panel recommends combining human user feedback, use-case-specific product metrics, supporting stack metrics, ground-truth prompt datasets, model-assisted critique where useful, and frameworks such as HELM/RAGAS without optimizing every available metric.

Metrics: Thumbs up/down feedback · User interaction counts · Edit distance for summarization · Refresh rates for interactive experiences · Semantic similarity to example sentences · Levenshtein distance for output diversity · Top-line use-case metric plus supporting indicators · Prompt drift against production prompt datasets

3 supporting quotes
“that could mean something as simple as uh having like thumbs up or thumbs down”transcript, stated
“semantic similarity to our example sentences but we want u a big difference in Le stain distance”transcript, stated
“making sure that the prompts that you're that you've originally evaluate around or not drifting”transcript, stated

Outcomes

This is a multi-speaker 2023 panel, so the extraction captures practitioner consensus and cautions rather than a single system's production metrics.

3 supporting quotes
“iteration and Improvement constant iteration and Improvement is uh is necessary uh with these systems they don't behave in a deterministic way”transcript, stated
“production is hard from this Hardware L as well um in terms of getting access to Hardware”transcript, stated
“system design really really matters whiteboard it with an expert”transcript, stated