Hebbrix
Collections

Collections

Organize memories into collections for multi-tenant applications, different projects, or separate knowledge domains.

Use Cases

Multi-tenant Apps

One collection per customer to keep data isolated

Knowledge Domains

Separate collections for different topics or projects

Endpoints

Code Examples

Python
from hebbrix import Hebbrix

client = Hebbrix()

# Create a collection for a customer
collection = client.collections.create(
    name="Customer: Acme Corp",
    description="Memories for Acme Corp support",
    metadata={"customer_id": "acme_123", "plan": "enterprise"}
)

# Add memories to the collection
client.memories.create(
    content="Acme Corp uses Python for their backend",
    collection_id=collection.id
)

# Search within a specific collection
results = client.search(
    query="what language do they use?",
    collection_id=collection.id
)

Assistant

Ask me anything about Hebbrix