Skip to main content

mem0-kronotop

License

Kronotop backend for mem0, built on kronotop-py.

Install

pip install mem0-kronotop

Usage

Call register() before the first Memory. It adds the kronotop provider to mem0.

from mem0 import Memory

from mem0_kronotop import register

register()

memory = Memory.from_config(
    {
        "vector_store": {
            "provider": "kronotop",
            "config": {
                "bootstrap": ["localhost:5484", "localhost:5485"],
                "namespace": "mem0",
                "collection_name": "mem0",
                "embedding_model_dims": 1536,
            },
        }
    }
)

bootstrap lists the members the client starts from, and defaults to localhost:5484. The other three values above are the defaults. The store creates the namespace and the bucket when they are missing.

config also takes the keyword arguments of the Kronotop client, such as password and ssl.

Example

The program below is a support assistant that remembers what a customer said. mem0 uses OpenAI for the language model and the embeddings by default, so set OPENAI_API_KEY before you run it.

from mem0 import Memory

from mem0_kronotop import register

register()

memory = Memory.from_config(
    {
        "vector_store": {
            "provider": "kronotop",
            "config": {
                "bootstrap": ["localhost:5484"],
                "namespace": "support",
                "collection_name": "customers",
            },
        }
    }
)

# mem0 reads the conversation and stores the facts it finds.
memory.add(
    [
        {"role": "user", "content": "My order arrived broken. I want a refund."},
        {"role": "assistant", "content": "Sorry about that. I opened a refund."},
        {"role": "user", "content": "Thanks. Please write to me by email only."},
    ],
    user_id="alice",
)

# Later, in another conversation.
found = memory.search("How should we contact her?", filters={"user_id": "alice"})
for result in found["results"]:
    print(result["score"], result["memory"])

# Everything mem0 knows about one customer.
for result in memory.get_all(filters={"user_id": "alice"})["results"]:
    print(result["id"], result["memory"])

memory.delete(found["results"][0]["id"])

Kronotop has no full-text search, so mem0 ranks by vector similarity alone.

Tests

The tests are in the kronotop-py repository, where this package is a uv workspace member. Run them from the repository root:

uv sync --all-packages
uv run pytest packages/mem0-kronotop/tests

The store tests need a Kronotop at kronotop://localhost:5484 and are skipped when none is running. The other tests need no server. --kronotop-url points them at another server:

uv run pytest packages/mem0-kronotop/tests --kronotop-url kronotop://192.168.1.10:5484

License

Apache License 2.0. See LICENSE.

Metadata

Release files for mem0-kronotop 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mem0-kronotop 0.2.0
File Size Uploaded Provenance Actions
mem0_kronotop-0.2.0.tar.gz 14.0 kB With provenance Details for mem0_kronotop-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mem0-kronotop 0.2.0
File Interpreter ABI Platform Actions
mem0_kronotop-0.2.0-py3-none-any.whl Python 3 none any Details for mem0_kronotop-0.2.0-py3-none-any.whl

Total release size: 29.1 kB

Release files / mem0_kronotop-0.2.0.tar.gz

Download URL mem0_kronotop-0.2.0.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2e9bef6c1e4a68ff745ab3770120e3676fac699c10cf60c7418cd6fed3839fcb
BLAKE2b-256 checksum
How to use checksums
b1e0bb2daa1e4b337ebec843342e2b19ebb5d3cdf0874b60673c6837e3e08bb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / mem0_kronotop-0.2.0-py3-none-any.whl

Download URL mem0_kronotop-0.2.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b23abb6e688a081f21724ab7e2029de73107565405078b75bbe0be7a87cfc1dc
BLAKE2b-256 checksum
How to use checksums
d868e19c02630f3040956a66b6c3db79da53099cded24f7b10a3ef45f8e6094f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for mem0-kronotop 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mem0_kronotop-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page