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-up

2. 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 convosIndex 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 wiki

MemPalace จะ 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 knowledgeWorking memory / session context

ทั้งสองใช้คู่กันได้ — ไม่ conflict กัน


4. AI Tool ที่รองรับ

Toolวิธีเชื่อม
Claude CodeMCP server (29 tools) + Auto-save hooks
Gemini CLIMCP server
MCP-compatible toolsMCP 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


  • 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 session

Requirements: 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.

CommandPurpose
mempalace mine <path>Index files (code, markdown, text)
mempalace mine <path> --mode convosIndex 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:

  1. Mine the vaultmempalace mine ~/PrasitN_Vault/wiki/ --wing wiki makes all notes semantically searchable from Claude Code
  2. Hybrid workflow — Use Obsidian/LLM Wiki for curated long-term knowledge; use MemPalace for verbatim conversation memory. They complement rather than replace each other.
  • MemPalace — Main entity page with benchmark scores
  • LLM Wiki Pattern — The contrasting philosophy: synthesize-first vs. store-raw-then-retrieve