Skip to content

Commit 5d387cf

Browse files
authored
make memories private by default (#2384)
2 parents 7ecd247 + 9314d71 commit 5d387cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

backend/models/memories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MemoryCategory(str, Enum):
3535
class Memory(BaseModel):
3636
content: str = Field(description="The content of the memory")
3737
category: MemoryCategory = Field(description="The category of the memory", default=MemoryCategory.other)
38-
visibility: str = Field(description="The visibility of the memory", default='public')
38+
visibility: str = Field(description="The visibility of the memory", default='private')
3939
tags: List[str] = Field(description="The tags of the memory and learning", default=[])
4040

4141
@staticmethod

backend/utils/conversations/process_conversation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ def _extract_memories(uid: str, conversation: Conversation):
202202
new_memories = new_memories_extractor(uid, conversation.transcript_segments)
203203

204204
parsed_memories = []
205-
for fact in new_memories:
206-
parsed_memories.append(MemoryDB.from_memory(fact, uid, conversation.id, False))
207-
print('_extract_memories:', fact.category.value.upper(), '|', fact.content)
205+
for memory in new_memories:
206+
parsed_memories.append(MemoryDB.from_memory(memory, uid, conversation.id, False))
207+
print('_extract_memories:', memory.category.value.upper(), '|', memory.content)
208208

209209
if len(parsed_memories) == 0:
210210
print(f"No memories extracted for conversation {conversation.id}")

0 commit comments

Comments
 (0)