← All Learning Paths

AI Application Developer

An AI application path covering typed data transformations, schema validation, streaming records, retries, rate limits, and observability.

roleadvanced12 nodes13.42h total

Path overview

AI 应用的可信度取决于围绕模型的数据管道:输入如何校验、记录如何流式处理、失败如何重试、成本如何限流。本路径从类型化数据转换与数据契约出发,覆盖 Pydantic/Schema 校验、JSONL 流式处理、关键词与相似度提取、限流与重试预算,最后落到可观测性。

This path focuses on the engineering around the model: typed transformations and data contracts, schema validation, streaming record processing, similarity and keyword extraction, rate limiting, retry budgets, and production observability.

  1. Reconstruct the reasoning behind "Type-Safe Data Transformations with TypeScript" by tracing "The Boundary Problem" to the failure it prevents in ai systems.

    Completion criteria: Attach a one-page summary that quotes "The Boundary Problem", lists two trade-offs, and links the commit where you applied it.

    Next step: Pydantic

    ⏱ 1h

  2. Read "Pydantic"'s documented surface around "BaseModel class Model(BaseModel): ...", then build a minimal endpoint and log the response.

    Completion criteria: Run a request against "Pydantic", paste the response, and add one deliberately invalid call with its error.

    Next step: Read JSONL Records Line by Line

    ⏱ 1h

  3. Execute "Read JSONL Records Line by Line", change one constant, and describe how the output diverges from "Iterate JSON Lines files lazily, skip blank lines, report malformed records with line".

    Prerequisites: Pydantic

    Completion criteria: Paste the command, the exit code, and the output line matching "Iterate JSON Lines files lazily, skip blank lines, report malformed records with line"; then show a second run with a changed parameter.

    Next step: Multi Stage Pipeline With Fail Fast Ordering

    ⏱ 0.75h

  4. Run the ai snippet "Multi Stage Pipeline With Fail Fast Ordering", capture stdout, and show which line demonstrates the documented behavior: "A staged data pipeline that runs named stages in order, stops at the first failure, and".

    Prerequisites: Read JSONL Records Line by Line

    Completion criteria: Save two runs of "Multi Stage Pipeline With Fail Fast Ordering" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Extract TF-IDF Keywords from Text Documents

    ⏱ 0.75h

  5. Adapt "Extract TF-IDF Keywords from Text Documents" to a second input and compare the new output with the behavior described in "Rank the most distinctive keywords in a small document set with term frequency, inverse".

    Prerequisites: Multi Stage Pipeline With Fail Fast Ordering

    Completion criteria: Attach the terminal transcript for "Extract TF-IDF Keywords from Text Documents": command, exit code, and the printed result you used to confirm "Rank the most distinctive keywords in a small document set with term frequency, inverse".

    Next step: Levenshtein Distance With Two Rows

    ⏱ 0.75h

  6. Execute "Levenshtein Distance With Two Rows", change one constant, and describe how the output diverges from "Compute edit distance in O(n*m) time and O(min(n,m)) space, calculate similarity, and".

    Prerequisites: Extract TF-IDF Keywords from Text Documents

    Completion criteria: Change one constant in "Levenshtein Distance With Two Rows", rerun, and attach both stdout captures plus a one-line diff explaining what moved.

    Next step: Minimal JSON Schema Validator

    ⏱ 0.75h

  7. Run the ai snippet "Minimal JSON Schema Validator", capture stdout, and show which line demonstrates the documented behavior: "A dependency free validator for the common JSON Schema subset that reports every violation".

    Prerequisites: Levenshtein Distance With Two Rows

    Completion criteria: Paste the command, the exit code, and the output line matching "A dependency free validator for the common JSON Schema subset that reports every violation"; then show a second run with a changed parameter.

    Next step: Retry Budget With Total Deadline

    ⏱ 0.75h

  8. Adapt "Retry Budget With Total Deadline" to a second input and compare the new output with the behavior described in "A retry policy that stops when the total deadline is reached instead of retrying a fixed".

    Prerequisites: Minimal JSON Schema Validator

    Completion criteria: Save two runs of "Retry Budget With Total Deadline" side by side — the original input and one changed value — and annotate the line where the output diverges.

    Next step: Add Rate Limiting Middleware

    ⏱ 0.75h

  9. Run "Limit requests per client and route, return a clear 429 response, and avoid trusting" from "Add Rate Limiting Middleware" and confirm the documented result "The 61st request in a window receives 429 with a Retry-After header.".

    Completion criteria: Run the steps through "Limit requests per client and route, return a clear 429 response, and avoid trusting", paste the command output, and mark the line that matches "The 61st request in a window receives 429 with a Retry-After header."; then rerun with one parameter changed.

    Next step: Observability: Logging, Metrics, and Tracing

    ⏱ 0.5h

  10. Compare "The Three Pillars and What Each Is For" with "Structured Logging" in "Observability: Logging, Metrics, and Tracing" and state which trade-off you would accept in ai code.

    Prerequisites: Add Rate Limiting Middleware

    Completion criteria: Attach a one-page summary that quotes "The Three Pillars and What Each Is For", lists two trade-offs, and links the commit where you applied it.

    Next step: Fit a Conversation Into a Token Budget

    ⏱ 1h

  11. Solve "Fit a Conversation Into a Token Budget" for ai work: turn JSON object: { contextWindow, systemTokens, messages: [{ role, tokens into {kept:[assistant,user],dropped:[user],usedTokens:7000,remainingTokens: and pass both samples.

    Prerequisites: Observability: Logging, Metrics, and Tracing

    Completion criteria: Attach the solution file for "AI Application Developer", two passing sample runs, and one failing run whose error matches the contract.

    Next step: Capstone: AI Application Developer

    ⏱ 0.42h

  12. Deliver the "Build a Vector Embedding Store" blueprint with "HNSW index" working and "Distance metric" recorded as evidence.

    Prerequisites: Observability: Logging, Metrics, and Tracing, Fit a Conversation Into a Token Budget

    Completion criteria: Run the project's test command for "Build a Vector Embedding Store", paste the passing output, and attach the acceptance note for "HNSW index" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h