Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Basic Memory Programming Usage

The pyrit.memory module provides functionality to keep track of the conversation history, scoring, data, and more. You can use memory to read and write data. Here is an example that retrieves a normalized conversation:

No new upgrade operations detected.
Unknown: user: Hi, chat bot! This is my initial prompt.
Unknown: assistant: Nice to meet you! This is my response.
Unknown: user: Wonderful! This is my second prompt to the chat bot!