07 2025 档案

摘要:前置知识 stdio 这是 MCP 中的通信方式。 进程:执行一个应用程序,就会启动一个进程,操作系统会为其分配内存空间、系统资源。 应用程序执行完毕后,系统分配给进程的资源就会被回收。 进程之间是可以通信的。那这里有一个最基本的要求:进程不能结束。如何让进程不结束? 想想微信、QQ启动后为啥不结束 阅读全文
posted @ 2025-07-27 20:19 Zhentiw 阅读(77) 评论(0) 推荐(0)
摘要:Install: brew install tree Given project structure like this: We want to generate tree stucture into README.md, run: tree -I "node_moudles" > README.m 阅读全文
posted @ 2025-07-27 15:24 Zhentiw 阅读(16) 评论(0) 推荐(0)
摘要:import { ollama } from "ollama-ai-provider"; import { generateObject, generateText } from "ai"; import { z } from "zod"; import { globby } from "globb 阅读全文
posted @ 2025-07-19 21:32 Zhentiw 阅读(18) 评论(0) 推荐(0)
摘要:import { ollama } from "ollama-ai-provider"; import { generateObject, generateText } from "ai"; import { z } from "zod"; import { globby } from "globb 阅读全文
posted @ 2025-07-19 21:06 Zhentiw 阅读(17) 评论(0) 推荐(0)
摘要:NLP 发展的4个阶段: 阶段 时间 方法 / 模型 类型 主要用途 是否考虑词序 / 语义 规则阶段 1950s–1970s 语法规则、人工模板 人工构建规则系统 机器翻译、问答系统 ✅ 语法结构,❌语义 统计阶段 1970s–2010s Bag-of-Words (BoW) 特征表示方法 文本分 阅读全文
posted @ 2025-07-19 20:53 Zhentiw 阅读(53) 评论(0) 推荐(0)
摘要:How vue-router solve the problem: function changeLocation( to: HistoryLocation, state: StateEntry, replace: boolean ): void { /** * if a base tag is p 阅读全文
posted @ 2025-07-18 14:14 Zhentiw 阅读(18) 评论(0) 推荐(0)
摘要:history 是浏览器环境中所支持的一个对象,该对象用于管理当前创建最近访问过的 URL 历史记录,所有的 URL 会被存储在一个名为 histroy 的对象里面,回头就可以通过 JS 脚本调用 history 对象的方法从而控制浏览器前进或者后退。 例如打开浏览器,新创建一个标签页会话,然后在控 阅读全文
posted @ 2025-07-16 14:24 Zhentiw 阅读(68) 评论(0) 推荐(0)
摘要:Overriding a function lets you wrap a third-party method with your own logic while still invoking its original behavior. Example code: const unmountAp 阅读全文
posted @ 2025-07-15 13:50 Zhentiw 阅读(9) 评论(0) 推荐(0)
摘要:import { ollama } from "ollama-ai-provider"; import { generateObject, generateText } from "ai"; import { z } from "zod"; import { globby } from "globb 阅读全文
posted @ 2025-07-05 19:06 Zhentiw 阅读(11) 评论(0) 推荐(0)
摘要:import { ollama } from "ollama-ai-provider"; import { generateObject } from "ai"; import { z } from "zod"; import { globby } from "globby"; import { p 阅读全文
posted @ 2025-07-05 18:55 Zhentiw 阅读(11) 评论(0) 推荐(0)
摘要:import { ollama } from "ollama-ai-provider"; import { generateObject } from "ai"; import { z } from "zod"; import { parseArgs } from "node:util"; cons 阅读全文
posted @ 2025-07-05 18:40 Zhentiw 阅读(15) 评论(0) 推荐(0)
摘要:Run: ollama run gemma3 import { ollama } from "ollama-ai-provider"; import { generateObject } from "ai"; import { z } from "zod"; const model = ollama 阅读全文
posted @ 2025-07-05 18:37 Zhentiw 阅读(27) 评论(0) 推荐(0)
摘要:LLM,Large Language Model,大语言模型。 🤔思考: LLM 和 AI 这个词是完全等价的?或者说 AI 就是 LLM 么? LLM 仅仅是 AI 的一个分支。 任何能够使机器模仿人类行为的技术,都可以称之为人工智能技术。 人工智能下面有很多的分支,其中一个就是机器学习。 人类 阅读全文
posted @ 2025-07-05 18:20 Zhentiw 阅读(53) 评论(0) 推荐(0)
摘要:准备工作 本地模型 模型分为两种: 1.专有模型:闭源模型 OpenAI GPT4 Cluade 优点:强大的商业支持 缺点:付费、数据的隐私 2.开源模型(学习阶段) 微软:Phi Meta:Llama deepseek 不需要联网 安装Ollama Ollama:模型平台,可以安装各种模型:Qw 阅读全文
posted @ 2025-07-05 18:18 Zhentiw 阅读(26) 评论(0) 推荐(0)