Skip to main content

UniMemory SDK — The memory layer for AI applications

Project description

UniMemory Python SDK

Official Python SDK for the UniMemory API.

Installation

pip install unimemory

Quick Start

from unimemory import UniMemory, CreateMemoryOptions, IngestTextOptions, SearchOptions

client = UniMemory(api_key="um_live_...")

# Store an explicit memory (no LLM, deterministic)
result = client.add(CreateMemoryOptions(content="User prefers dark mode", tags=["preference"]))
print(result.id)

# Ingest text — LLM extracts memories in the background
resp = client.ingest_text(IngestTextOptions(content="We discussed the new API design..."))
print(resp.source_id)

# Search memories
results = client.search("What theme does the user prefer?")
for r in results.results:
    print(r.content, r.salience)

# List, get, update, delete
memories = client.list(limit=10)
memory = client.get(memories.memories[0].id)
client.delete(memory.id)

API Reference

Method Description
add(options) Store explicit memory (no LLM)
list(limit, offset, user_id, sector) List memories
get(memory_id) Get single memory
update(memory_id, options) Update tags/salience/metadata
delete(memory_id) Delete memory
search(query, options) Semantic search
ingest_text(options) Ingest text (LLM extraction)
ingest_chat(options) Ingest chat messages
ingest_document(options) Ingest document

Documentation

Full documentation at https://docs.unimemory.app

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

unimemory-1.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

unimemory-1.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unimemory-1.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for unimemory-1.0.1.tar.gz
Algorithm Hash digest
SHA256 493a646f4e0659c9358a36bf4454b8580913a05057d413523a0766d90e396258
MD5 b24bc6948d0c8a162b2bef0a5839b6b9
BLAKE2b-256 32f0811f799c70c5e173ca9ffedfc9e03e67121f7693e797957004c690ce9f9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unimemory-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for unimemory-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0393a9ac0fe33fac5e7e081fdc46119c0aae6d2e5ceeb7625ce29a54854e595a
MD5 9d4ace45723961e8bf12d761299f52c2
BLAKE2b-256 38bdfe793c18f13d108e0f57629d7aa95b1423c36897baa0050d3aef7f3e7f57

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