Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
70373f9
fix playground bug, internet search judge
Dec 4, 2025
d181339
Merge branch 'dev' into feat/fix_palyground_bug
Dec 4, 2025
11cf00a
fix playground internet bug
Dec 4, 2025
6b10ce1
merge dev
Dec 4, 2025
c861f61
modify delete mem
Dec 4, 2025
e638039
modify tool resp bug in multi cube
Dec 4, 2025
dcd3d50
Merge branch 'dev' into feat/fix_palyground_bug
Dec 4, 2025
0c0eff8
Merge branch 'dev' into feat/fix_palyground_bug
Dec 5, 2025
8765dc4
fix bug in playground chat handle and search inter
Dec 5, 2025
1a335db
modify prompt
Dec 5, 2025
18320ff
fix bug in playground
Dec 6, 2025
666b897
fix bug playfround
Dec 6, 2025
275b9b6
Merge branch 'dev' into feat/fix_palyground_bug
Dec 7, 2025
0d22512
fix bug
Dec 7, 2025
d38f55f
Merge branch 'dev' into feat/fix_palyground_bug
Dec 7, 2025
a9eb1f6
fix code
Dec 7, 2025
94ad709
Merge branch 'dev' into feat/fix_palyground_bug
Dec 7, 2025
723a14f
fix model bug in playground
Dec 7, 2025
6f06a23
Merge branch 'dev' into feat/fix_palyground_bug
Dec 7, 2025
a300670
Merge branch 'dev' into feat/fix_palyground_bug
Dec 8, 2025
7ee13b1
Merge branch 'dev' into feat/fix_palyground_bug
Dec 8, 2025
5ab6e92
modify plan b
Dec 8, 2025
1bb0bcd
llm param modify
Dec 8, 2025
1b607e7
Merge branch 'dev' into feat/fix_palyground_bug
Dec 8, 2025
f5bc426
add logger in playground
Dec 8, 2025
a9fa309
modify code
Dec 9, 2025
d2efa24
Merge branch 'dev' into feat/fix_palyground_bug
Dec 9, 2025
9ebfbe1
Merge branch 'dev' into feat/fix_palyground_bug
fridayL Dec 9, 2025
4c055d0
fix bug
Dec 9, 2025
27b4fc4
modify code
Dec 9, 2025
cefeefb
modify code
Dec 9, 2025
7e05fa7
fix bug
Dec 9, 2025
a4f66b1
Merge branch 'dev' into feat/fix_palyground_bug
Dec 9, 2025
9b47647
Merge branch 'dev' into feat/fix_palyground_bug
Dec 9, 2025
05da172
fix search bug in plarground
Dec 9, 2025
e410ec2
fixx bug
Dec 9, 2025
0324588
move schadualr to back
Dec 9, 2025
a834028
Merge branch 'dev' into feat/fix_palyground_bug
Dec 9, 2025
4084954
modify pref location
Dec 9, 2025
de5e372
Merge branch 'dev' into feat/fix_palyground_bug
Dec 9, 2025
87861ab
Merge branch 'dev' into feat/fix_palyground_bug
Dec 9, 2025
8b547b8
modify fast net search
Dec 9, 2025
c915867
Merge branch 'dev' into feat/fix_palyground_bug
Dec 9, 2025
2f238fd
Merge branch 'dev' into feat/fix_palyground_bug
Dec 9, 2025
4543332
add tags and new package
Dec 10, 2025
c51ef0d
merge dev
Dec 10, 2025
033e8bd
modify prompt fix bug
Dec 10, 2025
e300112
Merge branch 'dev' into feat/fix_palyground_bug
Dec 10, 2025
da498fc
Merge branch 'dev' into feat/fix_palyground_bug
Dec 10, 2025
4057f5d
remove nltk due to image promblem
Dec 10, 2025
479d74e
Merge branch 'dev' into feat/fix_palyground_bug
Dec 10, 2025
ecff6e5
prompt modify
Dec 11, 2025
1b4ef23
Merge branch 'dev' into feat/fix_palyground_bug
Dec 11, 2025
7e18cae
modify bug remove redundant field
Dec 11, 2025
a70ffa3
modify bug
Dec 11, 2025
e06eff2
merge dev
Dec 11, 2025
7a149e3
fix playground bug
Dec 11, 2025
0c2d132
merge dev
Dec 11, 2025
d69fd88
fix bug
Dec 11, 2025
a9a7613
merge dev
Dec 11, 2025
dad4ca6
bust internet topk
Dec 11, 2025
f49fad6
Merge branch 'dev' into feat/fix_palyground_bug
Dec 11, 2025
393a7f5
bust to 50
Dec 11, 2025
b691b05
Merge branch 'dev' into feat/fix_palyground_bug
Dec 11, 2025
2bba2c2
fix bug cite
Dec 11, 2025
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
4 changes: 2 additions & 2 deletions src/memos/api/handlers/chat_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,12 @@ def generate_chat_response() -> Generator[str, None, None]:

# Filter memories by threshold, min_num is the min number of memories for playground
second_filtered_memories = self._filter_memories_by_threshold(
memories_list, min_num=15
memories_list, min_num=30
)

# dedup and supplement memories
fast_length = len(filtered_memories)
supplement_length = max(0, 25 - fast_length) # 25 is the max mem for playground
supplement_length = max(0, 50 - fast_length) # 50 is the max mem for playground
filtered_memories = self._dedup_and_supplement_memories(
filtered_memories, second_filtered_memories
)[:supplement_length]
Expand Down
4 changes: 2 additions & 2 deletions src/memos/templates/mos_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
- When using facts from memories, add citations at the END of the sentence with `[i:memId]`.
- `i` is the order in the "Memories" section below (starting at 1). `memId` is the given short memory ID.
- Multiple citations must be concatenated directly, e.g., `[1:sed23s], [
2:1k3sdg], [3:ghi789]`. Do NOT use commas inside brackets. Do not use wrong format like `[def456]`.
2:1k3sdg], [3:ghi789]`. Do NOT use commas inside brackets. Do not use wrong format like `[def456]`, `[1]` etc.
- Cite only relevant memories; keep citations minimal but sufficient.
- Do not use a connected format like [1:abc123,2:def456].
- Brackets MUST be English half-width square brackets `[]`, NEVER use Chinese full-width brackets `【】` or any other symbols.
Expand Down Expand Up @@ -222,7 +222,7 @@
- 使用记忆中的事实时,在句尾添加引用格式`[i:memId]`。
- `i`是下面"记忆"部分中的顺序(从1开始)。`memId`是给定的短记忆ID。
- 多个引用必须直接连接,例如,`[1:sed23s], [
2:1k3sdg], [3:ghi789]`。不要在方括号内使用逗号。不要使用错误格式如`[def456]`。
2:1k3sdg], [3:ghi789]`。不要在方括号内使用逗号。不要使用错误格式如`[def456]`, `[1]`等
- 只引用相关记忆;保持引用最少但充分。
- 不要使用连接格式如[1:abc123,2:def456]。
- 方括号必须是英文半角方括号`[]`,绝不使用中文全角括号`【】`或任何其他符号。
Expand Down