随笔分类 - GenAI
摘要:Content Query Rewrite Query Expand Multi-query Query Decomposition HyDE Query Rewrite Query Rewrite is a rewirting strategy. It means: without changin
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:Overview A small demo, using LangGrpah to calling real tool to write an artical about the topic user defined. Project structure tool-calls ├── output
阅读全文
摘要:一、从“语法糖”到“换芯术”:TypeScript 与 Go 的工程化综述 在很多团队的技术栈演进路径中,TypeScript 常常扮演“前后端通吃”的全能角色:前端 React/Vue、Node.js 后端、BFF 层、Serverless 函数,几乎都能看到它的身影。它在 JavaScript
阅读全文
摘要: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
阅读全文
摘要:While iframe-based UI components provide rich, visual interfaces, they need a way to communicate back to the host application to trigger actions, requ
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:While raw HTML gives us visual interfaces, it has limitations when it comes to creating truly interactive and consistent user experiences. Raw HTML re
阅读全文
摘要:MCP UI enables servers to send rich, interactive user interfaces along with their responses, transforming AI chat from text-only interactions into vis
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:Modern AI applications often need to collect structured input from users at key moments in a workflow. Elicitation in the Model Context Protocol (MCP)
阅读全文
摘要: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
阅读全文
摘要:Embedded resource:In Tools, you can also embed the resouce as additional information. https://modelcontextprotocol.io/specification/2025-06-18/server/
阅读全文
摘要:In previous exercises, you learned how to extend your MCP server with tools—server-defined functions that let clients perform actions or retrieve data
阅读全文
摘要:什么是 Agent 基础篇Agent概念 不是指的 AI 智能体,而是指代理服务器。 代理服务器充当用户和模型交流的中间人。 Agent: 狭义:代理服务器 广义:AI智能体(AI Agent) 什么是AI Agent AI Agent,中文称之为“AI智能体”,本质上是能自主感知环境,进行规划与决
阅读全文
摘要:在使用 LangChain 构建大模型应用时,提示词(Prompt)设计是第一步。但直接写死字符串容易出错、复用性差,也不利于维护。这时候就该用上 LangChain 提供的 Prompt Template —— 一个专为语言模型设计的提示词模板工具。 快速上手 无变量,纯字符串模板 import
阅读全文

浙公网安备 33010602011771号