Metadata-Version: 2.4
Name: memoire-engine
Version: 0.1.2
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
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/tazwaryayyyy/memoire-ai/blob/main/CHANGELOG.md
Project-URL: Homepage, https://github.com/tazwaryayyyy/memoire-ai
Project-URL: Issues, https://github.com/tazwaryayyyy/memoire-ai/issues
Project-URL: Repository, https://github.com/tazwaryayyyy/memoire-ai

# memoire-engine (Python)

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

`memoire-engine` `0.1.2` is on PyPI as prebuilt `cp310-abi3` wheels for Linux `x86_64`
(`manylinux_2_28`), macOS `arm64` and Windows `x86_64` (Python 3.10+). There is no sdist. The
import name is `memoire_engine`; the unrelated PyPI project `memoire` is a different package, so
do not install it expecting this one.

```bash
pip install memoire-engine
```

On any other platform (for example Intel macOS, Linux `aarch64` or musl), or to develop, build
from a source checkout (needs a Rust toolchain; targets without a prebuilt ONNX Runtime also need
`ORT_LIB_LOCATION`, see `docs/RELEASE.md`), 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
87 MiB) 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.

