Skip to main content
This example docstring points to the nonexistent cookbook/agents/personalized_memories_and_summaries.py path. Save this fence as memory.py and use the generated run step below.
memory.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run PgVector

5

Run the example

Save the code above as memory.py, then run:
Full source: cookbook/90_models/openai/chat/memory.py