Metadata-Version: 2.4
Name: memoire-engine
Version: 0.1.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: pytest>=7 ; extra == 'dev'
Requires-Dist: pytest-cov ; extra == 'dev'
Requires-Dist: langchain-core>=0.3 ; extra == 'langchain'
Requires-Dist: llama-index-core>=0.10 ; extra == 'llama-index'
Provides-Extra: dev
Provides-Extra: langchain
Provides-Extra: llama-index
License-File: LICENSE
Summary: Local-first semantic memory engine for AI coding agents
Keywords: ai,memory,embeddings,semantic-search,llm,agents
Home-Page: https://github.com/tazwaryayyyy/Memorie-AI
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/tazwaryayyyy/Memorie-AI/blob/main/CHANGELOG.md
Project-URL: Homepage, https://github.com/tazwaryayyyy/Memorie-AI
Project-URL: Issues, https://github.com/tazwaryayyyy/Memorie-AI/issues
Project-URL: Repository, https://github.com/tazwaryayyyy/Memorie-AI

# memoire-engine (Python)

Python bindings for the Memoire semantic memory engine, built as a PyO3
extension with maturin. Import name: `memoire_engine`.

The PyPI distribution name `memoire-engine` is **not published yet**. The
unrelated PyPI project `memoire` is a different package; do not install it
expecting this one.

Install from a source checkout (needs a Rust toolchain), inside a virtualenv:

```bash
python -m venv .venv && . .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install maturin
cd bindings/python
maturin develop --release
```

```python
from memoire_engine import Memoire

with Memoire("agent.db") as m:
    m.remember("Fixed the JWT issuer validation bug in auth middleware")
    for r in m.recall("authentication security issues", top_k=3):
        print(f"[{r.score:.3f}] {r.content}")
```

The first real `remember()`/`recall()` downloads the embedding model (about
23 MB) unless it is already in the Hugging Face cache.

`import_namespace(snapshot)` ignores trust metadata in the snapshot by default.
Pass `preserve_trust=True` only to restore a snapshot you exported yourself.

Tests: `cd bindings/python && pytest tests/` (needs the extension built as above).
`MEMOIRE_LIB` is not used by this package. See `docs/RELEASE.md` for releases.

