随笔分类 -  GenAI

摘要:@ 命令是一个很有用的工具,核心就是为 AI 聊天添加更加具体的上下文信息。 你在 Chat 窗口输入 @ 时,就可以看到很多选项。 你可以这样使用 @ 命令: 在输入框中输入 @ 用上下键选择你想要的命令 按 Enter 键确认 1. Files&Folders 引用项目中的特定文件和文件夹作为上 阅读全文
posted @ 2025-08-14 14:17 Zhentiw 阅读(44) 评论(0) 推荐(0)
摘要:The user is currently STUDYING, and they've asked you to follow these strict rules during this chat. No matter what other instructions follow, you MUS 阅读全文
posted @ 2025-08-03 15:17 Zhentiw 阅读(44) 评论(0) 推荐(0)
摘要:前置知识 stdio 这是 MCP 中的通信方式。 进程:执行一个应用程序,就会启动一个进程,操作系统会为其分配内存空间、系统资源。 应用程序执行完毕后,系统分配给进程的资源就会被回收。 进程之间是可以通信的。那这里有一个最基本的要求:进程不能结束。如何让进程不结束? 想想微信、QQ启动后为啥不结束 阅读全文
posted @ 2025-07-27 20:19 Zhentiw 阅读(30) 评论(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 阅读(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:06 Zhentiw 阅读(15) 评论(0) 推荐(0)
摘要:NLP 发展的4个阶段: 阶段 时间 方法 / 模型 类型 主要用途 是否考虑词序 / 语义 规则阶段 1950s–1970s 语法规则、人工模板 人工构建规则系统 机器翻译、问答系统 ✅ 语法结构,❌语义 统计阶段 1970s–2010s Bag-of-Words (BoW) 特征表示方法 文本分 阅读全文
posted @ 2025-07-19 20:53 Zhentiw 阅读(39) 评论(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 阅读(8) 评论(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 阅读(9) 评论(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 阅读(8) 评论(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 阅读(15) 评论(0) 推荐(0)
摘要:LLM,Large Language Model,大语言模型。 🤔思考: LLM 和 AI 这个词是完全等价的?或者说 AI 就是 LLM 么? LLM 仅仅是 AI 的一个分支。 任何能够使机器模仿人类行为的技术,都可以称之为人工智能技术。 人工智能下面有很多的分支,其中一个就是机器学习。 人类 阅读全文
posted @ 2025-07-05 18:20 Zhentiw 阅读(38) 评论(0) 推荐(0)
摘要:准备工作 本地模型 模型分为两种: 1.专有模型:闭源模型 OpenAI GPT4 Cluade 优点:强大的商业支持 缺点:付费、数据的隐私 2.开源模型(学习阶段) 微软:Phi Meta:Llama deepseek 不需要联网 安装Ollama Ollama:模型平台,可以安装各种模型:Qw 阅读全文
posted @ 2025-07-05 18:18 Zhentiw 阅读(19) 评论(0) 推荐(0)
摘要:DeepSeek Reasoning A CLI tool that combines DeepSeek's reasoning capabilities with GPT's summarization power. This project demonstrates how to: Use De 阅读全文
posted @ 2025-02-03 22:05 Zhentiw 阅读(62) 评论(0) 推荐(0)
摘要:import { Configuration, OpenAIApi } from "openai"; import { process } from './env'; const configuration = new Configuration({ apiKey: process.env.OPEN 阅读全文
posted @ 2023-10-06 03:02 Zhentiw 阅读(37) 评论(0) 推荐(0)