长记忆能力
Memoh 拥有长记忆能力,可以为你的家庭成员提供个性化的服务。他会存储最近一段时间(默认最近15个小时)的上下文,超出时间后则会根据你的需求按需加载记忆。
diff --git a/404.html b/404.html index 3a14faae..aa9325e8 100644 --- a/404.html +++ b/404.html @@ -1,22 +1,23 @@ - +
-Memoh 提供了功能强大的命令行工具,让你可以轻松管理和配置你的 AI 助手。
CLI 工具已包含在主项目中,无需单独安装。
pnpm cli auth login或者使用参数:
pnpm cli auth login -u admin -p passwordpnpm cli auth whoamipnpm cli或者:
pnpm cli agent interactiveauth login - 登录auth logout - 登出auth whoami - 查看当前用户auth config - 配置 API URLagent chat <message> - 发送消息agent interactive - 进入交互模式model list - 列出所有模型model create - 创建新模型model get <id> - 获取模型详情model delete <id> - 删除模型model defaults - 查看默认模型memory search <query> - 搜索记忆memory add <content> - 添加记忆memory messages - 查看消息历史schedule list - 列出所有定时任务schedule create - 创建定时任务schedule toggle <id> - 启用/禁用任务DATABASE_URL - PostgreSQL 连接字符串ROOT_USER - 超级管理员用户名ROOT_USER_PASSWORD - 超级管理员密码JWT_SECRET - JWT 签名密钥QDRANT_URL - Qdrant 连接字符串(默认:http://localhost:6333)REDIS_URL - Redis 连接字符串(默认:redis://localhost:6379)API_PORT - API 服务端口(默认:8080)pnpm cli model create \\
- --name "GPT-4" \\
- --model-id "gpt-4" \\
- --base-url "https://api.openai.com/v1" \\
- --api-key "your-api-key" \\
- --client-type "openai" \\
- --type "chat"pnpm cli config set \\
- --chat-model <uuid> \\
- --summary-model <uuid> \\
- --embedding-model <uuid>pnpm cli config set --max-context-time <minutes>默认值为 900 分钟(15 小时)。
`,15)])])}const c=i(l,[["render",e]]);export{F as __pageData,c as default}; diff --git a/assets/guide_configuration.md.DwJhiLNZ.lean.js b/assets/guide_configuration.md.DwJhiLNZ.lean.js deleted file mode 100644 index ff59d0e2..00000000 --- a/assets/guide_configuration.md.DwJhiLNZ.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as i,o as a,c as t,ag as h}from"./chunks/framework.CbQjVMS6.js";const F=JSON.parse('{"title":"配置指南","description":"","frontmatter":{},"headers":[],"relativePath":"guide/configuration.md","filePath":"guide/configuration.md","lastUpdated":1769728848000}'),l={name:"guide/configuration.md"};function e(n,s,p,k,d,r){return a(),t("div",null,[...s[0]||(s[0]=[h("",15)])])}const c=i(l,[["render",e]]);export{F as __pageData,c as default}; diff --git a/assets/guide_getting-started.md.0vem4Hj3.js b/assets/guide_getting-started.md.0vem4Hj3.js deleted file mode 100644 index 79b2c459..00000000 --- a/assets/guide_getting-started.md.0vem4Hj3.js +++ /dev/null @@ -1,16 +0,0 @@ -import{_ as s,o as i,c as e,ag as n}from"./chunks/framework.CbQjVMS6.js";const g=JSON.parse('{"title":"快速开始","description":"","frontmatter":{},"headers":[],"relativePath":"guide/getting-started.md","filePath":"guide/getting-started.md","lastUpdated":1769728848000}'),t={name:"guide/getting-started.md"};function l(p,a,h,o,r,d){return i(),e("div",null,[...a[0]||(a[0]=[n(`欢迎使用 Memoh!本指南将帮助你快速上手。
Memoh 是一个专属于你的 AI 私人管家,你可以把它跑在你的 NAS,路由器等个人设备上,24 小时的为你提供服务。
在开始之前,请确保你的系统满足以下要求:
git clone https://github.com/memohai/Memoh.git
-cd Memohpnpm install复制环境变量示例文件:
cp .env.example .env编辑 .env 文件,配置以下变量:
# 数据库配置
-DATABASE_URL=postgresql://user:password@localhost:5432/memoh
-
-# 管理员账户
-ROOT_USER=admin
-ROOT_USER_PASSWORD=your_password
-
-# JWT 密钥
-JWT_SECRET=your_jwt_secret_key
-
-# Qdrant 向量数据库
-QDRANT_URL=http://localhost:6333
-
-# Redis 缓存
-REDIS_URL=redis://localhost:6379pnpm run db:pushpnpm run api:devAPI 服务将在 http://localhost:8080 启动。
pnpm installnpm installyarn install启动开发服务器:
pnpm run dev构建生产版本:
pnpm run build(待补充 Docker 配置)
',15)])])}const b=s(n,[["render",l]]);export{k as __pageData,b as default}; diff --git a/assets/guide_installation.md.BgH2AuAr.lean.js b/assets/guide_installation.md.BgH2AuAr.lean.js deleted file mode 100644 index a7a82dde..00000000 --- a/assets/guide_installation.md.BgH2AuAr.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as s,o as i,c as e,ag as t}from"./chunks/framework.CbQjVMS6.js";const k=JSON.parse('{"title":"安装指南","description":"","frontmatter":{},"headers":[],"relativePath":"guide/installation.md","filePath":"guide/installation.md","lastUpdated":1768215522000}'),n={name:"guide/installation.md"};function l(h,a,p,d,o,r){return i(),e("div",null,[...a[0]||(a[0]=[t("",15)])])}const b=s(n,[["render",l]]);export{k as __pageData,b as default}; diff --git a/assets/index.md.ClBLrOjS.js b/assets/index.md.ClBLrOjS.js deleted file mode 100644 index ab99a87f..00000000 --- a/assets/index.md.ClBLrOjS.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,o as t,c as i}from"./chunks/framework.CbQjVMS6.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"Memoh","text":"AI 私人管家","tagline":"长记忆、自托管、AI 驱动的个人生活助手","actions":[{"theme":"brand","text":"快速开始","link":"/guide/getting-started"},{"theme":"alt","text":"查看 GitHub","link":"https://github.com/memohai/Memoh"}]},"features":[{"icon":"🧠","title":"长记忆能力","details":"Memoh 拥有长记忆能力,可以为你的家庭成员提供个性化的服务。他会存储最近一段时间(默认最近15个小时)的上下文,超出时间后则会根据你的需求按需加载记忆。"},{"icon":"⏰","title":"智能定时任务","details":"Memoh 可以帮你创建智能的定时任务,比如:每天早上七点生成一个早餐菜谱,通过 Telegram 发送给我。"},{"icon":"💬","title":"多平台支持","details":"Memoh 可以支持多种聊天软件,比如:Telegram,微信,QQ等常用社交软件,通过直接发送消息与 Memoh 进行交互。"},{"icon":"🔒","title":"自托管部署","details":"你可以把 Memoh 跑在你的 NAS,路由器等个人设备上,24小时的为你提供服务,完全掌控你的数据。"},{"icon":"🚀","title":"易于使用","details":"提供命令行工具和 Web 界面,让你轻松管理和配置你的 AI 助手。"},{"icon":"🔧","title":"高度可定制","details":"支持多种 AI 模型,可以配置不同的聊天模型、嵌入模型和摘要模型,满足你的个性化需求。"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1768215522000}'),a={name:"index.md"};function o(n,l,s,d,m,r){return t(),i("div")}const p=e(a,[["render",o]]);export{h as __pageData,p as default}; diff --git a/assets/index.md.ClBLrOjS.lean.js b/assets/index.md.ClBLrOjS.lean.js deleted file mode 100644 index ab99a87f..00000000 --- a/assets/index.md.ClBLrOjS.lean.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,o as t,c as i}from"./chunks/framework.CbQjVMS6.js";const h=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"Memoh","text":"AI 私人管家","tagline":"长记忆、自托管、AI 驱动的个人生活助手","actions":[{"theme":"brand","text":"快速开始","link":"/guide/getting-started"},{"theme":"alt","text":"查看 GitHub","link":"https://github.com/memohai/Memoh"}]},"features":[{"icon":"🧠","title":"长记忆能力","details":"Memoh 拥有长记忆能力,可以为你的家庭成员提供个性化的服务。他会存储最近一段时间(默认最近15个小时)的上下文,超出时间后则会根据你的需求按需加载记忆。"},{"icon":"⏰","title":"智能定时任务","details":"Memoh 可以帮你创建智能的定时任务,比如:每天早上七点生成一个早餐菜谱,通过 Telegram 发送给我。"},{"icon":"💬","title":"多平台支持","details":"Memoh 可以支持多种聊天软件,比如:Telegram,微信,QQ等常用社交软件,通过直接发送消息与 Memoh 进行交互。"},{"icon":"🔒","title":"自托管部署","details":"你可以把 Memoh 跑在你的 NAS,路由器等个人设备上,24小时的为你提供服务,完全掌控你的数据。"},{"icon":"🚀","title":"易于使用","details":"提供命令行工具和 Web 界面,让你轻松管理和配置你的 AI 助手。"},{"icon":"🔧","title":"高度可定制","details":"支持多种 AI 模型,可以配置不同的聊天模型、嵌入模型和摘要模型,满足你的个性化需求。"}]},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1768215522000}'),a={name:"index.md"};function o(n,l,s,d,m,r){return t(),i("div")}const p=e(a,[["render",o]]);export{h as __pageData,p as default}; diff --git a/assets/index.md.DoAiuyV1.js b/assets/index.md.DoAiuyV1.js new file mode 100644 index 00000000..3896cc7a --- /dev/null +++ b/assets/index.md.DoAiuyV1.js @@ -0,0 +1 @@ +import{_ as t,o,c as r,j as a,a as l}from"./chunks/framework.k8PGzqiH.js";const f=JSON.parse('{"title":"Hello Memoh","description":"","frontmatter":{},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1770046483000}'),n={name:"index.md"};function s(d,e,i,m,c,h){return o(),r("div",null,[...e[0]||(e[0]=[a("h1",{id:"hello-memoh",tabindex:"-1"},[l("Hello Memoh "),a("a",{class:"header-anchor",href:"#hello-memoh","aria-label":'Permalink to "Hello Memoh"'},"")],-1)])])}const x=t(n,[["render",s]]);export{f as __pageData,x as default}; diff --git a/assets/index.md.DoAiuyV1.lean.js b/assets/index.md.DoAiuyV1.lean.js new file mode 100644 index 00000000..3896cc7a --- /dev/null +++ b/assets/index.md.DoAiuyV1.lean.js @@ -0,0 +1 @@ +import{_ as t,o,c as r,j as a,a as l}from"./chunks/framework.k8PGzqiH.js";const f=JSON.parse('{"title":"Hello Memoh","description":"","frontmatter":{},"headers":[],"relativePath":"index.md","filePath":"index.md","lastUpdated":1770046483000}'),n={name:"index.md"};function s(d,e,i,m,c,h){return o(),r("div",null,[...e[0]||(e[0]=[a("h1",{id:"hello-memoh",tabindex:"-1"},[l("Hello Memoh "),a("a",{class:"header-anchor",href:"#hello-memoh","aria-label":'Permalink to "Hello Memoh"'},"")],-1)])])}const x=t(n,[["render",s]]);export{f as __pageData,x as default}; diff --git a/assets/platforms_telegram.md.4QAVo9yy.js b/assets/platforms_telegram.md.4QAVo9yy.js deleted file mode 100644 index d7a01f1f..00000000 --- a/assets/platforms_telegram.md.4QAVo9yy.js +++ /dev/null @@ -1,11 +0,0 @@ -import{_ as e,o as s,c as t,ag as l}from"./chunks/framework.CbQjVMS6.js";const m=JSON.parse('{"title":"Telegram Bot 集成","description":"","frontmatter":{},"headers":[],"relativePath":"platforms/telegram.md","filePath":"platforms/telegram.md","lastUpdated":1768215522000}'),n={name:"platforms/telegram.md"};function o(i,a,p,r,c,d){return s(),t("div",null,[...a[0]||(a[0]=[l(`Memoh 支持通过 Telegram Bot 进行交互。
@BotFather/newbotpnpm telegram:startTelegram Service 将在 http://localhost:7101 启动。
使用 CLI 工具创建 platform:
pnpm cli platform create根据提示配置:
telegramhttp://localhost:7101{ "botToken": "<your-telegram-bot-token>" }/start - 欢迎消息和命令列表/login <username> <password> - 登录到你的账户/logout - 登出/whoami - 显示当前用户信息/chat <message> - 与 AI 对话/help - 显示帮助信息你: /start
-
-Bot: 👋 Welcome to Memoh Bot!
-
-你: /login admin password
-
-Bot: ✅ Login successful!
-
-你: /chat 你好,介绍一下你自己
-
-Bot: 🤖 你好!我是 Memoh AI 助手...