### Install TinyCortex Source: https://tinyhumans.gitbook.io/neocortex Add the tinycortex crate to your Rust project using cargo. ```bash cargo add tinycortex ``` -------------------------------- ### Initialize and Query Memory Source: https://tinyhumans.gitbook.io/neocortex Demonstrates creating an in-memory store, inserting a memory record, and performing a text-based search. ```rust use tinycortex::memory::{InMemoryMemoryStore, MemoryInput, MemoryQuery, MemoryStore}; #[tokio::main] async fn main() -> anyhow::Result<()> { let store = InMemoryMemoryStore::new(); store .insert(MemoryInput::new("preferences", "User prefers dark mode")) .await?; let hits = store.search(MemoryQuery::text("theme preference")).await?; for hit in hits { println!("{:.3} {}", hit.score, hit.record.content); } Ok(()) } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.