A local, teaching-first RAG pipeline (Ollama + LangChain + FAISS) that turns any model into an instant expert.
Project description
Mnemosyne
A local, teaching-first RAG pipeline (Ollama + LangChain + FAISS) that turns any model into an instant expert on documents it has never seen, with no fine-tuning, no API keys, and nothing leaving the box.
Point Mnemosyne at a corpus; it embeds and indexes it, and a small local model then answers questions about it with inline citations. It ships a CLI, an MCP stdio server, and an HTTP server. The full story (how RAG works, the design choices, the knowledge-pack model) is in the GitHub README.
Install
pip install "mnemosyne-rag[cpu]"
FAISS is not a core dependency. The cpu extra pulls faiss-cpu from PyPI; the preferred
path installs faiss-cpu or faiss-gpu from conda-forge (see environment.yml in the
repo). The distribution is mnemosyne-rag; the import package and CLI are mnemosyne.
Quickstart
Requires Ollama running locally.
ollama pull bge-m3 # embeddings
ollama pull qwen2.5:1.5b # tiny chat model
mnemosyne ingest ubiquiti # build the index for a pack
mnemosyne ask ubiquiti "How do I adopt a UniFi switch?" # grounded answer + citations
mnemosyne chat ubiquiti # interactive, with history
mnemosyne packs # list packs + index status
Serve
mnemosyne-mcp # MCP stdio server (list_packs / ask / search) for coding agents
mnemosyne-http # FastAPI server on 127.0.0.1:8088 (GET /health, POST /ask, POST /search)
Learn more
- Full README: the idea, how it works, technology choices
- RAG-101: RAG from first principles
- Knowledge packs: build your own expert
- Architecture: modules and data flow
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mnemosyne_rag-0.6.4.tar.gz.
File metadata
- Download URL: mnemosyne_rag-0.6.4.tar.gz
- Upload date:
- Size: 107.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed975bbf62cd1002a77cc002b34834ead27e427b61dff17e0834fab42fd4402c
|
|
| MD5 |
654807b85bd11bdd3a5d4e902c5224ed
|
|
| BLAKE2b-256 |
b35547cdb15b3d64a5fbc8899eb687bb1f0e87b43061059e6055c5eb79745fef
|
Provenance
The following attestation bundles were made for mnemosyne_rag-0.6.4.tar.gz:
Publisher:
release.yml on freed-dev-llc/mnemosyne
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mnemosyne_rag-0.6.4.tar.gz -
Subject digest:
ed975bbf62cd1002a77cc002b34834ead27e427b61dff17e0834fab42fd4402c - Sigstore transparency entry: 2129121128
- Sigstore integration time:
-
Permalink:
freed-dev-llc/mnemosyne@38ec5db11e0da9351dfcd88cd779910f7b6ebd22 -
Branch / Tag:
refs/tags/v0.6.4 - Owner: https://github.com/freed-dev-llc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@38ec5db11e0da9351dfcd88cd779910f7b6ebd22 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mnemosyne_rag-0.6.4-py3-none-any.whl.
File metadata
- Download URL: mnemosyne_rag-0.6.4-py3-none-any.whl
- Upload date:
- Size: 93.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac3a8ab5c82ee34a8a65d2fc1fc6f39276ead22646fc9e63f467225a472f3079
|
|
| MD5 |
03422c0fdb2238d5fdb5964343cab738
|
|
| BLAKE2b-256 |
a6b02ac2f621cbbdecf019c54cd571181e09c8c037284f9014de3aa753038fa5
|
Provenance
The following attestation bundles were made for mnemosyne_rag-0.6.4-py3-none-any.whl:
Publisher:
release.yml on freed-dev-llc/mnemosyne
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mnemosyne_rag-0.6.4-py3-none-any.whl -
Subject digest:
ac3a8ab5c82ee34a8a65d2fc1fc6f39276ead22646fc9e63f467225a472f3079 - Sigstore transparency entry: 2129121209
- Sigstore integration time:
-
Permalink:
freed-dev-llc/mnemosyne@38ec5db11e0da9351dfcd88cd779910f7b6ebd22 -
Branch / Tag:
refs/tags/v0.6.4 - Owner: https://github.com/freed-dev-llc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@38ec5db11e0da9351dfcd88cd779910f7b6ebd22 -
Trigger Event:
push
-
Statement type: