Memory search
기준일: 2026-07-26
공식 기준: Memory search
Memory search 문서는 OpenClaw 공식 문서(concepts/memory-search)를 한국어로 정리한 가이드입니다. How memory search finds relevant notes using embeddings and hybrid retrieval 명령·설정 키·코드 예시는 공식 문서를 그대로 보존하며, 해석과 절차 안내는 한국어로 제공합니다. 최종 동작은 설치된 CLI 버전과 공식 원문을 확인하세요.
핵심 요약
How memory search finds relevant notes using embeddings and hybrid retrieval
한국어 가이드 범위: concepts/memory-search 경로의 설정·명령·제약·예시를 학습용으로 재구성합니다.
문서 구성
공식 문서의 주요 섹션은 다음과 같습니다.
- 빠른 시작
- Supported providers
- How search works
- Improving search quality
- Temporal decay
- MMR (diversity)
- Enable both
- Multimodal memory
- Session memory search
- 트러블슈팅
- 관련 문서
상세 내용
본문
memory_search finds relevant notes from your memory files, even when the wording differs from the original text. It chunks memory into small pieces and searches them with embeddings, keywords, or both.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
빠른 시작
OpenClaw uses OpenAI embeddings by default. To use another provider, set it explicitly:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
{
memory: {
search: {
provider: "openai", // or "gemini", "voyage", "mistral", "bedrock", "local", "ollama", "lmstudio", "github-copilot", "openai-compatible"
},
},
}
openclaw plugins install @openclaw/llama-cpp-provider
Supported providers
| Provider | ID | Needs API key | Notes |
|---|---|---|---|
| Bedrock | bedrock |
No | Uses the AWS credential chain |
| DeepInfra | deepinfra |
Yes | Default model BAAI/bge-m3 |
| Gemini | gemini |
Yes | Supports image/audio indexing |
| GitHub Copilot | github-copilot |
No | Uses your Copilot subscription |
| Local | local |
No | GGUF model, ~0.6 GB auto-download |
| LM Studio | lmstudio |
No | Local/self-hosted server |
| Mistral | mistral |
Yes | |
| Ollama | ollama |
No | Local/self-hosted server |
| OpenAI | openai |
Yes | Default |
| OpenAI-compatible | openai-compatible |
Usually | Generic /v1/embeddings endpoint |
| Voyage | voyage |
Yes |
How search works
OpenClaw runs two retrieval paths in parallel and merges the results:
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
주요 항목:
- Vector search matches similar meaning ("gateway host" matches "the
- BM25 keyword search matches exact terms (IDs, error strings, config
- Filename search indexes paths separately from note bodies. Exact full
flowchart LR
Q["Query"] --> E["Embedding"]
Q --> T["Tokenize"]
E --> VS["Vector search"]
T --> BM["BM25 search"]
VS --> M["Weighted merge"]
BM --> M
M --> R["Top results"]
Improving search quality
Two optional features help with a large note history.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
Temporal decay
Old notes gradually lose ranking weight so recent information surfaces first. With the default 30-day half-life, a note from last month scores at 50% of its original weight. MEMORY.md and other non-dated files under memory/ are evergreen and never decayed; only dated memory/YYYY-MM-DD.md files decay.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
MMR (diversity)
Reduces redundant results. If five notes all mention the same router config, MMR ensures the top results cover different topics instead of repeating.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
Enable both
{
memory: {
search: {
query: {
hybrid: {
mmr: { enabled: true },
temporalDecay: { enabled: true },
},
},
},
},
}
Multimodal memory
With gemini-embedding-2-preview, you can index images and audio alongside Markdown. This only applies to files under memory.search.extraPaths; default memory roots (MEMORY.md, memory/*.md) stay Markdown-only. Search queries remain text, but they match against visual and audio content. See Memory configuration reference for setup.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
Session memory search
For exact full-text recall from session transcripts, use sessions_search and then open a result with sessions_history. Session-memory search remains the semantic, experimental complement.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
트러블슈팅
provider-owned batch deadlines. Check provider health and rerun openclaw memory index --force.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
관련 문서
주요 항목:
- Memory overview
- Active memory
- Builtin memory engine
- Memory configuration reference
실습 체크리스트
- 공식 문서와 로컬 버전을 대조합니다:
https://docs.openclaw.ai/concepts/memory-search - 관련 CLI는
openclaw --help및 하위 명령--help로 옵션을 확인합니다. - 설정 변경 시
openclaw config/openclaw doctor로 유효성을 검사합니다. - Gateway·채널·플러그인 변경 후에는 필요 시 Gateway를 재시작합니다.
자주 쓰는 명령·설정 예시
{
memory: {
search: {
provider: "openai", // or "gemini", "voyage", "mistral", "bedrock", "local", "ollama", "lmstudio", "github-copilot", "openai-compatible"
},
},
}
openclaw plugins install @openclaw/llama-cpp-provider
flowchart LR
Q["Query"] --> E["Embedding"]
Q --> T["Tokenize"]
E --> VS["Vector search"]
T --> BM["BM25 search"]
VS --> M["Weighted merge"]
BM --> M
M --> R["Top results"]
{
memory: {
search: {
query: {
hybrid: {
mmr: { enabled: true },
temporalDecay: { enabled: true },
},
},
},
},
}
관련 링크
이 가이드는 공식 문서를 한국어 학습용으로 재구성한 것입니다. 옵션 기본값·플래그 이름은 설치 버전에 따라 달라질 수 있습니다.