From 59673581b66393fbf9608615cdfc9fdb365648c8 Mon Sep 17 00:00:00 2001 From: costantino Date: Mon, 28 Jul 2025 12:28:39 +0200 Subject: [PATCH] fix: fixed list of type in EXTRACTION_PROMPT_PART_1 --- src/memos/memories/textual/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memos/memories/textual/general.py b/src/memos/memories/textual/general.py index 2f15ab73..de85f0a6 100644 --- a/src/memos/memories/textual/general.py +++ b/src/memos/memories/textual/general.py @@ -214,7 +214,7 @@ def _embed_one_sentence(self, sentence: str) -> list[float]: - "memory": The content of the memory (string). Rephrase the content if necessary. - "metadata": A dictionary containing additional information about the memory. * The metadata dictionary should include: - - "type": The type of memory (string), e.g., "procedure", "fact", "event", "opinion", etc. + - "type": The type of memory must be only in: "procedure", "fact", "event", "opinion", "topic", "reasoning". - "memory_time": The time the memory occurred or refers to (string). Must be in standard `YYYY-MM-DD` format. Relative expressions such as "yesterday" or "tomorrow" are not allowed. - "source": The origin of the memory (string), e.g., `"conversation"`, `"retrieved"`, `"web"`, `"file"`. - "confidence": A numeric score (float between 0 and 100) indicating how certain you are about the accuracy or reliability of the memory.