Skip to main content
InMemoryDb stores sessions, memories, metrics, evaluation runs, knowledge, and cultural knowledge in the current Python process.
Data is lost when the process exits. Use InMemoryDb for demos and tests. Use a persistent database for production and for features that InMemoryDb does not implement, including tracing, spans, and learning storage.

Usage

Install the openai package: