We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8984d2e commit da74cb7Copy full SHA for da74cb7
src/memos/multi_mem_cube/single_cube.py
@@ -662,6 +662,13 @@ def _process_text_mem(
662
mode=extract_mode,
663
)
664
flattened_local = [mm for m in memories_local for mm in m]
665
+
666
+ # Explicitly set source_doc_id to metadata if present in info
667
+ source_doc_id = (add_req.info or {}).get("source_doc_id")
668
+ if source_doc_id:
669
+ for memory in flattened_local:
670
+ memory.metadata.source_doc_id = source_doc_id
671
672
self.logger.info(f"Memory extraction completed for user {add_req.user_id}")
673
674
# Add memories to text_mem
0 commit comments