随笔分类 -  GenAI

摘要:Content Query Rewrite Query Expand Multi-query Query Decomposition HyDE Query Rewrite Query Rewrite is a rewirting strategy. It means: without changin 阅读全文
posted @ 2026-06-01 13:35 Zhentiw 阅读(11) 评论(0) 推荐(0)
摘要:In the indexing stage of RAG, the core idea is to transform raw documents into searchable index data that can be consumed later. I usually break it do 阅读全文
posted @ 2026-05-21 14:00 Zhentiw 阅读(16) 评论(0) 推荐(0)
摘要:For a RAG system, indexing is not just about putting chunks into a vector database. It usually includes three major parts: 1. Chunk Splitting This ste 阅读全文
posted @ 2026-05-19 13:48 Zhentiw 阅读(11) 评论(0) 推荐(0)
摘要:Overview A small demo, using LangGrpah to calling real tool to write an artical about the topic user defined. Project structure tool-calls ├── output 阅读全文
posted @ 2026-02-23 14:37 Zhentiw 阅读(16) 评论(0) 推荐(0)
摘要:一、从“语法糖”到“换芯术”:TypeScript 与 Go 的工程化综述 在很多团队的技术栈演进路径中,TypeScript 常常扮演“前后端通吃”的全能角色:前端 React/Vue、Node.js 后端、BFF 层、Serverless 函数,几乎都能看到它的身影。它在 JavaScript 阅读全文
posted @ 2026-02-22 16:10 Zhentiw 阅读(84) 评论(0) 推荐(0)
摘要:Tool Results When we call tools, we get the result of the tool call and because we have structured content, we can use it programmatically. This enabl 阅读全文
posted @ 2026-02-16 14:52 Zhentiw 阅读(50) 评论(0) 推荐(0)
摘要:While iframe-based UI components provide rich, visual interfaces, they need a way to communicate back to the host application to trigger actions, requ 阅读全文
posted @ 2026-02-09 14:32 Zhentiw 阅读(31) 评论(0) 推荐(0)
摘要:When iframes load in AI chat, the host application doesn't know when they're ready to receive data or handle interactions. Without this handshake, use 阅读全文
posted @ 2026-02-02 14:23 Zhentiw 阅读(15) 评论(0) 推荐(0)
摘要:While raw HTML and Remote DOM provide great ways to create UI components, they have limitations when it comes to building truly complex, interactive a 阅读全文
posted @ 2026-01-30 15:03 Zhentiw 阅读(31) 评论(0) 推荐(0)
摘要:While raw HTML gives us visual interfaces, it has limitations when it comes to creating truly interactive and consistent user experiences. Raw HTML re 阅读全文
posted @ 2026-01-29 14:53 Zhentiw 阅读(16) 评论(0) 推荐(0)
摘要:MCP UI enables servers to send rich, interactive user interfaces along with their responses, transforming AI chat from text-only interactions into vis 阅读全文
posted @ 2026-01-29 14:51 Zhentiw 阅读(25) 评论(0) 推荐(0)
摘要:n a web application, the buttons, links, and data that you see change based on the context. Whether the user is currently logged in, whether there is 阅读全文
posted @ 2026-01-27 14:48 Zhentiw 阅读(80) 评论(0) 推荐(0)
摘要:It's common that there are some operation are taking longer time, in such cases, we need to consider: Report progress Allow cancellation The Model Con 阅读全文
posted @ 2026-01-26 15:06 Zhentiw 阅读(13) 评论(0) 推荐(0)
摘要:Modern AI applications often need to generate new content (whether that's text, images, or more) on demand. This process is called sampling: asking a 阅读全文
posted @ 2026-01-23 14:43 Zhentiw 阅读(20) 评论(0) 推荐(0)
摘要:Modern AI applications often need to collect structured input from users at key moments in a workflow. Elicitation in the Model Context Protocol (MCP) 阅读全文
posted @ 2026-01-22 14:47 Zhentiw 阅读(28) 评论(0) 推荐(0)
摘要:Sometimes there are common workflows for people using your MCP server you want to make easier for users. You may not want your users to have to write 阅读全文
posted @ 2026-01-20 15:06 Zhentiw 阅读(17) 评论(0) 推荐(0)
摘要:Embedded resource:In Tools, you can also embed the resouce as additional information. https://modelcontextprotocol.io/specification/2025-06-18/server/ 阅读全文
posted @ 2026-01-19 14:35 Zhentiw 阅读(14) 评论(0) 推荐(0)
摘要:In previous exercises, you learned how to extend your MCP server with tools—server-defined functions that let clients perform actions or retrieve data 阅读全文
posted @ 2026-01-17 19:31 Zhentiw 阅读(15) 评论(0) 推荐(0)
摘要:什么是 Agent 基础篇Agent概念 不是指的 AI 智能体,而是指代理服务器。 代理服务器充当用户和模型交流的中间人。 Agent: 狭义:代理服务器 广义:AI智能体(AI Agent) 什么是AI Agent AI Agent,中文称之为“AI智能体”,本质上是能自主感知环境,进行规划与决 阅读全文
posted @ 2025-11-19 15:08 Zhentiw 阅读(90) 评论(0) 推荐(0)
摘要:在使用 LangChain 构建大模型应用时,提示词(Prompt)设计是第一步。但直接写死字符串容易出错、复用性差,也不利于维护。这时候就该用上 LangChain 提供的 Prompt Template —— 一个专为语言模型设计的提示词模板工具。 快速上手 无变量,纯字符串模板 import 阅读全文
posted @ 2025-10-18 17:55 Zhentiw 阅读(138) 评论(0) 推荐(0)