Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

DOC: Add MemGPT integration #184

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/integrations/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ We welcome pull requests to add new Integrations to the community.
|--------------|-----------|---------------|
| [🦜️🔗 Langchain](/integrations/langchain) | ✅ | ✅ |
| [🦙 LlamaIndex](/integrations/llama-index) | ✅ | :soon: |
| [📚🦙 MemGPT](/integrations/memgpt) | ✅ | |
| [Braintrust](/integrations/braintrust) | ✅ | ✅ |
| [🔭 OpenLLMetry](/integrations/openllmetry) | ✅ | :soon: |
| [🎈 Streamlit](/integrations/streamlit) | ✅ | ➖ |
Expand Down
26 changes: 26 additions & 0 deletions docs/integrations/memgpt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
slug: /integrations/memgpt
title: 📚🦙 MemGPT
---

MemGPT enables LLMs to manage their own memory and overcome limited context windows. You can use MemGPT to create perpetual chatbots that learn about you and modify their own personalities over time. You can connect MemGPT to your own local filesystems and databases, as well as connect MemGPT to your own tools and APIs. The MemGPT + Chroma integration allows you to back MemGPT's memory system with Chroma.

## MemGPT + Chroma

To enable the Chroma storage backend in MemGPT, install the dependencies with:
```
pip install `pymemgpt[chroma]`
```
You can configure Chroma with both the HTTP and persistent storage client via `memgpt configure`. You will need to specify either a persistent storage path or host/port dependending on your client choice. The example below shows how to configure Chroma with local persistent storage:
```
? Select LLM inference provider: openai
? Override default endpoint: https://api.openai.com/v1
? Select default model (recommended: gpt-4): gpt-4
? Select embedding provider: openai
? Select default preset: memgpt_chat
? Select default persona: sam_pov
? Select default human: cs_phd
? Select storage backend for archival data: chroma
? Select chroma backend: persistent
? Enter persistent storage location: /path/to/your/.memgpt/config/chroma
```