Rust programing language®
448 subscribers
14 photos
188 links
rust programing channel
Download Telegram
I built a local-first AI memory layer for LLMs in Rust (no cloud, no API keys)

Every LLM app has the same problem — the model forgets everything between
conversations. Cloud solutions like Mem0 exist but they send your data
to their servers. I built mnemo to solve this locally.

What it does

mnemo runs as a sidecar process next to your app. You POST text to it,
it extracts named entities and relationships using a local LLM (Ollama),
builds a persistent knowledge graph, and injects relevant context back
into your prompts automatically.

The stack

● Rust — core engine, 4 crates (mnemo-core, mnemo-api, mnemo-cli, mnemo-bench)
● SQLite + WAL mode — persistent storage, survives restarts
● petgraph — in-memory knowledge graph with BFS traversal
● Axum — REST API sidecar any app can call
● Ollama — fully local LLM, zero API costs

Fully free by default
docker compose up -d
docker exec mnemo-ollama ollama pull llama3
curl http://localhost:8080/health

Works with OpenAI or Anthropic too if you bring your own key.

Python SDK
from mnemo import MnemoClient

client = MnemoClient()
client.ingest("I'm building a Rust vector database called vecdb")
print(client.get_context("what am I working on?"))


Numbers

122 Rust tests, 21 Python SDK tests
Sub-millisecond entity lookup
~4ms full retrieval pipeline (debug build)

Links

GitHub: https://github.com/zaydmulani09/mnemo

Would love feedback, especially on the retrieval scoring and graph
traversal approach.

via DEV Community: rust (author: Zayd Mulani)
I built a Rust CLI because I kept forgetting to open my todo app

I always wanted to organize my tasks in a todo app, but because the habit was new, the next day i would always forget the existence of it. So i built something that opens itself (or, well, whenever your terminal does, by default)

Meet Amnosia. The CLI Tool that opens whenever your terminal does.
It's different from a regular todo app, because it gets in your face (in a good way!)

Install

To install, you can just clone the repo on github and then use cargo to put it in your PATH.

git clone https://github.com/GennaroBiondi/amnosia
cd amnosia
cargo install --path .


Usage

adding reminders, seeing them, and deleting them, is as easy as three commands:

The magic part

Add this to your .zshrc or .bashrc:

amnosia remind -n 7

Now every time you open a terminal, your reminders are right there.
No app to open. No habit to build.

You can view more here on github

via DEV Community: rust (author: Gennaro Biondi)