Skip to main content

Python SDK for FluxMem — dynamic memory + wiki layer for AI systems

Project description

fluxmem-sdk

Python client for FluxMem — dynamic memory + wiki layer for AI systems.

pip install fluxmem-sdk

Quickstart

from fluxmem_sdk import FluxMem

fm = FluxMem(api_key="fxm_your_key", namespace="user:default")

# Memory
fm.add(content="User prefers Python", memory_type="procedural")
results = fm.search("preferences")
context = fm.get_context("Tell me about the user", max_tokens=2000)

# Wiki / Articles
article = fm.articles.create(
    title="Deploying to GCP",
    body="## Steps\n\n1. ...\n2. ...",
    article_type="procedure",
    tags=["deploy", "gcp"],
)
articles = fm.articles.search(query="how do we deploy?")
fm.articles.feedback(article["article"]["id"], signal="helpful")

# Unified search across memories + articles
mixed = fm.unified_search("what does the user prefer?")

Async

from fluxmem_sdk import AsyncFluxMem

async with AsyncFluxMem(api_key="fxm_...", namespace="user:default") as fm:
    await fm.add(content="...", memory_type="semantic")
    results = await fm.search("...")
    await fm.articles.create(title="...", body="...", article_type="fact")

Features

  • Memory layer: episodic / semantic / procedural / deductive with lifecycle (decay → archive → tombstone)
  • Wiki layer: typed articles (fact / procedure / decision / playbook / anti-pattern / episode) with maturity transitions driven by feedback
  • Hybrid retrieval: dense + sparse + graph + entity boost via RRF fusion
  • Unified search: one query across memory + wiki corpora
  • Implicit feedback: signed context_token per search hit — agents mark articles as used/unused to update ranking

Docs

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fluxmem_sdk-0.2.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fluxmem_sdk-0.2.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file fluxmem_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: fluxmem_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for fluxmem_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 25aee37b3cd66f17485b4f484dd31d11aac972ac19bd7ee7e29fb77815ea7fc6
MD5 e0fc46a1d71573504aacb870747f2d21
BLAKE2b-256 7ea8727239c4e14d0dd2bda5999cb80bfae2aa83b4d2004381fa26a301126c46

See more details on using hashes here.

File details

Details for the file fluxmem_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: fluxmem_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for fluxmem_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 303d91de2f9352d23dc4f99962ae331b454d96205c2a92eb016208b76fbb297f
MD5 cef89e7dc7dd28ecdd44df5af3c606a1
BLAKE2b-256 0c93944171f2b91ac9aac91c5b086127fc213ecca9d16d1ce6b588545df62d5e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page