Skip to main content

Enx (enx)

Real-time external memory and cognitive continuity layer for LLMs, autonomous agents, and model pretraining workflows.

PyPI version License: MIT Python Version


Overview

Enx is a high-performance, real-time memory synchronization and cognitive continuity engine designed to bridge state across sessions, training checkpoints, and distributed agentic pipelines.

By leveraging FastEmbed (ONNX-backed), Enxi operates with zero PyTorch runtime overhead, delivering ultra-fast vector embeddings and surgical prompt contextualization out-of-the-box.


Key Features

  • Zero PyTorch Overhead: Utilizes fastembed with ONNX runtime for ultra-lightweight, high-speed embedding generation without heavy deep learning framework dependencies.
  • Multi-Tier Vector Storage: Built-in native connectors for Qdrant and Milvus to handle hot cache and cold archival memory tiers seamlessly.
  • Dynamic Context Bridge: Instantly augments raw user prompts and training checkpoints with relevant historical memories.
  • Production-Ready API Gateway: Powered by FastAPI and Pydantic v2 for high-throughput, validated async gateway communication.

Installation

Install Enx globally or inside your virtual environment straight from PyPI:

pip install enxi

Quickstart Usage
Here is how to initialize the Enxi SDK client to store, recall, and contextualize memories in your application:

Python
from sdk.client import EnxClient

# Initialize the client layer
client = EnxClient()

# 1. Store (Remember) a new memory point
point_id = client.remember(
    memory_id="node-session-001",
    content="Cognitive continuity layer successfully synchronized across nodes.",
    tier="cold",
    metadata={"module": "core", "sovereign_stack": True}
)
print(f"Committed memory with UUID: {point_id}")

# 2. Recall memories via semantic search
results = client.recall(
    query_text="How is the cognitive state synchronized?",
    tier="cold",
    limit=2
)
for idx, hit in enumerate(results, 1):
    print(f"{idx}. Score: {hit['score']:.3f} | Content: {hit['payload']['content']}")

# 3. Contextualize (Augment prompts or training loops)
augmented = client.contextualize(
    user_prompt="Explain the sovereign memory architecture.",
    tier="cold",
    limit=2
)
print(f"Augmented Prompt Payload:\n{augmented['augmented_prompt']}")
Project Structure
Plaintext
enxi/
├── pyproject.toml
├── README.md
├── src/
│   ├── api/          # FastAPI routers and gateway endpoints
│   ├── core/         # Engine, bridging, scraper, and consolidators
│   ├── sdk/          # Client SDK for seamless integration
│   └── storage/      # Qdrant and vector store connectors
└── examples/         # Pretraining hooks and SDK demo scripts

Metadata

Release files for enxi 1.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 enxi 1.0
File Size Uploaded
enxi-1.0.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for enxi 1.0
File Interpreter ABI Platform
enxi-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 24.7 kB

Release files / enxi-1.0.tar.gz

Download URL enxi-1.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
70ec9f1cad1876da25d165a9e870490a00c4b8ddd2981d61621f12dd19a09a58
BLAKE2b-256 checksum
How to use checksums
7bf11e06f58c62ddced74e5ab7385ae3dcbdc554756b3f29e797ab1f8acb29be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release files / enxi-1.0-py3-none-any.whl

Download URL enxi-1.0-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e18082e3421b0249c0f71a6e09a751a3dd6cda6592848b28afdd6112ce04719
BLAKE2b-256 checksum
How to use checksums
6cd7707fdca1903239473ba0713bc9066b5d42dcdef0fc00a455175bc68c9ac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.11

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

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