Daily Dose of Data Science
官方免费增值Daily Dose of Data Science 为科技大公司从业者、初创公司人员和工程专业学生提供数据科学相关的文章、教程与实践建议。
Daily Dose of Data Science 为科技大公司从业者、初创公司人员和工程专业学生提供数据科学相关的文章、教程与实践建议。
移动鼠标查看每日粉丝变化
10 MCP, AI Agents, and RAG projects for AI Engineers (with code):
Sage2将流式信息抽取与决策评分结合,逐条更新结构化字段,无需反复读取聊天全文,展示低延迟自动化路径。
Software can now understand human language and act on it, in real time.
Introducing Sage2 - Extract: natural language in, structured data out. 166x cheaper than Opus 5.5, beats @Cloudflare's Clairic - Decide: the first decision model with streaming. 3x faster, because it reads the context as it grows.
Sage2 is a new primitive for developers. Get 20M tokens free 👇
Also available on @near_ai and, for agents, via @mpp with @Stripe cards and @Tempo stables.
在基础款 M5 上,uzu 通过一次前向传播验证多条候选路径,将 Qwen3.5 9B 的生成速度提升至每秒 92.1 个 token。
将语义判断交给 Jev,代码负责执行边界;示例涵盖浏览器操作、上下文筛选、工具调用与证据核验。
RAG vs. Graph RAG vs. Agentic RAG, clearly explained!
Standard RAG embeds documents into vectors and retrieves the most similar chunks via similarity search. For direct factual lookups, this works well.
But it breaks down when a query needs to connect facts spread across multiple documents. Similarity search retrieves individual chunks, not the relationships between them.
Graph RAG adds a knowledge graph layer on top.
→ During indexing, an LLM extracts entities and relationships from the documents.
→ During retrieval, the system traverses these connections instead of relying on embedding similarity alone.
This is what enables multi-hop queries.
Say a vector DB stores three facts about internal services:
↳ "The checkout service uses payments API." ↳ "The payments API runs on cluster-3." ↳ "Cluster-3 is scheduled for maintenance on Friday."
Someone asks: "Will the checkout service be affected by Friday's maintenance?"
Vector search can likely retrieve facts 1 and 3 because the query mentions "checkout service" and "Friday maintenance."
But it will miss fact 2, which connects the payments API to cluster-3.
That middle fact sits too far from the query in embedding space. It mentions neither "checkout" nor "maintenance," so it never makes it into the retrieved context.
A knowledge graph connects these as linked entities, and graph traversal finds the full path in one query.
Agentic RAG takes a different approach entirely.
Instead of a fixed retrieval pipeline, an LLM agent decides at query time which tools to invoke, which sources to query, and in what order.
Check the visual below to understand the three architectures thoroughly.
One thing to note here is that these three aren't levels of sophistication that you need to graduate through.
Instead, they solve different query types.
↳ Single-hop factual lookups → standard RAG ↳ Multi-hop relationship queries → Graph RAG ↳ Dynamic multi-source tasks with tool use → Agentic RAG
Once the right architecture is in place, the next leverage point is efficiency.
Most RAG architectures rely heavily on vector search, and that layer can be made 32x more memory-efficient using binary quantization.
I covered the full implementation in the article below.
👉 Over to you: Which RAG architecture are you running in production?
区分模型负责受限判断与参与多步规划的两类架构;工具权限、预算、停止条件及最终执行均交由应用代码控制。
AnyJev 从开放模型提取结构化判断,提供无标签去偏、温度校准及隐藏状态决策头三层方案,需访问模型内部数据。
Prompt, context, harness & loop engineering, clearly explained!
An agent is a while loop with four layers of engineering wrapped around it:
- Prompt engineering - Context engineering - Harness engineering - Loop engineering
Each one wraps the last, and the model sits in the middle, so none of them compete with the others. Instead, they just zoom one level further out.
> Prompt engineering:
This defines the input the model sees on one call, often composed of a role, instructions, examples, and an output format.
The techniques here alter the internal computation and reasoning the model goes through due to the wording it sees:
- Chain-of-thought makes it work in steps before answering - Few-shot examples define the format and the edge cases - A JSON schema or XML tags make the output parseable by code - Self-consistency samples a few chains and takes the majority
> Context engineering:
It's everything the model sees on a turn, not just the prompt. That includes the query, retrieved docs, memory, prior turns, and tool outputs from earlier steps.
The window is finite and fills up fast, so the engineering work is to rank inputs and cut everything that isn't pulling weight.
You do this by:
- Retrieving only the chunks relevant to the query, then reranking them - Keeping key facts out of the middle, where accuracy drops - Summarizing old turns, evict stale outputs, push big blobs to files
> Harness engineering:
It's the code around the model that defines the tools, parses the calls, retries on failure, and can route work to sub-agents so one handles retrieval and another handles code.
A verifier then grades the result by running tests, validating a schema, etc.
Prompt and context involve getting one call right. The harness involves everything that has to happen around that call for it to run in a real system.
> Loop engineering:
In the usual setup, you manage the outer loop, i.e, you write a prompt, read the turns the agent runs, write the next prompt, and repeat, while catching failures.
This layer hands that job to the agent itself. It kicks off on a schedule or an event, and runs many turns with no prompt in between.
A loop inherently doesn't know when it's finished. An agent can report that it's done and halt while the tests still fail. So the stop can't be the agent's word, but rather it has to be a real signal, like:
- A turn and token cap to stop stuck runs - A no-progress detector to catch repeated calls - A completion check to verify the goal with a separate model or a deterministic test
By this layer, you're operating on the whole run, so the engineering moves from writing each prompt to setting the goal and the stop conditions up front and letting it run.
A longer run also makes the cost of the layers underneath it grow.
When a tool returns a 50K-token response and nothing removes it, the model reads it again on every later call. Over a loop of twenty steps, one response turns into hundreds of thousands of tokens.
I wrote a full breakdown of where an agent's tokens actually go and how a harness keeps context flat, using TrueForge, an open-source harness that turns an LLM into a working agent.
GitHub repo: t.co/ZjePhhfKIh
(don't forget to star it ⭐ )
It covers offloading large tool outputs to files, subagents for context isolation, Code Mode for multi-tool joins, and compaction.
It also has a benchmark of three harnesses on the same 14 tasks, where TrueForge reached the same answers on about 40% of the tokens Claude Managed Agents used.
You can read my full article below.
作者结合图示介绍大模型参数高效微调:传统全量微调成本高,LoRA、LoRA-FA、VeRA 等方法通过低秩矩阵等方式降低训练资源需求。
Flux TTS用持久流会话保存声学状态,并追踪打断时已播放的词语,兼顾语气连续性与对话历史准确性。
通过跨 GPU 路由示例解释 MoE 推理:浮点运算减少仍可能伴随通信开销,需区分本地、机内与跨服务器路径。
We're in a race. It's not USA vs China but humans and AGIs vs ape power centralization. @deepseek_ai stan #1, 2023–Deep Time «C’est la guer
building AI agents, LLMs & vibe coding | angel investor | ai & onchain research
Head of AI @clickup. Tweets about AI, computing and their impacts on society. Previously founder @codegen / ML @palantir / startups. Not a p
Building the Future of Storytelling with AI. - Open Roles: http://jobs.ashbyhq.com/openart