Files
letta-server/docs/contributing.md
Charles Packer 29d67ba848 Updated documentation for users (#365)
---------

Co-authored-by: Vivian Fang <hi@vivi.sh>
2023-11-07 17:30:14 -08:00

1.2 KiB

Contributing

Installing from source

To install MemGPT from source, start by cloning the repo:

git clone git@github.com:cpacker/MemGPT.git

Then navigate to the main MemGPT directory, and do:

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.

Then, you can install MemGPT from source with:

git clone git@github.com:cpacker/MemGPT.git
poetry install -E dev

Formatting

We welcome pull requests! Please run the formatter before submitting a pull request:

poetry run black . -l 140

We recommend installing pre-commit to ensure proper formatting during development:

poetry run pre-commit install
poetry run pre-commit run --all-files