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:
- LLM applications mix prompts, models, retrievers, embeddings, and product analytics
- evaluation data must connect to the exact prompt/model/retrieval version
- non-technical product and domain experts often need to collaborate on prompts
- production feedback can be subjective and noisy
- fine-tuning decisions must weigh quality against cost, latency, and privacy
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
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
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
Models used: GPT-4 · Llama · fine-tuned models · embedding models
Scale
- GitHub Copilot is cited as evaluating accepted code retention at multiple time intervals.“where they came from 15 seconds 30 seconds 2 minutes and five minutes like why those time intervals I don't know”transcript, stated
- The fine-tuning example references 70,000 production question-answer pairs.“they have 70,000 question answer pairs with feedback from in production and they filter on the ones that they know are good”transcript, stated
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.
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.
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.
Patterns
eval-driven-development (evaluation)
Evaluation data and production feedback drive product, prompt, and model changes.
prompt-versioning (prompt-ops)
Prompts are versioned and tracked against evaluation data instead of being copied around ad hoc.
fine-tuning-adaptation (model-ops)
High-quality production feedback is filtered and used to fine-tune models.
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.
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.
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.
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.
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
Outcomes
- Teams with strong evaluation can get materially better results than teams treating the same class of task as impossible.
- Fine-tuned production-feedback loops can become domain flywheels.
The talk is a cross-customer best-practices synthesis rather than one product launch.