Skip to main content

Python Examples

This document provides examples of how to use EngramDB in Python applications.

Basic Usage

This example demonstrates the basic operations of creating a database, adding memories, and searching for similar memories.

Working with Connections

This example demonstrates how to create and manage connections between memory nodes.

Complex Queries

This example demonstrates how to use the query builder to perform complex queries.

Persistent Storage

This example demonstrates how to use file-based storage for persistence.

Working with Temporal Layers

This example demonstrates how to use temporal layers to track memory evolution.

Using NumPy Integration

This example demonstrates how to use NumPy arrays with EngramDB.
This example demonstrates how to use the HNSW vector index for faster similarity search.
This example demonstrates how to use EngramDB’s built-in embedding functionality to create memory nodes from text and perform semantic search.
These examples demonstrate the core functionality of EngramDB in Python applications. You can combine these patterns to build more complex applications that leverage the full power of the database.