Skip to main content

Prerequisites

Before beginning, ensure you have the following access and components: AWS Credentials AWS Bedrock Model Access MemMachine Docker
  • 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:
After selecting Bedrock, you will be prompted to enter the necessary AWS credentials and configuration details:
  • AWS Access Key ID
  • AWS Secret Access Key
  • AWS Region (e.g., us-east-1 or eu-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.
Congratulations! You have now successfully deployed MemMachine using AWS Bedrock!

Manually Configuring MemMachine to use AWS Bedrock

To manually configure MemMachine for AWS Bedrock, you need to define your resources in the resources section of your cfg.yml file and then reference them in the memory configuration sections.

1. Define Bedrock Resources

Add or update the resources 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 your episodic_memory and semantic_memory sections.
Make sure to restart the MemMachine server for these changes to take effect.