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.

Update contributing.md (#518)

Charles Packer1a490b8aef63
diff --git a/docs/contributing.md b/docs/contributing.md
index edea2295e..977569ac6 100644
--- a/docs/contributing.md
+++ b/docs/contributing.md
@@ -7,34 +7,30 @@ To install MemGPT from source, start by cloning the repo:
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)
+**Installing dependencies with poetry** (recommended):
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 install -E dev
+```shell
+cd MemGPT
+pip install poetry
+poetry install -E dev -E postgres -E local -E legacy
+```
+If you are managing dependencies with poetry, you will need to run MemGPT commands with `poetry run memgpt run`.
+
+**Installing dependencies with pip**:
+```shell
+cd MemGPT
+# Optional: set up a virtual environment.
+# python3 -m venv venv
+# . venv/bin/activate
+pip install -e '.[dev,postgres,local,legacy]'
```
-### Formatting
+Now, you should be able to run `memgpt` from the command-line using the downloaded source code.
-We welcome pull requests! Please run the formatter before submitting a pull request:
-```sh
-poetry run black . -l 140
-```
+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.
-We recommend installing pre-commit to ensure proper formatting during development:
-```sh
-poetry run pre-commit install
-poetry run pre-commit run --all-files
-```
+### Contributing to the MemGPT project
+
+We welcome pull requests! Please see [our contributing guide](https://github.com/cpacker/MemGPT/blob/main/CONTRIBUTING.md) for instructions on how to contribute to the project.