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.1.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.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: novyx_llamaindex-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2fe00670b7044dd22d37787545638cfd310fd881c1e76162c38bfec22a6d281b
MD5 d47af4248fbbc6c9ba2eec55d7a51e67
BLAKE2b-256 d6ea93184e339a26d70a974e2d3d532009e91caa70cee50154d8c7f840b94079

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for novyx_llamaindex-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa0ff75f86130420f77dc557c688007b6924a374ad9c812b2f06d8815f3d3c88
MD5 39c8276671b3345938a8f61d46412b54
BLAKE2b-256 d1227761d438bc989f8a888a355b667d8c913c4e7154444de21fa54a03f0fa2f

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