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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
493a646f4e0659c9358a36bf4454b8580913a05057d413523a0766d90e396258
|
|
| MD5 |
b24bc6948d0c8a162b2bef0a5839b6b9
|
|
| BLAKE2b-256 |
32f0811f799c70c5e173ca9ffedfc9e03e67121f7693e797957004c690ce9f9e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0393a9ac0fe33fac5e7e081fdc46119c0aae6d2e5ceeb7625ce29a54854e595a
|
|
| MD5 |
9d4ace45723961e8bf12d761299f52c2
|
|
| BLAKE2b-256 |
38bdfe793c18f13d108e0f57629d7aa95b1423c36897baa0050d3aef7f3e7f57
|