Hermes Local RAG
1.5.0: atomic memory corrections, scoped deletion, and stronger retrieval/evidence guidance. Read CHANGELOG.md for changes and limitations, and UPGRADE.md for the shared-inference and curated-image migration introduced in 1.4.0. See the synthetic benchmark and its limitations.
Private, fully local hybrid text and visual memory for Hermes Agent, implemented through the official MemoryProvider extension point.
Features
- EmbeddingGemma 300M through LiteRT/XNNPACK, with configurable 128/256/512/768-dimensional Matryoshka embeddings (512d default)
- SQLite + FTS5 + vector similarity, score thresholds, freshness/importance boosts, source diversity, and bounded context injection
- Physical profile/user namespaces before retrieval
- Explicit contextual admission through
local_rag_remember, with normalized atomic items instead of raw turns - In-place
local_rag_updatecorrections with exact-text conflict detection, stable identity, immutable scope/provenance, and transactional rollback - Selective historical backfill with pre-LLM filtering, structured extraction, resumable preview, human review, and explicit apply
- Independent scope, durability, status, confidence, importance, provenance, deduplication, deletion, migrations, and backups
- Project- and session-aware retrieval boundaries; built-in Markdown memory is mirrored as global durable context
- Project-root-confined text-file indexing with secret and prompt-injection rejection
- Optional CLIP ViT-B/32 ONNX visual index in a separate 512d vector space
- Button-driven setup inside Hermes Dashboard; no vector database server or Hermes core patch. One private local inference service starts on the first embedding request (see UPGRADE.md).
Install
Published package: hermes-local-rag on PyPI
For packaged-provider discovery, install it into the same Python environment that runs Hermes:
Upgrading from 1.3.2 or older: stop every Hermes Desktop and gateway process first. Version 1.4.0 performs a one-time, integrity-checked migration from
memory.sqlite/visual.sqliteto backup-safe.dbfiles and removes the legacy files after success.
python -m pip install hermes-local-rag==1.5.0
hermes config set memory.provider local_rag
The package exposes local_rag -> local_rag:register through the official hermes_agent.memory_providers entry-point group. Model download and initial configuration are still required; the Dashboard plugin flow below is the recommended guided setup.
Install without Terminal
Prerequisite: an existing Hermes Agent installation.
- Open Hermes Dashboard → Plugins → Install.
- Install
condr-at/hermes-local-rag/local_rag. - Open the new Local RAG tab.
- Click Install dependencies.
- Open and accept the required Gemma Terms, create a read-only Hugging Face token, paste it into the password field, and click Sign in.
- Choose Text only or Text + visual, then click Download selected models.
- Optionally create a historical preview, edit and accept individual candidates, then explicitly apply the reviewed subset.
- Save the memory settings and click Activate Local RAG.
- Click Run health check.
The dashboard never displays or logs the Hugging Face token. Model downloads and setup subprocesses use fixed argument lists and a controlled environment rather than a user shell. Gemma Terms acceptance is explicit and cannot be bypassed by the installer.
The setup wizard:
- installs pinned runtime dependencies into the Hermes venv;
- downloads selected model artifacts to
$HERMES_HOME/models; - writes configuration atomically;
- activates
memory.provider=local_rag; - checks runtime imports, models, the database, and provider availability.
It never deletes $HERMES_HOME/local-rag, where indexes and configuration live. Backfill is off by default and requires explicit confirmation.
Terminal fallback
The technical installer remains available for development and recovery:
git clone https://github.com/condr-at/hermes-local-rag.git
cd hermes-local-rag
python3 install.py
Verify after installation or a Hermes update:
python3 install.py --check
Then restart the gateway, or start a new Desktop session.
Configuration
~/.hermes/local-rag/config.json:
{
"embedding_dimensions": 512,
"episodic_ttl_days": null,
"summary_ttl_days": null
}
null means infinite retention. Changing embedding_dimensions requires explicit reindexing; startup fails loudly rather than mixing incompatible vectors.
Backfill
Raw transcript backfill is disabled. Historical sessions pass through role filtering, credential and prompt-injection rejection, bounded structured extraction, and strict validation. Preview writes only a mode-0600 review artifact; every candidate starts rejected, and only explicitly accepted items can be applied. Namespace, project, session, timestamps, and source-message provenance come from the trusted export rather than the model.
The Dashboard owns the normal preview → edit/accept → apply flow. The equivalent recovery CLI is:
hermes local_rag preview --plan /path/to/review.json
# Edit only accepted flags/text after reviewing the artifact.
hermes local_rag apply --plan /path/to/review.json
Preview is resumable by session and never writes the memory database. Re-applying a reviewed plan is idempotent through scope-aware exact deduplication.
Maintenance
The provider exposes tools for status, search, deletion, candidate review, file/session ingestion, pruning, and visual search. A standalone CLI is also installed as hermes-local-rag.
See local_rag/README.md for architecture, policies, tools, and recovery details.
Privacy and licensing
No indexed data, model weights, credentials, or session exports belong in this repository. Model weights are downloaded directly from their upstream repositories and retain their own terms. EmbeddingGemma is governed by Gemma Terms. Plugin code is MIT licensed.
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 hermes_local_rag-1.5.0.tar.gz.
File metadata
- Download URL: hermes_local_rag-1.5.0.tar.gz
- Upload date:
- Size: 5.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac00eb31c9547a6f670725d6c8b9f634cfc6144801b2b380306875ac95eb28cf
|
|
| MD5 |
6b9c7c1c3eaa514152fd2eb0945792e2
|
|
| BLAKE2b-256 |
868ce70c7b13387890bc4f9a8eaa3a4cd2495c8ca31f6cf7d5f8a4c57a832af7
|
Provenance
The following attestation bundles were made for hermes_local_rag-1.5.0.tar.gz:
Publisher:
publish-pypi.yml on condr-at/hermes-local-rag
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hermes_local_rag-1.5.0.tar.gz -
Subject digest:
ac00eb31c9547a6f670725d6c8b9f634cfc6144801b2b380306875ac95eb28cf - Sigstore transparency entry: 2737992896
- Sigstore integration time:
-
Permalink:
condr-at/hermes-local-rag@209254d17280c8e3b91595e8d20be93d8b284050 -
Branch / Tag:
refs/tags/v1.5.0 - Owner: https://github.com/condr-at
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@209254d17280c8e3b91595e8d20be93d8b284050 -
Trigger Event:
release
-
Statement type:
File details
Details for the file hermes_local_rag-1.5.0-py3-none-any.whl.
File metadata
- Download URL: hermes_local_rag-1.5.0-py3-none-any.whl
- Upload date:
- Size: 134.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2dd39acf30959dcf6f5c16787acd11fe27a6a4ec5aa3e3d7b6c487ea87957c07
|
|
| MD5 |
09657dda604d4eeb21b5673fa4a71c00
|
|
| BLAKE2b-256 |
6edaf54b528bd9d3ed4f40466079606bab04e96b4f28bbf3078c7caadf179f3b
|
Provenance
The following attestation bundles were made for hermes_local_rag-1.5.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on condr-at/hermes-local-rag
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hermes_local_rag-1.5.0-py3-none-any.whl -
Subject digest:
2dd39acf30959dcf6f5c16787acd11fe27a6a4ec5aa3e3d7b6c487ea87957c07 - Sigstore transparency entry: 2737992925
- Sigstore integration time:
-
Permalink:
condr-at/hermes-local-rag@209254d17280c8e3b91595e8d20be93d8b284050 -
Branch / Tag:
refs/tags/v1.5.0 - Owner: https://github.com/condr-at
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@209254d17280c8e3b91595e8d20be93d8b284050 -
Trigger Event:
release
-
Statement type: