From 61e2a40d55a697f71100110a51e22d7434cdcda7 Mon Sep 17 00:00:00 2001
From: Parth Sharma <109902593+parthshr370@users.noreply.github.com>
Date: Thu, 13 Nov 2025 23:48:55 +0530
Subject: [PATCH] [docs] python quickstart fix (#3742)
---
docs/docs.json | 4 ++++
docs/open-source/python-quickstart.mdx | 23 +++++++++++++++++++----
2 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/docs/docs.json b/docs/docs.json
index 3e9962198..faa9b17b8 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -1055,6 +1055,10 @@
{
"source": "/v0x/examples/aws_neptune_analytics_hybrid_store",
"destination": "/cookbooks/integrations/neptune-analytics"
+ },
+ {
+ "source": "/features/memory-export",
+ "destination": "/platform/features/memory-export"
}
]
}
diff --git a/docs/open-source/python-quickstart.mdx b/docs/open-source/python-quickstart.mdx
index c4e20e28c..99334b3b9 100644
--- a/docs/open-source/python-quickstart.mdx
+++ b/docs/open-source/python-quickstart.mdx
@@ -11,6 +11,16 @@ Get started with Mem0's Python SDK in under 5 minutes. This guide shows you how
- Python 3.10 or higher
- OpenAI API key ([Get one here](https://platform.openai.com/api-keys))
+Set your OpenAI API key:
+
+```bash
+export OPENAI_API_KEY="your-openai-api-key"
+```
+
+
+Uses OpenAI by default. Want to use Ollama, Anthropic, or local models? See [Configuration](/open-source/configuration).
+
+
## Installation
@@ -24,8 +34,9 @@ pip install mem0ai
```python
from mem0 import Memory
-m = Memory(api_key="your-openai-api-key")
-```
+m = Memory()
+
+````
@@ -35,7 +46,8 @@ messages = [
{"role": "assistant", "content": "Hey Alex! I'll remember your interests."}
]
m.add(messages, user_id="alex")
-```
+````
+
@@ -45,6 +57,7 @@ print(results)
```
**Output:**
+
```json
{
"results": [
@@ -59,9 +72,11 @@ print(results)
]
}
```
+
+
By default `Memory()` wires up:
- OpenAI `gpt-4.1-nano-2025-04-14` for fact extraction and updates
@@ -79,7 +94,7 @@ Learn how to search, update, and manage memories with full CRUD operations
-Customize Mem0 with different LLMs, vector stores, and embedders for production use
+ Customize Mem0 with different LLMs, vector stores, and embedders for production use