- last_n: Retrieves the last n memories
- first_n: Retrieves the first n memories
- semantic: Retrieves memories using semantic search
Code
cookbook/agent_concepts/memory/05_memory_search.py
Usage
1
Create a virtual environment
Open the
Terminal
and create a python virtual environment.2
Install libraries
3
Run Example