Agent memory
Build a durable memory layer similar to Mem0 without putting every conversation turn into the prompt. Talqora stores compact memories as independently addressable vectors and retrieves only the facts relevant to the current turn.
Memory lifecycle
- Extract: turn a conversation into a concise fact such as “The user prefers weekly CSV reports.”
- Store: embed the fact and write it with tenant, user, category, and retention metadata.
- Recall: query with the new message and filter to the current user or workspace.
- Use: place only the best matching memories in the model context.
- Correct or forget: delete the individual memory and write its replacement when needed.
Use cosine search for paraphrased preferences and decisions. Hybrid search is stronger when memories contain names, SKUs, ticket IDs, dates, or other exact identifiers.
Isolation and retention
- Always filter recall by
organization_id,workspace_id, oruser_idas appropriate. - Keep memories short and independently addressable instead of storing entire transcripts.
- Put expiry, consent, and status fields in metadata so retention rules remain explicit.
- Use deterministic IDs or idempotency keys to avoid duplicating the same extracted fact.
- A correction should delete or tombstone the old memory before inserting the replacement.
Talqora enforces index-level API-key scopes server-side; metadata filters add application-level isolation but do not replace scoped credentials.