Skip to content

Official Python SDK for RecallBricks - Add persistent memory with relationship graphs to your AI applications. Enterprise-grade with 40+ tests.

Notifications You must be signed in to change notification settings

recallbricks/recallbricks-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RecallBricks Python SDK

The Memory Layer for AI - Persistent memory across all AI models.

Installation

pip install recallbricks

Quick Start

from recallbricks import RecallBricks

rb = RecallBricks("your-api-key")

# Create a memory
memory = rb.create_memory(
    text="User prefers dark mode",
    tags=["preference", "ui"]
)

# Search memories
results = rb.search("dark mode", limit=5)
for memory in results:
    print(memory.text)

Features

Relationship Support

RecallBricks supports memory relationships to build connected knowledge graphs:

from recallbricks import RecallBricks

rb = RecallBricks("your-api-key")

# Create a memory
memory = rb.save("Fixed authentication bug in login flow")

# Get relationships for a memory
rels = rb.get_relationships(memory['id'])
print(f"Found {rels['count']} relationships")

# Get memory graph with relationships
graph = rb.get_graph_context(memory['id'], depth=2)
print(f"Graph contains {len(graph['nodes'])} connected memories")

# Search with relationships included
results = rb.search("authentication", include_relationships=True)
for result in results:
    if result.get('relationships'):
        print(f"Memory: {result['text']}")
        print(f"Related memories: {result['relationships']['count']}")

Documentation

Visit https://recallbricks.com/docs for full documentation.

License

MIT

About

Official Python SDK for RecallBricks - Add persistent memory with relationship graphs to your AI applications. Enterprise-grade with 40+ tests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages