In short.
This page in the Mem0 Platform documentation shows developers how to save prepared text as memories in Mem0, a memory layer for AI (LLM) applications. Reworded duplicates remain and unsupported content is silently skipped. Setting infer=False bypasses memory deduction and stores supported message content verbatim. The guide covers retrieval and important role-handling rules, but its sample responses conflict with parts of its explanation. Setup details, operating costs and runtime performance are not established, and nothing was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is the complete selected documentation page at [https://docs.mem0.ai/platform/features/direct-import], including its notes, warnings, Python examples, sample responses and page metadata. Linked pages, pricing details, repository contents and support destinations are excluded. Runtime behavior, performance, costs and retrieval quality were not tested.
The overview
identity
Direct Import is a feature guide in Mem0's Platform documentation at [https://docs.mem0.ai/platform/features/direct-import]. It explains how to save predefined memories without the memory deduction phase, then retrieve them through search or filtered listing. Compatibility with Mem0's open-source edition is not established by this page.
assessment
The guide appears useful when developers already have curated text and want to preserve its wording. It provides a concrete API option and unusually specific caveats about duplicates, message roles and unsupported inputs. Its conflicting examples limit confidence in exact expected responses; import speed and retrieval quality are not assessed.
users
The main audience is developers integrating memory into AI applications. A plausible use is loading prepared user facts or existing memory records, provided they are plain text. Beginners need enough Python knowledge to understand message dictionaries, a client object and filters; experienced developers will find the duplicate rules and silent input omissions especially relevant.
capabilities
The documented operations are adding prepared messages with client.add(..., infer=False), finding relevant memories with client.search(...) and listing memories with client.get_all(...). Search examples filter by user_id, and get_all explicitly requires filters.
Illustrative responses show memory identifiers and content, with retrieval records also containing user identifiers, metadata, categories and timestamps. These examples do not establish a complete response contract.
Using it
requirements
The Python examples assume an existing client object. The page does not supply installation instructions, authentication steps, client initialization, supported SDK versions or a minimum Python version. Plan availability, request limits and batch-size limits are unknown.
Direct Import requires plain string content. The examples associate imports with user_id="alice" and use that identifier in retrieval filters.
mechanism
Setting infer=False on add skips memory deduction. The explanatory note says user and assistant messages are both stored regardless of the entity identifiers supplied, while system messages are dropped. Each retained message becomes a memory with its content unchanged, subject to the documented duplicate handling.
Identical text within the same scope is deduplicated using an exact text hash. Different wording of the same fact produces separate memories. Mixing infer=False and infer=True can also create duplicates because neither path checks the other's memories. The page does not define the precise scope boundaries here.
setup
With an already configured client, prepare a messages list containing role and plain string content fields, then use client.add(messages, user_id="alice", infer=False). The page does not provide the preceding client configuration steps.
For listing, the documented call is client.get_all(filters={"AND": [{"user_id": "alice"}]}). Calling get_all without filters does not follow the page's stated requirement. These instructions were not executed.
example
The example imports three messages about Alice: two user statements concerning badminton and cooking, plus an assistant comment about fitness. It then calls client.search("What is Alice's favorite sport?", filters={"user_id": "alice"}).
The displayed search response contains the badminton memory. This illustrates retrieving a relevant record; it does not demonstrate answer generation or measured retrieval accuracy.
Assessment & evidence
limitations
Direct Import does not support content supplied through image_url, pdf_url, txt_url or mdx_url. The warning says these messages are skipped without an error and omitted from results. A successful request therefore should not be treated as proof that every submitted message was stored.
Meaning-based duplicate detection is skipped, so paraphrases can accumulate as separate memories. Pagination, maximum content length, concurrency behavior and error recovery are not documented here.
reasoning
The practical tradeoff is control over stored wording in exchange for doing more preparation yourself. Because the documented behavior stores assistant text alongside user text, importing a conversation can preserve generated claims as memories. That is an implication of the role-handling rule, not an observed test result.
Choosing message boundaries and deciding which statements deserve storage therefore matter. Exact-text deduplication addresses identical retries within the documented scope; it does not resolve conflicting facts or differently worded repetitions.
alternatives
The page mentions infer=True as the other inference mode. It is the relevant option to investigate when memory deduction is wanted, but this page does not explain its full extraction behavior or provide comparative results. Other memory products and import approaches are not assessed.
evidence
The evidence is the complete captured Mem0 Direct Import documentation page, including its explanatory text, notes, warnings and sample inputs and outputs. Those outputs are documentation illustrations; no code was executed.
Two inconsistencies affect interpretation. The input includes an assistant message, but the displayed import and listing outputs omit it despite the note saying assistant messages are stored. The retrieval calls filter for user_id="alice", while their sample responses show user_id="pc123". These conflicts establish documentation uncertainty, not a demonstrated runtime defect.
Access & freshness
costs
The page gives no Direct Import prices, billing units, quotas or plan entitlements, so operating costs are unknown. Bypassing memory deduction does not establish that imports, storage or retrieval are free, and no measured cost saving is supplied.
rights
The page does not state licensing or redistribution terms for its documentation and code examples, or commercial-use terms for the Platform feature. Its GitHub links do not establish those permissions. Ownership, retention and training-use terms for imported data are also unknown from this page.
freshness
Page metadata reports modification on 31 July 2026, and the page was captured on 15 November 2026. No applicable SDK or API release is identified. The 2024 timestamps inside example responses describe sample records and do not establish the feature's release date or present behavior.
actions
Before adopting Direct Import, establish the supported client setup, applicable charges and data terms. Prepare plain text records, explicitly choose which message roles to retain and decide how to handle paraphrases or mixed inference modes.
An initial evaluation should compare intended records with returned results and filtered retrieval, checking assistant-message handling and user identifiers because the examples conflict. Verify exact retries and unsupported-input omissions before relying on import completeness. Those checks remain unperformed.
