diff --git a/src/memos/mem_os/product.py b/src/memos/mem_os/product.py index a7bd7a7d..c12f07db 100644 --- a/src/memos/mem_os/product.py +++ b/src/memos/mem_os/product.py @@ -630,7 +630,7 @@ def user_register( # Create a default cube for the user using MOSCore's methods default_cube_name = f"{user_name}_{user_id}_default_cube" - mem_cube_name_or_path = f"{CUBE_PATH}/{default_cube_name}" + mem_cube_name_or_path = os.path.join(CUBE_PATH, default_cube_name) default_cube_id = self.create_cube_for_user( cube_name=default_cube_name, owner_id=user_id, cube_path=mem_cube_name_or_path ) diff --git a/src/memos/templates/mos_prompts.py b/src/memos/templates/mos_prompts.py index 11ada9d3..239f1cf3 100644 --- a/src/memos/templates/mos_prompts.py +++ b/src/memos/templates/mos_prompts.py @@ -203,11 +203,12 @@ FURTHER_SUGGESTION_PROMPT = """ You are a helpful assistant. You are given a dialogue between a user and a assistant. -You need to suggest a further question based on the dialogue. +You need to suggest a further user query based on the dialogue. Requirements: 1. The further question should be related to the dialogue. 2. The further question should be concise and accurate. 3. You must return ONLY a valid JSON object. Do not include any other text, explanations, or formatting. +4. The further question should be generated by the user viewpoint and think of yourself as the user the lastest dialogue is: {dialogue} output should be a json format, the key is "query", the value is a list of suggestion query.