From 022982eb361517e98302cd2734ace38a930c9a55 Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Thu, 12 Oct 2023 19:04:23 -0700 Subject: [PATCH] Update README.md --- README.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/README.md b/README.md index ca719997..757a0ccd 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Add your OpenAI API key to your environment: export OPENAI_API_KEY=YOUR_API_KEY ``` +By default MemGPT will use `gpt-4`, so your API key will require `gpt-4` API access. + ## MemGPT CLI To run MemGPT in CLI mode, simply run `main.py`: @@ -22,3 +24,50 @@ To run MemGPT in CLI mode, simply run `main.py`: ```sh python3 main.py ``` + +To create a new starter user or starter persona (that MemGPT gets initialized with), create a new `.txt` file in [/memgpt/humans/examples](/memgpt/humans/examples) or [/memgpt/personas](/memgpt/personas/examples), then use the `--persona` or `--human` flag when running `main.py`. For example: + +```sh +# assuming you created a new file /memgpt/humans/examples/me.txt +# note: no .txt extension, just 'me' +python main.py --human me +``` + +### Options + +```text +--persona + load a specific persona file +--human + load a specific human file +--first + allows you to send the first message in the chat (by default, MemGPT will send the first message) +``` + +### CLI commands + +While using MemGPT via the CLI you can run various commands + +Basic commands: + +```text +/save + save a checkpoint of the current agent/conversation state +/load + load a saved checkpoint +/dump + view the current message log (see the contents of main context) +/memory + print the current contents of agent memory +``` + +Debugging commands: + +```text +/pop + undo the last message in the conversation +/heartbeat + send a heartbeat system message to the agent +/memorywarning + send a memory warning system message to the agent +```