Skip to content

AI Engineer Roadmap

Build a small language-model feature that cites its sources and measure how it behaves when the answer is missing.

You should be able to read a Python script, parse JSON and make an HTTP request before starting. Pick a local model you can run comfortably or an API you already have access to. Use public or self-authored materials throughout the project.

Roadmap flowchart

Choose a milestone to jump to the lesson, exercises and resources.

  • Main path
  • Optional branch

One-shot courses and practice labs

Prepare a small set of public handbook pages and a file of questions with known answers. Use synthetic or public material for examples, logs and demo inputs. Start with a baseline you can measure before adding a retrieval framework.

Use the focus list to choose what to watch. Pause to do the lab while the material is fresh. Each lab builds toward the project at the end of this roadmap.

  1. Deep Dive into LLMs like ChatGPT

    Andrej Karpathy

    What to focus on

    • Tokens and what enters the context window
    • How model training differs from supplying reference material at answer time
    • Why fluent text can contradict the available evidence

    Related lessons

    Practice lab

    1. Pick a narrow question your handbook answers. Try it without a passage, with the correct passage and with an unrelated passage. Record the differences without guessing why every token appeared.
    2. Split the source into short sections with stable IDs. Write ten starter questions and give each an expected source ID, or record that the handbook has no answer.
    3. Decide what an acceptable response looks like. Require a source and define how the assistant should explain that the material is insufficient.

    What to have at the endA versioned corpus and a baseline results table that separates grounded answers, unsupported answers and correct requests for more information.

  2. RAG Fundamentals and Advanced Techniques

    freeCodeCamp.org · About 2 hours

    What to focus on

    • How retrieval feeds a generation step
    • Document splitting and candidate selection
    • Returning a verifiable citation with the answer

    Related lessons

    Practice lab

    1. Implement a keyword baseline, then compare it with a similarity-based approach on the same sources. Log the retrieved passage IDs before generating answers.
    2. Use a paraphrased question where the gold passage lacks the exact keywords. Inspect the top results and explain which method handled the paraphrase better.
    3. Check what happens when you change chunk size or remove the right passage. Make the response include stable citations and handle a no-evidence case.

    What to have at the endA reproducible comparison showing which passages were retrieved, which sources were cited and how your system responds when it lacks evidence.

  3. Production RAG with LangChain & Vector Databases

    freeCodeCamp.org · About 8 hours

    What to focus on

    • Similarity scores and hybrid search
    • Observability and the costs of retrieval
    • Comparing changes on a fixed evaluation set

    Related lessons

    Practice lab

    1. Add ambiguous, out-of-scope and updated-policy examples to your test set. Freeze these cases before tuning retrieval or prompts.
    2. Run both variants and compare passage recall, citation correctness and appropriate refusals. Report typical latency and flag very slow cases separately.
    3. Publish a demo with public sources. Include one repeatable failure case and a short explanation of the trade-off you made when you picked a variant.

    What to have at the endA demo, a fixed evaluation file and a comparison table that lets another person see what improved and what still fails.

Lessons and resources

  1. Start with a narrow task and a baseline

    A language model generates probable continuations from the input it can see. Context has limits, and a fluent answer can still lack evidence. Give the model one short handbook page and define acceptable answers before you build a search layer.

    Put it into practice

    Write five questions the page can answer and three it cannot. Write the expected answers and supporting sections yourself, then run each question with the page supplied and record incorrect claims or missed refusals.

    Ready to move on?

    You have a table with the question, expected behavior, actual response and a short reason for each failure.

    Course and practice lab

    Resources

    Back to flowchart
  2. Prepare passages that a reader can verify

    Preserve document titles and headings as you split text into passages. A stable source ID lets you display and check the citation later. Keep related rules and exceptions together when splitting a section, so the passage makes sense by itself.

    Put it into practice

    Prepare five short handbook pages as JSON records with a source title, section, passage ID and text. Add one question whose answer depends on a rule and its exception surviving in the same chunk.

    Ready to move on?

    Given any passage ID in your dataset, you can open the original section and find its exact text.

    Course and practice lab

    Resources

    Back to flowchart
  3. Retrieve evidence before asking the model

    Search the handbook first and send a small number of candidate passages to the model. Keyword matching can work well for policy names and exact codes. An embedding ranker can help when the question uses different phrasing from the handbook.

    Put it into practice

    Run a keyword search and print the top three passage IDs for each question. Count how often the expected passage appears. Inspect the misses and compare a similarity-based method if you see repeated failures on paraphrases.

    Ready to move on?

    For at least three questions, you can explain why the expected passage ranked where it did and whether it reaches the model.

    Optional branch

    Decide if embeddings earn their place

    Keep keyword retrieval when exact names dominate and it finds the expected passages. Compare embeddings when synonyms or paraphrases account for several misses. Use the same questions for both methods.

    Course and practice lab

    Resources

    Back to flowchart
  4. Return answers with citations and a clear fallback

    Give the model a small response contract with a status, answer and source IDs. Validate the result in your program. Only accept IDs that your retriever actually supplied, and use a clear fallback when the evidence is too weak or the model times out.

    Put it into practice

    Implement a supported answer, a request for clarification, and a message for questions the handbook cannot answer. Include an example of each in the README. Test a malformed response and confirm the interface handles it gracefully.

    Ready to move on?

    A supported answer shows a real source. A missing source or invalid response leads to a clear fallback a user can understand.

    Course and practice lab

    Resources

    Back to flowchart
  5. Evaluate retrieval and answers separately

    If the right passage never reached the model, changing the prompt will recover little. Measure retrieval by checking whether the expected passage appears in the top results. Then compare answer correctness, citation support and appropriate refusals using a small human-reviewed rubric.

    Put it into practice

    Expand your test set to at least 20 questions and keep several aside until the baseline and revised system are ready. Classify failures by stage and run both versions on the same held-out questions. Record latency using the same environment.

    Ready to move on?

    Your results identify the most common failure type and show whether a specific change improved it without hiding another regression.

    Common snag

    Repeatedly tuning the system on every question in your report makes the final scores less informative. Keep a few examples for a final check and show the raw counts alongside percentages.

    Course and practice lab

    Resources

    Back to flowchart
  6. Share a demo with its evidence and limitations

    A reviewer should be able to inspect a source, see a reproducible failure and understand what is measured. Keep credentials out of the repository. Record timing and aggregate usage without retaining raw user questions in the demo logs.

    Put it into practice

    Add setup instructions, a short walkthrough showing a supported answer and a fallback, and a table comparing the baseline and updated system. Include one remaining limitation and what you would test next.

    Ready to move on?

    A reader can recreate the demo from the README or watch the walkthrough and find the evaluation cases and report from the same place.

    Course and practice lab

    Resources

    Back to flowchart

Portfolio project

A source-backed handbook assistant

Build an assistant for a short, public or self-authored handbook. It should cite the exact passage that supports an answer, ask for clarification when needed, and say when the handbook has no answer. Publish the test cases and a comparison with the simplest useful baseline.

You’re ready when

  • A small versioned question set contains direct, paraphrased, ambiguous and out-of-scope questions.
  • Every displayed citation resolves to a supporting passage from the handbook.
  • A report separates retrieval quality from answer quality and compares two approaches on the same cases.
  • Setup notes describe the model, corpus, runtime and any observed cost or usage limits.

Make your first ask

In an application, describe one failure you found through evaluation and how you diagnosed it. Share the demo and the comparison table so the reader can judge the trade-off for themselves.

Entry-level job email templates