Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

add note

zzstoatzz0040d838995f
diff --git a/examples/memory.py b/examples/memory.py
index 4ca21d1de..7be486dd3 100644
--- a/examples/memory.py
+++ b/examples/memory.py
@@ -2,6 +2,8 @@
# dependencies = ["pydantic-ai-slim[openai]", "asyncpg", "numpy", "pgvector", "fastmcp"]
# ///
+# uv pip install 'pydantic-ai-slim[openai]' asyncpg numpy pgvector fastmcp
+
"""
Recursive memory system inspired by the human brain's clustering of memories.
Uses OpenAI's 'text-embedding-3-small' model and pgvector for efficient similarity search.