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.0.tar.gz (9.6 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.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novyx_llamaindex-1.0.0.tar.gz
  • Upload date:
  • Size: 9.6 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.0.tar.gz
Algorithm Hash digest
SHA256 79d309e53e31e44bc68fa3ad0c3682b174e499a89d5ca844274329b0c92e68aa
MD5 1d956dc8844fcd6e32e4d1f5664650f1
BLAKE2b-256 1db0e967f80761d400397e147c96320d355727b560c22a1729d218d9ace2bc3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for novyx_llamaindex-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ccfa67745dbfc20d92a9bacd24edf134f1a6c466292af260c638744da4bf4ba
MD5 ef95c61e65fc3cad867d3d43a1623f16
BLAKE2b-256 7386f6d49e5a754495187e3cbb9853e3a2c6d16b2d0697ed5a7003d221e698d0

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