Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

Updated documentation for users (#365)

Charles Packer29d67ba848fa
diff --git a/README.md b/README.md
index 29fc11f4f..5530228b1 100644
--- a/README.md
+++ b/README.md
@@ -94,9 +94,40 @@ You can run the following commands in the MemGPT CLI prompt:
Once you exit the CLI with `/exit`, you can resume chatting with the same agent by specifying the agent name in `memgpt run --agent <NAME>`.
-## Documentation
+## Documentation
See full documentation at: https://memgpt.readthedocs.io/
+## Installing from source
+
+To install MemGPT from source, start by cloning the repo:
+```sh
+git clone [email protected]:cpacker/MemGPT.git
+```
+
+Then navigate to the main `MemGPT` directory, and do:
+```sh
+pip install -e .
+```
+
+Now, you should be able to run `memgpt` from the command-line using the downloaded source code.
+
+If you are having dependency issues using `pip install -e .`, we recommend you install the package using Poetry (see below). Installing MemGPT from source using Poetry will ensure that you are using exact package versions that have been tested for the production build.
+
+<details>
+ <summary>
+ <strong>Installing from source (using Poetry)</strong>
+ </summary>
+
+First, install Poetry using [the official instructions here](https://python-poetry.org/docs/#installing-with-the-official-installer).
+
+Then, you can install MemGPT from source with:
+```sh
+git clone [email protected]:cpacker/MemGPT.git
+poetry shell
+poetry install
+```
+</details>
+
## Support
For issues and feature requests, please [open a GitHub issue](https://github.com/cpacker/MemGPT/issues) or message us on our `#support` channel on [Discord](https://discord.gg/9GEQrxmVyE)
diff --git a/docs/contributing.md b/docs/contributing.md
index f5a967147..edea2295e 100644
--- a/docs/contributing.md
+++ b/docs/contributing.md
@@ -1,6 +1,23 @@
# Contributing
## Installing from source
+
+To install MemGPT from source, start by cloning the repo:
+```sh
+git clone [email protected]:cpacker/MemGPT.git
+```
+
+Then navigate to the main `MemGPT` directory, and do:
+```sh
+pip install -e .
+```
+
+Now, you should be able to run `memgpt` from the command-line using the downloaded source code.
+
+If you are having dependency issues using `pip install -e .`, we recommend you install the package using Poetry (see below). Installing MemGPT from source using Poetry will ensure that you are using exact package versions that have been tested for the production build.
+
+## Installing from source (using Poetry)
+
First, install Poetry using [the official instructions here](https://python-poetry.org/docs/#installing-with-the-official-installer).
Then, you can install MemGPT from source with:
@@ -8,14 +25,16 @@ Then, you can install MemGPT from source with:
git clone [email protected]:cpacker/MemGPT.git
poetry install -E dev
```
-We recommend installing pre-commit to ensure proper formatting during development:
-```sh
-poetry run pre-commit install
-poetry run pre-commit run --all-files
-```
### Formatting
+
We welcome pull requests! Please run the formatter before submitting a pull request:
```sh
poetry run black . -l 140
```
+
+We recommend installing pre-commit to ensure proper formatting during development:
+```sh
+poetry run pre-commit install
+poetry run pre-commit run --all-files
+```