Prerequisites
Before beginning, ensure you have the following access and components: AWS Credentials- AWS Access key ID and AWS Secret Access Key.
- Need help? Follow this guide: Create an AWS access key| Amazon Web Services.
- Access to the necessary models on AWS Bedrock.
- Need help? Follow this guide: AWS Foundation Models| Amazon Web Services.
- You can find the latest release here: GitHub - MemMachine/MemMachine.
- The Docker containerization platform must be installed and running.
Installation: QuickStart Configuration
The installation script will automatically guide you through setting up your Large Language Model (LLM) provider. When prompted, you must select Bedrock to integrate with AWS Bedrock. Your prompt input should match the following example:- AWS Access Key ID
- AWS Secret Access Key
- AWS Region (e.g.,
us-east-1oreu-central-1) - Choice of LLM
- Choice of Embedding Model
If you are unsure about model selection, simply press Enter at the respective prompts to use the recommended default options.
Manually Configuring MemMachine to use AWS Bedrock
To manually configure MemMachine for AWS Bedrock, you need to define your resources in theresources section of your cfg.yml file and then reference them in the memory configuration sections.
1. Define Bedrock Resources
Add or update theresources block in your cfg.yml file. You will need to configure a Language Model, an Embedder, and optionally a Reranker.
2. Update Memory Configuration
Now, reference these resource IDs in yourepisodic_memory and semantic_memory sections.
Make sure to restart the MemMachine server for these changes to take effect.

