In short.
Bedrock with Persistent Memory is a Python tutorial for developers building assistants that remember users, but it assumes AWS infrastructure and permissions that it does not explain. It connects the Mem0 OSS Memory class to Bedrock models and OpenSearch, then demonstrates adding and retrieving memories. The examples stop before generating a personalized reply. The credential example prints a secret access key, and the OpenSearch deployment settings need clarification before use. Runtime reliability and total operating cost remain unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete documentation page at [https://docs.mem0.ai/cookbooks/integrations/aws-bedrock], including its Mem0 OSS applicability notice, installation instructions, credential example, provider configuration and memory API examples. Linked component documentation, repository files, evaluation material and other tutorials are excluded. The page contains no licence text or benchmark results. No code was executed, no AWS resources were provisioned, and runtime behavior remains untested.
The overview
Identity
This cookbook appears in Mem0’s documentation at [https://docs.mem0.ai/cookbooks/integrations/aws-bedrock]. Its applicability notice explicitly names Mem0 OSS and the Memory class. Although the introduction describes a managed AWS stack, the code uses the Python mem0ai SDK rather than demonstrating Mem0 Platform.
Assessment
The guide is a useful configuration reference for a developer who already understands AWS access and OpenSearch deployment. It provides concrete provider settings and memory calls, but it is incomplete as a first AWS deployment tutorial or a complete assistant implementation. No returned memories or generated responses demonstrate that the configuration works.
Intended users
The intended audience is Python developers building assistants, tutors or support bots that retain information about users across conversations. It is particularly relevant when Bedrock and OpenSearch are already part of the planned application. Beginners can follow the preference example, but will need additional guidance for AWS infrastructure, credentials and permissions.
Documented capabilities
The page demonstrates adding inferred memories from conversation messages with m.add, searching with m.search, listing memories with m.get_all and retrieving one record with m.get. The add example associates memories with user_id='alice' and category metadata; search and listing examples filter by that user ID.
It does not demonstrate updating or deleting memories, applying retrieved information to a later model prompt, or generating a personalized answer. These omissions describe the tutorial’s coverage rather than establish limits of the wider SDK.
Using it
Requirements
The page prescribes pip install "mem0ai[extras]" and names boto3, opensearch-py and langchain-aws as dependencies. It specifies no Python version, Mem0 version or dependency pins.
The sample assumes AWS credentials, access to the configured Bedrock models and an accessible OpenSearch endpoint with the necessary permissions. It uses us-west-2 for the AWS region and request signing. Exact IAM policies, model access requirements, networking configuration and OpenSearch provisioning steps are not supplied.
How it works
Mem0 is configured with separate language model, embedding and vector storage providers. Embeddings are numerical representations used to find related content. Both model providers are set to aws_bedrock, while the vector store provider is opensearch. Memory.from_config(config) constructs the memory interface.
The embedding model is amazon.titan-embed-text-v2:0. The language model identifier is us.anthropic.claude-3-7-sonnet-20250219-v1:0, with temperature 0.1 and max_tokens 2000. The vector store declares embedding_model_dims=1024. OpenSearch authentication uses credentials from boto3.Session().get_credentials() and AWSV4SignerAuth. The page does not explain the internal memory extraction or reconciliation algorithms.
Setup
The documented sequence is to install the extras package, configure AWS_REGION, AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, construct the request signer, populate the provider configuration and initialize Memory. The displayed credential values and OpenSearch hostname are placeholders.
The OpenSearch configuration names a collection called mem0, uses port 443, enables SSL and certificate verification, and sets pool_maxsize to 20. The page supplies connection settings but no infrastructure creation procedure. Its credential-printing statements should be removed before real credentials are used.
Example
The sample conversation records Alice saying she dislikes thriller movies and likes science fiction. It passes the messages to m.add with user_id='alice' and metadata containing category='movie_recommendations'. A code comment identifies inferred memory storage as the default behavior.
The following snippets search and list memories using an Alice user filter, then retrieve a record by memory_id. The variables query and memory_id are not defined in the example. No output shows which preferences were extracted, what search returned or how a later recommendation used them.
Assessment & evidence
Limitations
The environment example prints AWS_SECRET_ACCESS_KEY. Substituting a real credential would expose that secret in console or notebook output. Those print statements are unsuitable for real credential handling.
The OpenSearch example sets the signing service to aoss while supplying a generic domain endpoint placeholder. It does not explain the intended deployment type or establish that the endpoint and signing settings work together. Their compatibility needs verification for the actual deployment.
The page provides no execution results, error handling, persistence checks or measurements of memory accuracy, latency or scale. User ID filters illustrate retrieval scope but do not establish application authorization or isolation between users. Retention, deletion and data residency behavior are unspecified.
Fit and trade-offs
The tutorial’s practical value is its concrete connection of memory management, Bedrock models and OpenSearch through one Memory interface. That makes it relevant to an application already planning to use these AWS components, while leaving infrastructure and access configuration to the developer.
Because the add operation is described as inferring memories, the extracted preferences need inspection before an application relies on them. The page’s broader claims about adaptive assistants remain un demonstrated by a generated reply or measured improvement in personalization.
Alternatives
The page does not compare competing memory libraries or deployment approaches. Its navigation links to a Self-Hosted AI Companion guide at [https://docs.mem0.ai/cookbooks/companions/local-companion-ollama]. That linked guide’s contents, requirements, costs and suitability are not assessed here.
Evidence
The available support is Mem0’s own explanation and code samples. These establish the documented configuration and intended API usage, but supply no command output, retrieved records or complete assistant response. A link titled Memory Evaluation provides no benchmark results within this page. Nothing was executed, so runtime behavior remains unassessed.
Access & freshness
Costs
The page provides no prices for Bedrock language model calls, embedding calls or OpenSearch operation and storage. It includes no workload assumptions, usage measurements or free-tier information. Total operating cost is unknown; the Mem0 OSS label does not establish that this AWS deployment is free.
Rights
The page identifies Mem0 as OSS and links to its repository at [https://github.com/mem0ai/mem0], but includes no licence text. The applicable licences and redistribution rights for the SDK, tutorial text and code examples are not established by this page. AWS service terms are also absent.
Freshness
The page metadata reports a last-modified date of 4 September 2026, and the supplied capture is dated 25 November 2026. This documentation timestamp does not identify a compatible Mem0 release. The installation is unpinned, and current SDK compatibility and availability of the named Bedrock models are unknown.
Next steps
Before adapting the example, establish the AWS permissions and model access it assumes, replace the OpenSearch placeholder, and confirm that the endpoint matches the signing service. Check the Memory method signatures against the SDK version you plan to use and remove the credential-printing statements.
For an initial evaluation, use fictional messages, define query and memory_id, and inspect the results of adding, searching, listing and retrieving memories. Evaluate persistence and user separation, then implement the missing step that supplies retrieved memories to an assistant’s response generation. Estimate operating cost using the intended workload.
