Best Practices for LLM Production Deployments: Evaluation, Prompt Management, and Fine-tuning

humanloop · Tech · 2023 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.4 (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: Production LLM application operations

HumanLoop's talk addresses teams shipping LLM features without enough evaluation, prompt management, or fine-tuning strategy, which causes slow iteration, unclear regressions, and premature conclusions that LLMs cannot solve a task.

Constraints:

Architecture

The production blueprint makes evaluation the core loop. Product instrumentation captures implicit and explicit user feedback, evaluation datasets are tied to prompt/model/retrieval versions, prompt management tracks experiments and collaboration, and fine-tuning uses high-quality production feedback to build private, lower-latency, domain-specialized models where the value justifies it.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  production-llm-feature[Production LLM feature] --> user-feedback-signals[User feedback signals]
  production-llm-feature --> prompt-registry[Prompt registry]
  user-feedback-signals --> evaluation-dataset[Evaluation dataset]
  prompt-registry --> evaluation-dataset
  evaluation-dataset --> fine-tuning-loop[Fine-tuning loop]
  fine-tuning-loop --> private-model[Private model]
  private-model --> production-llm-feature
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Production LLM feature Application surface that users interact with. User feedback signals, Prompt registry
User feedback signals Implicit and explicit product feedback used as evaluation evidence. Evaluation dataset
Evaluation dataset Versioned examples and scores used to compare prompt/model changes. Prompt registry, Fine-tuning loop
Prompt registry Prompt management layer for versioning, collaboration, and experiment tracking. Production LLM feature, Evaluation dataset
Fine-tuning loop Uses filtered high-quality examples to train cheaper, faster, private, domain-specific models. Evaluation dataset, Private model
Private model Fine-tuned or domain-adapted model deployed when it improves cost, latency, privacy, or quality. Production LLM feature

Data flow

A deployed LLM feature records user feedback and product signals such as acceptance and code retention. Those signals feed evaluation datasets linked to prompt, model, embedding, and retriever versions. Teams use the evaluation results to compare prompt changes, manage prompt versions, and filter high-quality production examples for fine-tuning cycles.

3 supporting quotes
“things like what was the embeddings I used or what was the prompt or what was the model and the iteration Cycles just tend to be really slow”transcript, stated
“what is the acceptance rate of suggestions and what fraction of accepted code stays in the code base at various time intervals after”transcript, stated
“they use their evalu ation feedback whether that's coming from objective sources or end users to filter the data set in some way and then they retrain”transcript, stated

Why this architecture

Evaluation, prompt management, and fine-tuning are linked because a production LLM system cannot improve if teams cannot tell which prompt, model, retriever, or data change caused a behavior change. Treating prompts as application code and feeding production feedback into fine-tuning creates an iteration loop instead of isolated experiments.

3 supporting quotes
“evaluation needs to be the core of any AI app that if you don't do this he you know I think he said something along the”transcript, stated
“the prompt is now part of your application it's part of the code it needs to be treated with a degree of uh seriousness”transcript, stated
“would kind of conclude that fine-tuning is the other one that I think often gets underestimated so you know human Loop is”transcript, stated

Models used: GPT-4 · Llama · fine-tuned models · embedding models

Scale

Alternatives considered (roads not taken)

Dump logs into generic analytics or files

Rejected because: That does not let teams triangulate product analytics with prompt, model, embedding, and retriever versions.

“job like don't uh don't try and shoehorn this into something like a you know just dumping logs to a file or using mix panel because you can't triangulate the”transcript, stated

Manage prompts only in notebooks, spreadsheets, copied code, or Git

Rejected because: Those approaches lose experiment history or make collaboration with non-technical stakeholders hard.

“playground in Jupiter notebooks in Excel code they copy paste things to GitHub to deploy it um it's not properly versioned”transcript, stated

Assume frontier models always beat fine-tuning

Rejected because: Fine-tuning can improve cost, latency, privacy, and domain performance even when raw state-of-the-art quality is hard to exceed.

“you can get significantly increased cost and latency um and also you can get private models and a really common”transcript, stated

Patterns

eval-driven-development (evaluation)

Evaluation data and production feedback drive product, prompt, and model changes.

“the only real difference was how much time they spent on evaluation”transcript, stated

prompt-versioning (prompt-ops)

Prompts are versioned and tracked against evaluation data instead of being copied around ad hoc.

“you should have some form of like way to manage your prompts that versions everything that like keeps track of what the results were against evaluation data”transcript, stated

fine-tuning-adaptation (model-ops)

High-quality production feedback is filtered and used to fine-tune models.

“co-pilot is regularly fine-tuning on the data that's scored highly from their in production application”transcript, stated

Tradeoffs

Design product feedback for evaluation

Chose implicit and explicit production signals over offline-only or generic analytics.

Rationale: Subjective LLM tasks need product-specific feedback that can be tied to versions and outcomes.

“end user feedback is like really Priceless in evaluating these things you want other sources of objective feedback as well”transcript, stated

Use prompt management beyond Git alone

Chose versioned prompt workflows with non-technical collaboration over pure text-in-code prompt storage.

Rationale: Prompt work often involves product managers, domain experts, and evaluation data that Git alone does not make easy.

“it's very common to want collaboration with non-technical people um and just hard to do that when everything lives purely in G”transcript, stated

Gotchas (what bit them)

Teams can give up on an LLM task because they cannot tell whether changes improve it.

Root cause: They change multiple prompts, models, or retrieval pieces without a shared evaluation loop.

Resolution: Make evaluation a first-class product design concern.

“they're changing loads of different things but they don't know if it's getting better or worse and they conclude it's not possible”transcript, stated

Prompt experimentation knowledge gets thrown away.

Root cause: Prompt changes live in ad hoc playgrounds, notebooks, spreadsheets, or code copies.

Resolution: Track prompt versions, results, and collaboration history.

“they're building up all this implicit knowledge about what does and doesn't work and then they throw it away”transcript, stated

Evaluation

The talk recommends instrumenting applications so evaluation combines objective task outcomes, implicit product feedback, explicit user feedback, and versioned comparisons.

Metrics: suggestion acceptance rate · accepted code retention after time intervals · evaluation dataset score · end-user explicit and implicit feedback · cost and latency after fine-tuning

“the best applications I've seen do some mixture of both explicit and implicit and user feedback”transcript, stated

Outcomes

The talk is a cross-customer best-practices synthesis rather than one product launch.

“one who had good evaluation get amazing results and the other conclude that gb4 couldn't do the task”transcript, stated