Skip to content

fix: fixed list of type in EXTRACTION_PROMPT_PART_1 #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/memos/memories/textual/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down