Mneme
Local RAG pipeline with built-in evaluation. Postgres + pgvector for hybrid search, any /v1/-compatible LLM backend for embeddings and inference.
Setup
Requires Python 3.12+, uv, Postgres with the pgvector extension.
Copy .env.example to .env and fill in your values, then install:
cp .env.example .env
uv sync
Usage
uv run mneme digest # parse DATA_PATH source into cache
uv run mneme ingest <file.jsonl>
uv run mneme ask "query"
uv run mneme sweep <fast|medium|thorough> --limit 30
Library
from mneme import Mneme, Config
cfg = Config(database_url="postgresql://...", api_key="sk-...")
async with Mneme(cfg) as m:
await m.ingest("./corpus")
answer = await m.ask("What is X?")
rows = await Mneme.sweep(cfg, "medium", limit=30)
Input format
JSONL, one document per line:
{"content": "...", "source": "optional", "created_at": "2026-04-01T12:00:00Z", "metadata": {}}
Only content is required. source falls back to the file stem, created_at to the current time, metadata to {}.
Metadata
Release files for nerva-mneme 0.1.46
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| nerva_mneme-0.1.46.tar.gz | 27.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nerva_mneme-0.1.46-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.7 kB
Release files / nerva_mneme-0.1.46.tar.gz
| Download URL | nerva_mneme-0.1.46.tar.gz |
|---|---|
| Size | 27.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
edf2e2e79dff62d49c6e0479bd2af98fc7bf2b7c8ffad1ae06a397fc5fa79eef
|
|
BLAKE2b-256 checksum How to use checksums |
e950547f9dec8c1c5d6481c073234085422297675e639e06960d7249250436d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / nerva_mneme-0.1.46-py3-none-any.whl
| Download URL | nerva_mneme-0.1.46-py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aeb48c9e2b5623067d1913032a2c79b49f8dbf86bc9ae2682e555fbc4061d91b
|
|
BLAKE2b-256 checksum How to use checksums |
f6cd8425d42e8f9f31ec6e30826415ee41023f66995b38e315b7e8df92055624
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for nerva-mneme 0.1.46
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.