匠人学院 JR Academy
面试攻略

AI Engineer 面试全攻略

AI Engineer 面试考的不是你会不会调用 API,而是能不能把一个不太可靠的模型,做成稳定、可评测、能上线的产品功能。这篇按常见的 7 个考察方向讲清每一块考什么、面试官怎么打分、示范题怎么讲,最后给一份 4 周准备计划。

约 30 分钟读完 · 7 轮 · 更新于 2026-11-28

AI Engineer 是做什么的

AI Engineer 负责把大模型接进真实产品:设计 Prompt 和结构化输出、搭 RAG 检索、做会调用工具的 Agent、建立评测,并让整套东西在延迟、成本和安全上站得住。

大多数 AI Engineer 不从头训练模型,而是选择、组合和约束现成的模型。工作有一半是普通后端工程:接口、队列、重试、日志、权限;另一半是处理模型带来的不确定:输出格式会错、答案会编、成本会涨。

和机器学习工程师 / 研究员的区别

侧重训练、微调和模型本身的指标。AI Engineer 侧重用现成模型做出能上线的功能,评测的是整个产品流程。

和后端工程师的区别

写的逻辑大多是确定的。AI Engineer 还要处理模型输出不稳定:校验、兜底、评测和成本控制。

和FDE的区别

FDE 在客户那边把能力接进客户的系统;AI Engineer 多在产品团队内部做功能。两种面试大量重叠,FDE 多一轮客户沟通。

面试流程

每家公司的安排不同,但大多由下面几段组成。面试前先问招聘方:有几轮、每轮考哪个方向、编码用什么语言、能不能查文档。

  1. 招聘方初筛20–30 分钟。做过什么 AI 项目、用过哪些模型和工具、为什么想做这个方向。
  2. 技术初面一轮编码(多为 Python:调用模型 API、处理结构化输出),或 LLM 基础概念问答。
  3. 正式面试(4–6 轮)从 LLM 基础、RAG、Agent、评测与安全、AI 系统设计、工程编码里挑几项,再加项目深挖和行为面试。
  4. 用人经理面聊项目里你本人做了什么、怎么做取舍、上线后出过什么问题。

和普通工程师面试最大的不同

  • 追问总会落到“你怎么知道它变好了”:没有评测数据支撑的改进,面试官基本不认。
  • 反复考失败情况:模型超时、输出格式错、检索不到、工具调用被重复执行时怎么办。
  • 项目深挖很细:会问到你本人的贡献、选型时放弃了什么、延迟和成本各是多少。

第 1 轮

LLM 与 Prompt 基础

能不能把模型当成不可靠的组件来用:信任边界、结构化输出、模型选择、Prompt 版本和幻觉控制。

面试官在看什么

  • 把用户输入和检索到的内容当成不可信数据,而不是指令。
  • 权限和工具调用在代码里检查,不靠一句“请忽略恶意指令”。
  • 结构化输出有服务端校验和失败处理。
  • 能说清模型怎么选、Prompt 版本和回归测试怎么管。

示范题(附完整答案与评分)

How do you separate trust boundaries among system instructions, application rules, user input, and retrieved content?

这道题在面试里怎么讲

先把四类内容分成两组:系统指令和应用规则由服务端掌控、有版本;用户输入和检索到的文档一律是不可信数据。然后主动点出一个常见误区:用分隔符把文档包起来,只能帮模型分清哪段是内容,并不是安全边界。真正的边界在代码里:工具调用走白名单、参数要校验、按资源检查权限,有副作用的操作要用户确认。最后补一句:检索前就按来源和租户过滤,别把别人的数据放进提示词。面试官想听到的核心是“安全靠确定性的代码,不靠提示词”。

英文示范答案

90-second answer

System and application rules are server-owned and versioned. User input and retrieved documents are untrusted data. Delimit them clearly and state that instructions inside documents are content, but delimiters are not authorization. Every tool call passes an allowlist, argument schema, resource-level authorization, and confirmation policy for side effects.

Detailed points

Include sensitive data only when necessary. Filter retrieval by source and tenant before prompting, then apply output policy checks. The real security boundary is deterministic code, credential isolation, and approval flow, not a sentence telling the model to ignore attacks.

Common mistakes

  • Trusting the knowledge base by default
  • Letting the client assemble system instructions
  • Executing a tool because the model claims it is safe

Follow-ups

  • How do you test indirect prompt injection?
  • What tool confirmation details should the user see?
Tool calls are checked in code
ALLOWED_TOOLS = {"search_orders": {"order_id": str}, "draft_reply": {"text": str}}


def run_tool_call(call, user, tools):
    """The model only proposes a call; this code decides whether it runs."""
    name, args = call["name"], call.get("arguments", {})
    schema = ALLOWED_TOOLS.get(name)
    if schema is None:
        return {"error": f"tool {name} is not allowed"}
    if set(args) != set(schema) or not all(isinstance(args[k], t) for k, t in schema.items()):
        return {"error": "arguments do not match the schema"}
    if name == "search_orders" and not user.owns(args["order_id"]):
        return {"error": "not your order"}
    return tools[name](**args)
及格
Says user input and documents should not be trusted.
好
Separates server-owned rules from untrusted input and enforces tool permissions in code.
很好
Explains why delimiters are not a security boundary and filters retrieval by source and tenant before prompting.
自测:先自己想 3 分钟,再展开答案How do you reduce hallucinations while making the system express uncertainty when evidence is insufficient?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

会员题集 · 3 道

题目公开,答案、讲法和评分标准会员可看。

Structured output occasionally misses fields or returns invalid enums. Would you change the prompt, schema, or model first?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

A product has classification, extraction, support replies, and complex reasoning tasks. How do you select models and design fallbacks?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

When prompts change frequently, how do you manage versions, caching, and regression tests?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

怎么准备

把常用 Prompt 当代码管理:写版本、写回归样例;读 Prompt Engineering 方向里的评测章节。

开口练一次:AI 模拟面试

第 2 轮

RAG 检索增强

能不能把“答案在知识库里但答错了”拆成检索问题还是生成问题,并说清分块、混合检索和可核对的引用。

面试官在看什么

  • 能把“答错了”拆成是检索的问题,还是生成的问题。
  • 知道关键词、向量、混合检索和重排各自适合什么情况。
  • 权限过滤放在检索之前。
  • 用召回率、排序指标和按问题类型切分的结果说话。

示范题(附完整答案与评分)

When would you use vector, keyword, hybrid retrieval, and a reranker?

这道题在面试里怎么讲

不要背定义,按问题类型讲。错误码、产品型号、人名这类精确的词,关键词检索更准;同一个意思换了说法,向量检索更好;两类问题都有时用混合检索,把两路结果合并。重排模型贵,只用在一小批候选上,解决“找到了但排序不对”。讲完方法一定要讲怎么验证:按问题类型分别看召回率、排序指标、延迟和成本,别让平均分盖住某一类问题变差。最后加一句:权限过滤在检索之前做。

英文示范答案

90-second answer

Keyword retrieval is strong for exact entities, error codes, and rare terms; vector retrieval handles semantic paraphrases. Hybrid retrieval merges independent candidate sets with score normalization or rank fusion. A more expensive cross-encoder or model reranks a small candidate set when recall is acceptable but ordering is weak.

Detailed points

Apply authorization filters before retrieval and reranking. Evaluate recall@k, MRR or nDCG, answer support, p95 latency, and cost by query slice. An average reranker gain must not hide regressions for a query class.

Common mistakes

  • Treating vector similarity as relevance truth
  • Filtering tenants after retrieval
  • Assuming a larger top-k is always better

Follow-ups

  • How do you fuse scores?
  • How do you degrade when reranking times out?
Merging keyword and vector results (reciprocal rank fusion)
def reciprocal_rank_fusion(*rankings, k=60):
    """Merge ranked id lists from keyword and vector search without normalising their scores."""
    scores = {}
    for ranking in rankings:
        for rank, doc_id in enumerate(ranking, start=1):
            scores[doc_id] = scores.get(doc_id, 0.0) + 1.0 / (k + rank)
    return sorted(scores, key=scores.get, reverse=True)
及格
Knows keyword search suits exact terms and vector search suits paraphrases.
好
Proposes hybrid retrieval with rank fusion and a reranker on a small candidate set.
很好
Applies permission filters before retrieval and judges changes by recall and ranking metrics per query type.
自测:先自己想 3 分钟,再展开答案A user says, “The answer is in the knowledge base, but the system is wrong.” How do you diagnose the failure?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

会员题集 · 3 道

题目公开,答案、讲法和评分标准会员可看。

How do you design chunking for documents containing headings, tables, code, and long prose?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

How do you make citations in a RAG answer verifiable rather than merely showing a document link?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

How do you build an evaluation set and metric system that can guide RAG iteration?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

怎么准备

自己搭一个小 RAG,准备 30 个真实问题做评测集,分开量检索和生成。

开口练一次:AI 模拟面试

第 3 轮

Agent 与工具调用

工具调用能不能安全重试、失败了能不能从中间恢复,什么时候根本不该用多 Agent。

面试官在看什么

  • 读操作和写操作分开,写操作有幂等键和确认步骤。
  • 超时之后先查状态,再决定要不要重试。
  • 权限、额度和凭证在执行器里,不交给模型。
  • 知道什么时候不该用多 Agent,固定流程反而更可靠。

示范题(附完整答案与评分)

How do you design a safe, retryable tool call that does not duplicate side effects?

这道题在面试里怎么讲

先挑一个具体的工具,比如“给客户退款”,题目就好讲了。第一步讲参数:有类型、枚举和资源 ID,服务端重新校验参数,并检查这个用户有没有权限。第二步讲写操作:带幂等键,先预览再确认,执行状态要持久保存。第三步讲最容易扣分的地方:调用超时不代表失败,要先查状态再决定是否重试,否则可能退两次款。最后说清分工:模型只负责提出调用,执行器负责权限、额度、审计和凭证。

英文示范答案

90-second answer

Use explicit types, enums, and resource identifiers in the tool schema, then revalidate arguments and user authorization on the server. Separate reads from writes. Writes carry an idempotency key, preview and confirmation policy, and durable execution state. After a timeout, query status before retrying an operation that may have succeeded.

Detailed points

Return structured success, retryable failure, business rejection, and unknown outcome. The model proposes calls; the executor owns authorization, quotas, audit, and credentials.

Common mistakes

  • Inferring tool success from prose
  • Repeating every timed-out operation
  • Putting database credentials in the tool description

Follow-ups

  • How do long-running tools expose status?
  • Which writes require confirmation?
An idempotent refund tool
class Unknown(Exception):
    """The provider timed out: the refund may or may not have happened."""


def refund(store, provider, *, order_id, amount, user, idempotency_key):
    if not user.can_refund(order_id):  # authorisation lives in code, not in the prompt
        return {"status": "rejected", "reason": "not allowed"}
    previous = store.get(idempotency_key)
    if previous and previous["status"] in ("done", "unknown"):
        if previous["status"] == "done":
            return previous
        state = provider.lookup(idempotency_key)  # check before retrying an unknown outcome
        if state is not None:
            store[idempotency_key] = {"status": "done", "refund_id": state}
            return store[idempotency_key]
    try:
        refund_id = provider.refund(order_id, amount, idempotency_key=idempotency_key)
    except Unknown:
        store[idempotency_key] = {"status": "unknown"}
        return store[idempotency_key]
    store[idempotency_key] = {"status": "done", "refund_id": refund_id}
    return store[idempotency_key]
及格
Adds retries to the tool call.
好
Uses idempotency keys and confirmation for writes, and keeps authorisation outside the model.
很好
Checks the status of an unknown outcome before retrying, so a timed-out refund is never paid twice.
自测:先自己想 3 分钟,再展开答案When should you use multiple agents, and when is a deterministic workflow more appropriate?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

会员题集 · 2 道

题目公开,答案、讲法和评分标准会员可看。

An agent workflow fails halfway through. How do you restore state without rerunning from the beginning?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

When connecting enterprise data and tools through MCP, where should authorization boundaries live?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

怎么准备

做一个会调用两三个工具的小 Agent,故意让它中途失败,练状态恢复和幂等。

开口练一次:AI 模拟面试

第 4 轮

评测与安全

有没有一套能指导迭代的离线评测,能不能防住 Prompt 注入和越权。

面试官在看什么

  • 评测样例来自真实用户任务和已知风险,不只靠模型生成。
  • 每条样例写清可接受的结果和评分标准。
  • 开发集和锁定的测试集分开,出过的事故放进回归集。
  • 看表现最差的那一类,而不只看平均分。

示范题(附完整答案与评分)

How do you build an offline evaluation set for a new LLM feature without optimizing only the average score?

这道题在面试里怎么讲

先说样例从哪来:真实用户要完成的任务、产品需求、已知风险,再按类型抽样:常见问题、长尾问题、高风险问题、本来就答不了的问题和恶意输入。然后说每条样例存什么:输入、上下文、可接受的结果、评分标准和需要的证据。接着讲开发集和测试集分开,出过的事故放进回归集。最后落到上线规则:关键类别不许变差,即使平均分提高了也不能放行。这一题面试官最想听到的是“平均分会骗人”。

英文示范答案

90-second answer

Build a task taxonomy from real user jobs, product requirements, and known risks, then sample common, long-tail, high-risk, unanswerable, and adversarial cases. Store input, context, acceptable outcomes, rubric, and required evidence. Separate development from locked tests and keep past incidents in regression.

Detailed points

Report segment pass rates, worst slices, abstention, format validity, latency, and cost in addition to averages. Release gates should prohibit regression on critical slices rather than accept any mean improvement.

Common mistakes

  • Using only model-generated test cases
  • Mixing development and test sets
  • Letting averages hide high-risk failures

Follow-ups

  • How do you update the set after distribution shift?
  • How do you score multiple acceptable answers?
Pass rate per slice and a release gate
from collections import defaultdict


def report(results, critical=("high-risk", "unanswerable")):
    """results: [{"slice": "common", "passed": True}, ...] -> pass rate per slice plus a release gate."""
    by_slice = defaultdict(lambda: [0, 0])
    for row in results:
        by_slice[row["slice"]][0] += row["passed"]
        by_slice[row["slice"]][1] += 1
    rates = {name: passed / total for name, (passed, total) in by_slice.items()}
    return rates, min(rates, key=rates.get)


def can_release(old, new, critical=("high-risk", "unanswerable")):
    """Block the release if any critical slice gets worse, even when the average improves."""
    return all(new.get(name, 0) >= old.get(name, 0) for name in critical)
及格
Builds a test set and reports an average score.
好
Samples by task and risk, writes acceptable outcomes for each case, and keeps a locked test set.
很好
Reports the worst slice and blocks a release when a critical slice regresses, even if the average improves.
自测:先自己想 3 分钟,再展开答案For an assistant with internal documents and external tools, how do you handle prompt injection, PII, and data exfiltration?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

会员题集 · 2 道

题目公开,答案、讲法和评分标准会员可看。

When using LLM-as-a-Judge, how do you control position bias, style bias, and self-preference?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

After an LLM feature launches, which metrics and traces actually help diagnose quality problems?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

怎么准备

为自己的项目写 50 条评测样例和一页安全说明:哪些输入不可信、权限在哪里检查。

开口练一次:AI 模拟面试

第 5 轮

AI 系统设计

企业级 RAG、多模型网关这类系统:权限隔离、增量更新、延迟和成本怎么一起权衡。

面试官在看什么

  • 先问清规模、权限模型和更新频率,再画组件。
  • 每个文档块都带租户、权限、来源版本和位置。
  • 索引能增量更新,删除和权限变更能尽快生效。
  • 引用能追溯到不会变的原文版本。

示范题(附完整答案与评分)

Design a production enterprise RAG service with authorization isolation, incremental updates, and verifiable citations.

这道题在面试里怎么讲

开头花 5 分钟澄清:有多少文档、多少租户、权限怎么定义、文档多久更新一次、对延迟和成本有什么要求。然后按数据流画:连接器、解析、按结构分块、去重、向量化、发布索引。重点讲三处:每个块都带租户、权限、来源版本和在原文里的位置;新索引先在旁边建好、验证后再切换,删除和权限变更走高优先级;引用绑定到不会变的原文版本和具体位置。最后讲每一步都有追踪,检索、引用、回答、延迟和成本分别评测。

英文示范答案

90-second answer

Separate connectors, parsing, structural chunking, deduplication, embedding, and index publication. Every chunk carries tenant, ACL, source version, and span. Build and validate new indexes in shadow, then switch atomically; deletions and permission changes use high-priority propagation and tombstones.

Detailed points

Authorize and ACL-filter before hybrid retrieval, reranking, context assembly, and generation. Citations bind immutable source versions and spans. Trace every stage and evaluate retrieval, citation, answer, latency, and cost. Source storage, indexes, and logs have separate retention policies.

Common mistakes

  • Overwriting the live index during full rebuild
  • Checking authorization only after generation
  • Deleting documents while leaving vectors active

Follow-ups

  • How do you fail closed during delayed permission propagation?
  • How do you support cross-language retrieval?
及格
Draws a standard RAG pipeline.
好
Stores tenant, permissions and source version on every chunk and filters before retrieval.
很好
Covers incremental and shadow index builds, fast deletion, citations bound to immutable source text, and per-stage evaluation.
自测:先自己想 3 分钟,再展开答案An AI application exceeds both p95 latency and token-cost targets. In what order do you optimize it?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

会员题集 · 3 道

题目公开,答案、讲法和评分标准会员可看。

Design a multi-tenant LLM gateway with multiple providers, budgets, rate limits, and auditability.

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

How should an AI product degrade reliably during a major primary-model provider outage?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

Design a continuous-improvement pipeline from user feedback to offline evaluation and safe release.

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

怎么准备

按“需求澄清 → 组件 → 数据流 → 失败模式 → 指标”的顺序,每周练两道 System Design 手册里的 AI 架构题。

开口练一次:AI 模拟面试

第 6 轮

工程编码

能不能写出在生产环境站得住的调用代码:并发上限、重试、Schema 校验和失败处理。

面试官在看什么

  • 并发有上限,不一次性发出全部请求。
  • 只重试可以重试的错误,遵守 Retry-After,有总时限。
  • 有背压:队列满了让上游等待,或丢掉低优先级任务。
  • 取消能传到下游,并且有日志和指标。

示范题(附完整答案与评分)

You need to call a rate-limited model API concurrently. How would you design async execution, retries, and backpressure?

这道题在面试里怎么讲

先说清三个限制要分开看:每分钟请求数、每分钟 token 数、同时在跑的请求数。代码上用信号量或固定大小的 worker 池控制并发,用有上限的队列做背压。重试只针对 429、超时和部分 5xx,指数退避加随机抖动,有 Retry-After 就按它来,再加总时限和重试预算。写完主动补两点:客户端取消了,下游请求也要停,不然白花 token;记录排队时间、重试次数和被限流的比例。

英文示范答案

90-second answer

Use a bounded worker pool or semaphore instead of creating every coroutine at once. Retry only retryable failures such as 429, timeouts, and selected 5xx responses with exponential backoff plus jitter, while honoring Retry-After. Apply a total deadline, idempotency key, and retry budget. Feed workers through a bounded queue so producers block or shed low-priority work when capacity is exhausted.

Detailed points

Model request rate, token rate, and concurrency as separate limits. Propagate cancellation so abandoned client requests stop consuming tokens. Measure queue time, provider latency, retry count, throttling rate, and terminal failures.

Common mistakes

  • Gathering an unbounded number of requests
  • Retrying every error
  • Limiting requests while ignoring token quotas

Follow-ups

  • How do you prevent a retry storm?
  • How do you enforce fairness across tenants?
Bounded concurrency with retries
import asyncio
import random


class RetryableError(Exception):
    def __init__(self, retry_after=None):
        super().__init__("retryable")
        self.retry_after = retry_after


async def call_with_retry(call, prompt, *, attempts=4, base=0.5, sleep=asyncio.sleep):
    for attempt in range(attempts):
        try:
            return await call(prompt)
        except RetryableError as error:  # 429, timeouts, selected 5xx only
            if attempt == attempts - 1:
                raise
            wait = error.retry_after or base * 2 ** attempt
            await sleep(wait * random.uniform(0.5, 1.0))


async def run_all(call, prompts, *, max_in_flight=8, sleep=asyncio.sleep):
    """Bounded concurrency: never more than max_in_flight requests at once."""
    gate = asyncio.Semaphore(max_in_flight)

    async def one(prompt):
        async with gate:
            return await call_with_retry(call, prompt, sleep=sleep)

    return await asyncio.gather(*(one(p) for p in prompts))
及格
Uses asyncio to send requests concurrently.
好
Caps concurrency, retries only retryable errors with backoff and jitter, and honours Retry-After.
很好
Adds a total deadline and retry budget, backpressure through a bounded queue, cancellation, and metrics.
自测:先自己想 3 分钟,再展开答案Model output must conform to a business JSON Schema. How would you implement validation, repair, and failure handling?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

会员题集 · 2 道

题目公开,答案、讲法和评分标准会员可看。

When designing a streaming chat endpoint, how do you handle cancellation, duplicate submissions, and partial responses?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

How would you design timeouts, circuit breaking, fallbacks, and cost budgets for a multi-model calling layer?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

怎么准备

用 Python 写一个调用模型 API 的小服务,加上限流、重试、超时和 JSON Schema 校验。

开口练一次:AI 模拟面试

第 7 轮

项目与行为面试

讲清自己在 AI 项目里具体做了什么、技术取舍怎么定、出事故时怎么处理。

面试官在看什么

  • 说清你本人负责什么,和团队的成果分开。
  • 讲一个关键决定:有哪些选项、凭什么选、放弃了什么。
  • 结果可以核实,不编造百分比。
  • 准备一次真实的失败和复盘。

示范题(附完整答案与评分)

Choose an AI project you worked on. Explain your individual contribution, technical decisions, and verifiable outcomes.

这道题在面试里怎么讲

开场一句话交代:给谁做的、要解决什么、原来是什么水平、你负责哪一块。别整段都说“我们”,面试官要知道哪些是你做的。挑一个关键决定展开:当时有哪些选项、你看了什么证据、为什么选这个、代价是什么。结果用能核实的说法:评测通过率、延迟、成本,或者省了多少人工时间、某类错误少了多少;说不清因果的就别硬给百分比。最后讲一次失败,以及你下一步会怎么改。

英文示范答案

90-second answer

Open with user, business goal, baseline, constraints, and your ownership boundary. Separate team output from your work. Explain one key decision through alternatives, evidence, trade-off, and implementation. Give quality, latency, cost, or business outcomes with measurement window and causal limitations.

Detailed points

Bring an architecture sketch and one real failure. If attribution is weak, do not invent a percentage; use deployment scope, manual time saved, error-category reduction, or acceptance gates. End with what you would change next.

Common mistakes

  • Speaking only in “we”
  • Listing technologies without decisions
  • Inventing unexplained improvement numbers

Follow-ups

  • What was the hardest technical problem?
  • What breaks first at ten times the traffic?
及格
Describes the project clearly.
好
Separates their own work from the team’s and explains one decision with the alternatives considered.
很好
Gives verifiable outcomes without overstated attribution and shares a real failure and what they would change.
自测:先自己想 3 分钟,再展开答案Tell me about an AI feature that failed after launch or caused an incident. How did you contain it and prevent recurrence?

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

会员题集 · 1 道

题目公开,答案、讲法和评分标准会员可看。

Tell me about a time you chose between two reasonable AI technical approaches.

先自己想 3 分钟,再看答案、代码和评分标准(需登录)。

怎么准备

准备 3 个项目故事:你的贡献、一次技术取舍、一次失败和复盘,每个讲 2 分钟。

开口练一次:AI 模拟面试

项目深挖:准备一个能讲 20 分钟的项目

AI Engineer 面试几乎一定会深挖一个项目。没有相关工作项目,就花一周做一个能讲清楚数字的小项目,面试时讲它。

做什么

  1. 选一个具体场景,例如公司内部文档问答、客服工单分类、合同字段抽取。
  2. 做出能跑的版本:结构化输出有校验,失败时有兜底。
  3. 加上 RAG 或工具调用中的一项,并处理好权限。
  4. 写 50 条评测样例,记下第一版和改进后的结果。
  5. 记录延迟、每次请求的成本,以及一次失败和你怎么修的。

怎么讲

  1. 背景给谁做、解决什么问题、原来是什么水平。一句话。
  2. 约束数据在哪、谁能看、延迟和成本的上限。
  3. 你的决定两三个关键取舍,比如检索方式、模型选择,各自放弃了什么。
  4. 结果评测通过率、延迟、成本,用前后对比说。
  5. 做错了什么一次失败、怎么发现、改了什么。面试官很看重这一段。

4 周准备计划

第 1 周

LLM 基础和工程编码
  • 把结构化输出、Prompt 版本管理、信任边界各讲一遍并录音,听回放找讲不清的地方。
  • 用 Python 写一个并发调用模型 API 的小服务,带并发上限、重试、超时和 Schema 校验;用假的接口跑测试,不需要真的花钱调用。

第 2 周

RAG 和评测
  • 搭一个小 RAG,准备 30–50 个真实问题,分开衡量检索和回答。
  • 试一次混合检索和重排,按问题类型对比前后结果,写下哪一类变好了、哪一类变差了。

第 3 周

Agent 和系统设计
  • 给项目加一个会调用两三个工具的步骤,练幂等和中途失败后的恢复。
  • 每天练一道 AI 系统设计题:企业 RAG、多模型网关、延迟和成本超标怎么优化。

第 4 周

项目故事和模拟面试
  • 按“背景、约束、你的决定、结果、做错了什么”把项目讲熟,再准备 3 个行为故事。
  • 每天一次 AI 模拟面试,轮换不同方向,开口回答而不是在脑子里想。

面经:候选人自己讲的面试过程

面经是候选人自己写的面试经过,每家公司、每一年都不一样,拿来了解流程,不要当成标准答案。面经库里还没有标明 AI Engineer 的面经,下面是最接近的一篇;面完了欢迎把你的 AI Engineer 面经分享出来。

常见问题

需要会训练模型吗?

大多数 AI Engineer 职位不要求从头训练模型,但要懂微调、向量化和评测的基本概念,能判断什么时候该微调,什么时候改检索或 Prompt 就够了。

该用哪个框架准备?

面试考的是原理和取舍,不考某个框架的用法。用你熟悉的语言直接调用模型 API 写一遍,比背框架更有用。

还考算法题吗?

部分公司的技术初面仍有算法题,先问清楚。更多公司考的是调用模型 API、处理数据、控制并发这类实际编码。

没有 AI 工作经验怎么办?

用一个带评测数据的小项目代替。能讲清评测结果、延迟和成本的个人项目,比简历上只写“熟悉 LangChain”有说服力得多。

接下来