
UNDERSTANDING THE SYSTEM
OpenAI Cookbook and Llama Cookbook: turning a recipe into evidence
A notebook that runs first shows that an example works under particular conditions. This dossier compares the OpenAI and Meta approaches, explains the prerequisites and offers a method for moving from a copied demonstration to a documented, testable experiment.
Two recipe collections, several ways to learn
OpenAI Cookbook groups examples by topic; Llama Recipes is now called Llama Cookbook. Meta’s repository separates getting started, end-to-end use cases and third-party integrations. This entry retains its historical title for provenance.
A recipe starts with a technical problem and illustrates an implementation. It can be an excellent way to learn one operation without supplying a course’s progression, marked exercises and guidance. Start with an observable question: extracting fields, finding a passage, selecting a tool or adapting a model. Browsing many notebooks without being able to explain their inputs and errors provides little basis for judging a skill.
The original notice says there is no assessment. That should not be read as an absence of software tests or system evaluation: some recipes include them. A model score, a passing software test and assessment of a learner are different things. A certificate, professional certification or degree requires a separate arrangement whose issuer and criteria must be checked.
Read the prerequisites in the cells and their dependencies
To use a recipe well, be able to read Python or the chosen language, create an isolated environment, handle JSON and trace an exception. API work adds requests, responses, authentication and network failures. Local execution also requires an understanding of the runtime installation, weight files and memory limits. These are readiness criteria proposed here, not a common entrance examination for both collections.
Read every cell before the first run: downloads, remote calls, file writes and environment changes. A notebook preserves state; a cell may succeed because a variable was created earlier outside the visible execution order. Restarting and running in order is an essential learning check. If you cannot identify what leaves the machine or consumes compute, begin with the workshop’s fictional data.
The technical pages consulted are mainly in English. This dossier’s French, English, Chinese, Hindi and Spanish explanations support reading; they do not guarantee that every provider notebook exists in all five languages. Keep function and parameter names unchanged in translated notes.
- Read
- Describe each input, dependency, call and output before running the code.
- Diagnose
- Distinguish installation errors, service limits, invalid formats and semantically wrong answers.
- Explain
- Justify why the recipe fits the task and what observation would disprove your hypothesis.
Hosted APIs and accessible weights bring different responsibilities
OpenAI Cookbook includes API examples; the Meta instructions consulted include local execution and fine-tuning recipes for one or multiple GPUs. Avoid reducing the comparison to remote OpenAI versus local Meta: Meta’s repository also presents provider integrations.
A hosted experiment involves constructing requests and studying responses and service behavior. Running weights on infrastructure you manage adds responsibility for loading, memory, the runtime and operations. Additional control does not replace testing. Equally, a managed service does not remove the need to understand its limits and the data you send.
Access to code does not automatically provide access to every model, GPU capacity or free compute. Check actual access, the recipe’s requirements and the full budget before choosing. This dossier’s workshop avoids those dependencies; that property is not a promise about every provider example.
| What to examine | Hosted API | Weights run on learner-managed infrastructure |
|---|---|---|
| What to record | Model identifier, parameters, requests and responses, errors and execution date. | Weight revision, tokenizer, runtime, libraries, hardware and settings. |
| What to size | Call volume, concurrency, service limits, retries and associated storage. | Weight and runtime memory, context, batches, disk space and compute time. |
| What the demo cannot establish | Future availability, identical behavior or actual cost for your workload. | Compatibility with every machine, production throughput or free operations. |
| Data question | Which data and traces are sent to the service and retained under the configuration? | Which downloads, supporting services and logs actually exist in the workflow? |
Create a reproducibility contract before changing the recipe
A URL pointing to main is a moving target. For an experiment you want to defend, record the exact path and repository revision, language and dependency versions, model identifier or weight revision, and the data and settings used. Retain the launch command and acceptance criteria as well. For a remote service, documenting conditions does not guarantee identical answers on every call.
First establish a minimal baseline, then change one decision: the prompt, the number of retrieved passages or an execution setting. Changing model, data and prompt together makes a gain difficult to attribute. Reserve cases that are not used to select the variant; if you inspect them to tune the system, they become development data.
OpenAI’s prompting guide recommends managing prompts with code and its checks. Apply the same principle to adapted examples: a behavior change deserves an identifiable revision. A fixed seed may help some local operations; it is not a general guarantee of deterministic hardware or service behavior.
Cognibiz methodology diagram. The three stages describe conditions for a comparison, not a provider’s internal pipeline or a guarantee of bit-for-bit reproduction.
- 01 · Fix the baseline
- Associate a revision, environment, data and criteria with a recorded run. Downloading the recipe alone is insufficient.
- 02 · Isolate the change
- Compare a variant with that baseline while changing one identified decision. Keep cases and judging methods comparable.
- 03 · Accept or reject
- Check reserved cases and consequential errors before accepting a gain. A documented failure is still a useful learning result.
Prompts, RAG, fine-tuning and tools address different problems
Classifying a recipe by mechanism avoids crediting the model for work done elsewhere in the system. A prompt changes the request; retrieval supplies passages; fine-tuning adapts parameters; a tool call proposes an interaction with a function. OpenAI’s tool documentation separates the model’s proposal from the application’s execution of the function.
Teaching example: asking a model to behave better does not supply a refund policy that changed yesterday. Retrieval may find the policy, but an irrelevant passage remains a poor input. Issuing a refund still requires authorization checks and a confirmed execution result. A sentence saying that a refund was issued is not that confirmation.
Parameter-efficient adaptation methods such as LoRA restrict which parameters are trained in the relevant recipes. They do not remove the base model, data or validation. Identify the cause before choosing training to fix a simple formatting error or a missing document.
| Mechanism | What the learner should explain | Useful check |
|---|---|---|
| Prompt and examples | Which behavior is requested and which cases contradict it. | Ambiguous cases, expected refusals, format and content. |
| RAG · retrieval-augmented generation | Which passages are retrieved and then supplied to generation. | Passage relevance, source, freshness and answer faithfulness. |
| Fine-tuning | Which parameters or adapters change and which data guide adaptation. | Comparison with the starting model on reserved cases. |
| Tool calling | Which function may be proposed and who decides to execute it. | Arguments, authorization, failures, repetitions and action confirmation. |
Three well-formed answers can hide two task failures
Structured Outputs constrains response structure in supported cases, but the documentation notes that the content can still be wrong. Define what success means: matching a schema, choosing the expected action and satisfying evidence requirements are different checks.
Our fictional scenario has three cases, A, B and C. A and B require an answer with an approved source; C requires escalation to a person. All three outputs match the expected shape, two choose the right action, and only one meets both action and source requirements. The checks are cumulative: the final result is their intersection, not the average of two scores.
The figure uses exactly the data in the next workshop. Each cell represents one fictional output in A, B, C order. An approved identifier only establishes that a reference belongs to our list: this small program does not read the document or verify that it supports a claim. A real document evaluation must add that judgment.
Cognibiz scenario with three hand-written outputs. Crossed cells fail the corresponding cumulative check. No model produced these data; the fractions do not measure OpenAI or Llama.
- 01 · Shape: 3 / 3
A, B and C have the expected fields and types. Format alone detects neither task failure.
- 02 · Action: 2 / 3
A and B choose answer. C also chooses answer although the reference requires escalate, so it fails.
- 03 · Action and source: 1 / 3
A cites the approved doc-1. B omits a required source. Only A passes all checks in this exercise.
References for this chapter[11]
A local test harness with no model, download or paid call
This original program uses only Python’s standard library. Save it to a file and run it with Python 3. The names answer, escalate, action, source and doc-1 are values in the fictional protocol; keep them unchanged in every language. No key, external library, network connection or GPU capacity is required.
The expected output is A True True True, B True True False and C True False False, followed by {'schema': 3, 'route': 2, 'accepted': 1}. The assertions check the stated total and rejection of a few malformed inputs. They assess neither model quality nor coverage of every possible error.
For self-assessment, explain B’s failure without looking at the calculation; then add doc-1 to its output: the accepted total becomes 2. Finally change C’s action to escalate: it becomes 3. These are manual fixture corrections, not a learned improvement. Add a fresh case and its expected outcome before changing your system; otherwise you mostly measure the ability to repair already-known examples.
import json
cases = [
{"id": "A", "expected": "answer", "source_required": True},
{"id": "B", "expected": "answer", "source_required": True},
{"id": "C", "expected": "escalate", "source_required": False},
]
outputs = [
'{"action": "answer", "source": "doc-1"}',
'{"action": "answer", "source": null}',
'{"action": "answer", "source": null}',
]
approved_sources = {"doc-1"}
counts = {"schema": 0, "route": 0, "accepted": 0}
def evaluate(case, raw):
try:
obj = json.loads(raw)
except (json.JSONDecodeError, TypeError):
return False, False, False
shape = (
isinstance(obj, dict)
and set(obj) == {"action", "source"}
and obj["action"] in ("answer", "escalate")
and (obj["source"] is None or isinstance(obj["source"], str))
)
if not shape:
return False, False, False
route = obj["action"] == case["expected"]
source = not case["source_required"] or obj["source"] in approved_sources
return shape, route, route and source
assert len(cases) == len(outputs)
for case, raw in zip(cases, outputs):
checks = evaluate(case, raw)
for key, passed in zip(counts, checks):
counts[key] += int(passed)
print(case["id"], *checks)
assert counts == {"schema": 3, "route": 2, "accepted": 1}
assert evaluate(cases[0], "[]") == (False, False, False)
assert evaluate(cases[0], "{}") == (False, False, False)
assert evaluate(cases[0], "not-json") == (False, False, False)
print(counts)
Compare variants without mistaking a simulation for actual savings
The OpenAI support-agent optimization recipe consulted defaults to a deterministic simulation; its simulated metrics are not real API traces. It supports study of a comparison method, not a price quote or guaranteed organizational savings.
For your own study, first define the errors that make an output unacceptable. Then compare variants on the same cases and separate successful attempts from retries, abandoned attempts and human interventions. Cost per attempt can fall while cost per actually completed task rises. Similarly, a shorter answer may remove information needed for a correct decision.
Keep results by case and language, with exact criteria. A single average hides rare failures, less well-covered languages and action errors. If an automated judge assigns scores, compare some judgments with a human rubric and retain disagreements. The judge is another component to examine, not an authority outside the system.
- Quality
- Describe mandatory success conditions before looking at a ranking.
- Cost
- Distinguish estimates, simulations and observed spending; include failed attempts.
- Latency
- State what is timed: first content, complete response or confirmed action, under comparable conditions.
Read code, model and data licenses separately
The Llama Cookbook repository displays an MIT license for its code; Llama 4 materials have a separate community agreement. Do not infer weight rights from a notebook license. Check the exact version’s conditions, its usage rules and those of added data or components.
For learning work, prefer fictional data or data you are authorized to use, and record provenance. Before sharing a notebook, remove keys, personal data and outputs containing them. Local execution alone does not establish the absence of remote exchanges: a download, retrieval step or third-party integration may still contact a service.
APIs and dependencies change. As of November 4, 2026, OpenAI’s official schedule lists Evals as read-only since October 31, with shutdown planned for November 30. Evaluation remains a useful discipline; that product should not become a new workshop dependency. Before reusing commands from an older example, check current documentation and deprecation notices.
What your working portfolio can actually demonstrate
A useful portfolio lets another person understand and challenge your conclusion. Preserve the starting recipe, the change, shareable data, the command, per-case results and analysis of at least one failure. For a remote API, explain observed conditions and repeatability limits; for local execution, add the hardware constraints actually encountered.
This work can demonstrate code reading, diagnosis and experimental reasoning. It does not thereby become a certificate issued by OpenAI or Meta. If you want an employer-recognized credential, examine the program, assessor’s identity, examination conditions and awarded evidence separately. A quiz, participation badge, achievement certificate, proctored certification and university degree are not interchangeable.
Choose a recipe when you have a bounded task and can produce these artifacts. Start with a structured course or guidance when programming, data or evaluation foundations are missing. The useful next step is not collecting notebooks: reproduce an experiment, explain its failure on a fresh case, and propose a testable change.
| Deliverable | What a reader can verify | Limitation to state |
|---|---|---|
| Baseline and environment | Where the code comes from and what is needed to repeat the experiment. | Services, access and hardware may differ. |
| Documented comparison | The link between one specific change and results on the same cases. | A small fictional set does not establish generalization. |
| Error analysis | Why a failure occurred, the proposed fix and regression risk. | A format check cannot validate meaning by itself. |
| Learner’s conclusion | The demonstrated skill and conditions still requiring a test. | The portfolio is not a provider certification. |
ORIGINAL DOCUMENT
Catalog record
OpenAI openai.com Cookbooks and Meta meta.com Llama Recipes — Format: code repositories on GitHub and API integration guides. Reach: international. Assessment: none.
Editorial source: Taxonomie des Technologies d'Intelligence Artificielle · § 12930. Addresses restored with dots; innovation and adoption scores remain those of the document.
VERIFY AND EXPLORE
References
Official sources consulted on November 4, 2026. The original notice is preserved. The comparisons, figures, working criteria and workshop are Cognibiz teaching material, not model results or a provider credential program. Check service availability, access conditions and licenses for the recipe you choose.
- 01
- 02
- 03
- 04Meta — Getting started with fine-tuning
Separate instructions for one or multiple GPUs.
raw.githubusercontent.com · - 05Meta — Fine-tuning methods
Parameter-efficient adaptation and the base model.
raw.githubusercontent.com · - 06
- 07Meta — Llama 4 Community License Agreement
Conditions specific to Llama 4 materials.
raw.githubusercontent.com · - 08
- 09
- 10
- 11
- 12
- 13OpenAI Cookbook — Support-agent optimization
Deterministic simulation, not a production measurement.
developers.openai.com · - 14
Catalog provenance
Taxonomie des Technologies d'Intelligence Artificielle · Google DocsSource document consulted on . § 12930.
Websites cited in the record
A website’s inclusion in the catalog does not verify the versions, projections or results mentioned in the document.
FROM KNOWLEDGE TO PROJECT
Apply this knowledge to your context.
Scope, architecture, roadmap and notes: keep your decisions in the dedicated space.

