In short.
This Mem0 guide helps developers control which conversation facts their AI applications save, but its prompt-based filtering needs validation with real transcripts. It documents custom_instructions in Python and customInstructions in TypeScript, examples of accepted and ignored messages, and conversion of extracted facts into individual memories. The displayed outputs illustrate intended behavior; execution results, extraction accuracy, SDK compatibility and operating costs are not established.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete page at [https://docs.mem0.ai/open-source/features/custom-instructions], including both language tabs, the rename notice, examples and validation advice. Linked quickstarts, repositories, provider references and related guides are excluded. Installability, runtime behavior, extraction reliability, performance and current provider compatibility were not assessed.
The overview
Identity
Open Source Custom Instructions is a Mem0 documentation guide about tailoring fact extraction from conversations. It explains a feature of Mem0's memory library rather than offering a standalone application. The original page is [https://docs.mem0.ai/open-source/features/custom-instructions].
Assessment
The guide is useful for developers who already use Mem0 and can define what their application should remember. Configuration samples and examples of both retained and ignored content give it practical instructional value. It does not provide a complete installation walkthrough or demonstrate reliability across real workloads.
Users
Customer-support developers are the clearest audience: the examples retain customer names, order identifiers, purchase details and return requests while excluding casual conversation. Beginners receive concrete input/output examples; experienced Python and TypeScript developers receive configuration names and initialization patterns. Applying the technique to another domain requires defining that domain's relevant facts.
Capabilities
The guide explains how to specify allowed fact categories, supply positive and negative examples, request JSON containing a facts array, and configure the extraction prompt in both SDKs. It also covers checking empty results for irrelevant messages, versioning prompts, rerunning regression samples after edits and reviewing saved memories for drift.
Using it
Requirements
Following the samples requires a Mem0 Python or TypeScript environment, a configured language model and a clear definition of which facts to retain. Both configuration examples use OpenAI; the TypeScript sample reads OPENAI_API_KEY from the environment. Installation commands, minimum SDK and runtime versions, and a complete storage configuration are not supplied.
Mechanism
The developer supplies instructions describing relevant facts and a few example messages paired with desired outputs. These examples guide the language model toward extracting useful information and returning an empty facts array for irrelevant input. Mem0 is described as converting extracted facts into separate memory entries.
The extraction format and the illustrated add response have different roles: the model is asked for JSON containing facts, while add returns results entries containing memory and event fields. The examples use ADD as the event value.
Setup
Write a focused prompt defining allowed information, with short examples showing populated and empty facts arrays. In Python, import Memory from mem0, place custom_instructions at the top level of the configuration alongside llm, and initialize with Memory.from_config(config). In TypeScript, import Memory from mem0ai/oss, use the top-level customInstructions property, and initialize with new Memory(config).
The page states that custom_fact_extraction_prompt was renamed to custom_instructions. It does not identify the SDK release introducing that change, so compatibility with a particular installed version remains unknown.
Example
The documentation illustrates adding a message about ordering a laptop yesterday with order identifier 12345. Its displayed response contains three separate memories: the laptop purchase, the order identifier and the relative purchase date, each carrying an ADD event.
A second illustration supplies a hiking preference to the support-focused configuration and shows an empty results array. These are documentation examples, not observed execution results. The page does not demonstrate converting the relative date into an absolute date.
Assessment & evidence
Limitations
The page explicitly warns that broad prompts can let unrelated facts through. It supplies no measured extraction accuracy, latency, benchmark or evidence of strict enforcement. Handling of malformed JSON, missed relevant facts, retries and changes to existing memories is not explained.
The examples represent facts as strings rather than typed customer or order records. Although the guide recommends checking the facts array during rollout, it does not show how to inspect raw extraction output through either SDK.
Reasoning
The documented mechanism supports using this guide when useful memory has a narrow definition. Order details and customer requests are relevant to its support example, while a hiking preference is excluded. This makes usefulness for similar applications a reasonable inference, but the page does not quantify improvements in memory quality, storage use or downstream answers.
Alternatives
The page does not compare competing memory tools or alternative extraction methods, so relative quality, setup effort and cost are unknown. It links to an add-operations guide [https://docs.mem0.ai/core-concepts/memory-operations/add] and a support-triage cookbook [https://docs.mem0.ai/cookbooks/operations/support-inbox] as related reading; their contents are outside this report.
Evidence
The evidence is the complete Mem0 documentation page, including its Python and TypeScript tabs, parameter-rename notice, prompt examples, illustrated responses and verification advice. It supports descriptions of documented configuration and intended behavior. No execution logs, benchmark results or independent validation are supplied, and the snippets were not executed.
Access & freshness
Costs
The page provides no prices, measured token usage, storage charges or hosting estimates, so total operating cost is unknown. The OpenAI model settings and output-token limits shown in the samples are configuration examples, not evidence of actual usage or cost.
Rights
The page labels the feature Open Source and links to Mem0's repository, but it contains no licence text or explicit redistribution terms for the documentation, example prompt or code snippets. Specific commercial-use and redistribution permissions are unknown from this page.
Freshness
The page metadata records modification on 2026-09-16; the supplied capture is dated 2026-11-15T04:19:55.724Z. No Mem0 SDK version is specified. The Python configuration names gpt-5-mini, while TypeScript names gpt-4-turbo-preview and uses a different output-token limit. Model availability and compatibility with the illustrated settings are not established by this page.
Actions
Define the exact information your application should retain, then adapt the prompt with representative examples of accepted and ignored messages. Confirm that your installed SDK supports the documented configuration key and that the chosen model accepts the settings.
Before relying on the configuration, evaluate it with real transcripts and compare saved memories with expected facts. Check that unrelated messages produce empty results and relevant facts remain separate. Version prompt changes, rerun regression samples after edits and periodically inspect stored memories, as the guide recommends.
