Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

docs(prompt-guide): document embedding_template memory-schema field (#2234)

Evo0eb3ae93a2d6
diff --git a/docs/en/guides/10-prompt-guide.md b/docs/en/guides/10-prompt-guide.md
index 5649a1464..3255bd278 100644
--- a/docs/en/guides/10-prompt-guide.md
+++ b/docs/en/guides/10-prompt-guide.md
@@ -108,6 +108,8 @@ fields:
filename_template: "profile.md"
content_template: |
...
+embedding_template: |
+ ...
directory: "viking://user/{{ user_space }}/memories/..."
enabled: true
operation_mode: "upsert"
@@ -125,6 +127,8 @@ Field meanings:
- The template used to generate the file name
- `content_template`
- The body template used when writing the memory file
+- `embedding_template`
+ - The template used to render the text that is embedded for semantic retrieval; when unset, a default representation is used
- `directory`
- The directory where this memory type is stored
- `enabled`
diff --git a/docs/zh/guides/10-prompt-guide.md b/docs/zh/guides/10-prompt-guide.md
index 1e1351b8e..e8efeeedf 100644
--- a/docs/zh/guides/10-prompt-guide.md
+++ b/docs/zh/guides/10-prompt-guide.md
@@ -108,6 +108,8 @@ fields:
filename_template: "profile.md"
content_template: |
...
+embedding_template: |
+ ...
directory: "viking://user/{{ user_space }}/memories/..."
enabled: true
operation_mode: "upsert"
@@ -125,6 +127,8 @@ operation_mode: "upsert"
- 生成文件名时使用的模板
- `content_template`
- 落盘时使用的正文模板
+- `embedding_template`
+ - 用于渲染参与语义检索的向量化(embedding)文本的模板;未设置时使用默认表示
- `directory`
- 该类记忆写入的目录
- `enabled`