Examples: memory and retrieval¶
Per-user memory, and RAG with citations. Back to the Examples gallery. Files here: 3.
| File | Shows | Install | Run | Docs |
|---|---|---|---|---|
examples/memory_privacy.py |
Memory privacy: retention, a customer's export request, and deleting everything for a user. | pip install agent-adapter |
python examples/memory_privacy.py |
Memory |
examples/memory_quickstart.py |
Memory: a ticket desk agent saves a seat preference in one chat and recalls it in the next. | pip install agent-adapter |
python examples/memory_quickstart.py |
Memory |
examples/retrieval_rag.py |
Retrieval (RAG): a model searches a museum help desk's documents and answers with citations. | pip install agent-adapter |
python examples/retrieval_rag.py |
Retrieval (RAG) |