MemPalace — วิธีใช้งาน, mine command, และการใช้กับ Obsidian
🇹🇭 ภาษาไทย
สรุปจากการสนทนาเกี่ยวกับ MemPalace ครอบคลุม 3 หัวข้อหลัก: การติดตั้งและตั้งค่า, คำสั่ง mine คืออะไร, และการใช้งานร่วมกับ Obsidian
1. การติดตั้งและตั้งค่า
Requirements:
- Python 3.9+
- ChromaDB (ติดมาอัตโนมัติเมื่อ install)
- ~300 MB disk (สำหรับ embedding model)
- ไม่ต้อง API key สำหรับ core features
ติดตั้ง:
pip install mempalace
mempalace init ~/projects/myapp # สร้าง palace ใหม่Flow เริ่มต้น:
# 1. สร้าง palace
mempalace init ~/projects/myapp
# 2. นำข้อมูลเข้า
mempalace mine ~/projects/myapp
# 3. ค้นหา
mempalace search "คำถามที่ต้องการ"
# 4. โหลด context ก่อนเริ่ม session ใหม่
mempalace wake-up2. mine command คืออะไร
mine = “ขุด” ข้อมูลเข้า palace — คำสั่ง index/import ที่นำไฟล์หรือประวัติการสนทนาเข้าไปเก็บใน memory system เหมือนบอก MemPalace ว่า “จำทุกอย่างในโฟลเดอร์นี้ไว้”
ข้อมูลที่ mine เข้าไปจะถูกเก็บแบบ verbatim (ดิบ ไม่สรุป ไม่ paraphrase) ต่างจาก LLM Wiki Pattern ที่สังเคราะห์ก่อนเก็บ
Flags ทั้งหมด
| คำสั่ง | ทำอะไร |
|---|---|
mempalace mine <path> | Index ไฟล์ทั่วไป (code, markdown, text) |
mempalace mine <path> --mode convos | Index conversation history (เช่น Claude Code sessions) |
mempalace mine <path> --wing <name> | Scope เข้า wing เฉพาะ (ป้องกัน project ปนกัน) |
mempalace sweep <transcript-dir> | Mine แบบ per-message granularity (ละเอียดกว่า) |
ตัวอย่างใช้งานจริง
# index source code
mempalace mine ~/projects/myapp
# index conversation ที่คุยกับ Claude Code
mempalace mine ~/.claude/projects/ --mode convos
# แยก wing ไม่ให้ปนกัน
mempalace mine ~/projects/appA --wing appA
mempalace mine ~/projects/appB --wing appB
# mine ละเอียดแบบ per-message
mempalace sweep ~/.claude/projects/myapp/transcripts/3. ใช้กับ Obsidian ได้ไหม
คำตอบ: ไม่มี Obsidian plugin โดยตรง — MemPalace ออกแบบมาสำหรับ AI conversation tools (Claude Code, Gemini CLI, MCP-compatible) ไม่ใช่ note-taking app
แต่ทำงานร่วมกันได้ 2 แบบ:
แบบที่ 1 — Mine Obsidian vault เข้า palace
# ชี้ mine ไปที่ wiki folder
mempalace mine ~/PrasitN_Vault/wiki/ --wing wikiMemPalace จะ index notes ทั้งหมด → ค้นด้วย semantic search จาก Claude Code ได้
แบบที่ 2 — Hybrid workflow (แนะนำ)
Obsidian (LLM Wiki) ← curated knowledge ที่สังเคราะห์และคัดมาแล้ว
MemPalace ← conversation history แบบ verbatim กับ AI
| LLM Wiki Pattern (Obsidian) | MemPalace | |
|---|---|---|
| เก็บอะไร | ความรู้ที่คัดมา สังเคราะห์แล้ว | ประวัติสนทนา แบบดิบ |
| วิธีเก็บ | LLM สังเคราะห์ก่อน | Verbatim ทุก message |
| ค้นหา | อ่านหน้า wiki ที่ compile แล้ว | Semantic search |
| เหมาะกับ | Reference / long-term knowledge | Working memory / session context |
ทั้งสองใช้คู่กันได้ — ไม่ conflict กัน
4. AI Tool ที่รองรับ
| Tool | วิธีเชื่อม |
|---|---|
| Claude Code | MCP server (29 tools) + Auto-save hooks |
| Gemini CLI | MCP server |
| MCP-compatible tools | MCP server |
| Local models (Ollama) | MCP server |
Claude Code hooks — auto-save 2 แบบ:
- บันทึกตามเวลา (periodic)
- บันทึกก่อน context compression เกิดขึ้น
Docs อ้างอิง
- Getting started:
mempalaceofficial.com/guide/getting-started - CLI reference:
mempalaceofficial.com/reference/cli(403 ณ วันที่สนทนา) - MCP tools:
mempalaceofficial.com/reference/mcp-tools - GitHub:
github.com/MemPalace/mempalace
Scam Alert
โดเมนที่ถูกต้องมีแค่ GitHub, PyPI, และ
mempalaceofficial.comเท่านั้น —mempalace.techเป็น impostor อาจมี malware
Related
- MemPalace — entity page หลักพร้อม benchmark scores
- LLM Wiki Pattern — แนวคิดที่ขัดแย้งกัน: สังเคราะห์ก่อน vs. เก็บดิบแล้วค้น
🇬🇧 English
Summary of the MemPalace usage conversation covering: setup/configuration, the mine command, and Obsidian compatibility.
Setup
pip install mempalace
mempalace init ~/projects/myapp
mempalace mine ~/projects/myapp
mempalace search "your query"
mempalace wake-up # load context before a new sessionRequirements: Python 3.9+, ChromaDB (bundled), ~300 MB disk, no API key needed.
The mine Command
mine ingests content into the palace — it indexes files or conversation history verbatim (no summarization) so MemPalace can retrieve them via semantic search later.
| Command | Purpose |
|---|---|
mempalace mine <path> | Index files (code, markdown, text) |
mempalace mine <path> --mode convos | Index conversation history (Claude Code sessions) |
mempalace mine <path> --wing <name> | Scope to a specific wing (isolate projects) |
mempalace sweep <transcript-dir> | Mine at per-message granularity |
Obsidian Compatibility
No native Obsidian plugin — MemPalace targets AI conversation tools (Claude Code, Gemini CLI, MCP-compatible clients).
Two integration patterns:
- Mine the vault —
mempalace mine ~/PrasitN_Vault/wiki/ --wing wikimakes all notes semantically searchable from Claude Code - Hybrid workflow — Use Obsidian/LLM Wiki for curated long-term knowledge; use MemPalace for verbatim conversation memory. They complement rather than replace each other.
Related
- MemPalace — Main entity page with benchmark scores
- LLM Wiki Pattern — The contrasting philosophy: synthesize-first vs. store-raw-then-retrieve