Skip to main content

Rust Examples

This document provides examples of how to use EngramDB in Rust 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.
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 Rust applications. You can combine these patterns to build more complex applications that leverage the full power of the database.