Skip to content

Commit 4f49ee6

Browse files
authored
Fix: fix memcube path bug for docker and change further question prompt (#248)
* fix: fix mem cube bug for docker * fix: further questions
1 parent 49eb6cb commit 4f49ee6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/memos/mem_os/product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def user_register(
630630

631631
# Create a default cube for the user using MOSCore's methods
632632
default_cube_name = f"{user_name}_{user_id}_default_cube"
633-
mem_cube_name_or_path = f"{CUBE_PATH}/{default_cube_name}"
633+
mem_cube_name_or_path = os.path.join(CUBE_PATH, default_cube_name)
634634
default_cube_id = self.create_cube_for_user(
635635
cube_name=default_cube_name, owner_id=user_id, cube_path=mem_cube_name_or_path
636636
)

src/memos/templates/mos_prompts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,12 @@
203203
FURTHER_SUGGESTION_PROMPT = """
204204
You are a helpful assistant.
205205
You are given a dialogue between a user and a assistant.
206-
You need to suggest a further question based on the dialogue.
206+
You need to suggest a further user query based on the dialogue.
207207
Requirements:
208208
1. The further question should be related to the dialogue.
209209
2. The further question should be concise and accurate.
210210
3. You must return ONLY a valid JSON object. Do not include any other text, explanations, or formatting.
211+
4. The further question should be generated by the user viewpoint and think of yourself as the user
211212
the lastest dialogue is:
212213
{dialogue}
213214
output should be a json format, the key is "query", the value is a list of suggestion query.

0 commit comments

Comments
 (0)