|
|
@@ -45,6 +45,11 @@ def build_router(memory_conv: Memory, memory_know: Memory) -> APIRouter:
|
|
|
"""Store conversational memory with LLM extraction and deduplication enabled."""
|
|
|
return await handle_add(req, memory_conv, verbatim_allowed=False)
|
|
|
|
|
|
+ @router.post("/memories/raw", summary="Store raw conversational memory", tags=["memories"])
|
|
|
+ async def add_raw_memory(req: Request):
|
|
|
+ """Store processed or pre-summarized conversational memory without rerunning the mem0 LLM."""
|
|
|
+ return await handle_add(req, memory_conv, verbatim_allowed=True)
|
|
|
+
|
|
|
@router.post("/memories/search", summary="Search conversational memory", tags=["memories"])
|
|
|
async def search_memories(req: Request):
|
|
|
"""Search conversational memory and rerank candidates by relevance."""
|