Skip to main content

Persistent memory + rollback + audit trail for LlamaIndex agents using Novyx Core

Project description

novyx-llamaindex

Persistent memory + rollback + audit trail for LlamaIndex agents, powered by Novyx Core.

Install

pip install novyx-llamaindex

Quick Start

ChatStore (drop-in for SimpleChatStore)

from novyx_llamaindex import NovyxChatStore
from llama_index.core.memory import ChatMemoryBuffer

chat_store = NovyxChatStore(api_key="nram_your_key")
memory = ChatMemoryBuffer.from_defaults(
    chat_store=chat_store,
    chat_store_key="user-123",
    token_limit=3000,
)

BaseMemory (semantic recall)

from novyx_llamaindex import NovyxMemory

memory = NovyxMemory.from_defaults(
    api_key="nram_your_key",
    session_id="user-123",
    top_k=5,
)

# Use with any LlamaIndex chat engine
engine = SimpleChatEngine.from_defaults(memory=memory)
response = engine.chat("Hello!")

Retriever (RAG pipeline)

from novyx_llamaindex import NovyxRetriever

retriever = NovyxRetriever(api_key="nram_your_key", top_k=5)
nodes = retriever.retrieve("What are the user's preferences?")

Features

  • Persistent: Memories survive across sessions, restarts, and deployments
  • Semantic: recall() finds relevant memories by meaning, not just keywords
  • Rollback: Undo memory mistakes with memory.rollback("2 hours ago")
  • Audit Trail: Every operation is SHA-256 hashed and logged
  • Cross-session: Agent A learns it, Agent B knows it (via Context Spaces)

API Reference

Class Base Class Description
NovyxChatStore BaseChatStore Drop-in persistent chat store
NovyxMemory BaseMemory Semantic memory with recall on get()
NovyxRetriever BaseRetriever RAG retriever over Novyx memories
NovyxMemoryClient Low-level client for direct Novyx API access

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

novyx_llamaindex-1.0.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

novyx_llamaindex-1.0.2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file novyx_llamaindex-1.0.2.tar.gz.

File metadata

  • Download URL: novyx_llamaindex-1.0.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for novyx_llamaindex-1.0.2.tar.gz
Algorithm Hash digest
SHA256 84fa4dba8cb24a00a2fddc3a58482a8dc8022c99ba8a548effd2923f6fedef10
MD5 1629cd44bf72c3da514892ee17f0c6d7
BLAKE2b-256 d29c0eae989dbcd45928daaca2d78d66cdb702bf5ea1d90436d9c8146576a27f

See more details on using hashes here.

File details

Details for the file novyx_llamaindex-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for novyx_llamaindex-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 52e9a729c688fda95c7df8279891845d82a0d697ae73de77ae172a0042cbc344
MD5 3fe3713da665bc3a5d497309514e0e68
BLAKE2b-256 cb15c5e4e3c2c025a01fc7b5200ce44b56f73898971681bada319bcce7ca7f46

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