Recallio Python Client
Recallio – AI-Powered Contextual Memory & Knowledge-Graph API
Store, index, and retrieve application “memories” with built-in fact extraction, dynamic summaries, reranked recall, and a full knowledge-graph layer.
🔧 Core Capabilities
-
Embeddings-backed Storage: Fast semantic write & recall.
-
LLM-Driven Insights: Fact extraction, reranking, summarization.
-
Full Lifecycle Management: Write, recall, delete, export.
-
Knowledge Graph: Entities, relationships, and powerful graph queries.
-
OpenAPI-First: Auto-generated Swagger docs and client libs.
Lightweight Python wrapper for the Recallio API.
Installation
pip install recallio
Quick start
from recallio import RecallioClient
client = RecallioClient(api_key="YOUR_RECALLIO_API_KEY")
Memory API
Write memory
from recallio import MemoryWriteRequest
req = MemoryWriteRequest(
userId="user_123",
projectId="project_abc",
content="The user prefers dark mode and wants notifications disabled on weekends",
consentFlag=True,
)
client.write_memory(req)
You can also pass a JSON object or array for content:
req_json = MemoryWriteRequest(
userId="user_123",
projectId="project_abc",
content=[{"role": "assistant", "content": "What is your name ?"},{"role": "user", "content": "My name is Guillaume"}],
consentFlag=True,
)
client.write_memory(req_json)
Note: when content is not a string, it must be either a dict like { "role": "assistant", "content": "..." } or a list of such dicts. The client validates and automatically JSON-serializes this format before sending.
Ingest document
from recallio import DocumentIngestRequest
ingest_req = DocumentIngestRequest(
file_path="/path/to/file.pdf",
userId="user_123",
projectId="project_abc",
consentFlag=True,
)
client.ingest_document(ingest_req)
Recall memories
from recallio import MemoryRecallRequest
recall_req = MemoryRecallRequest(
projectId="project_abc",
userId="user_123",
query="dark mode",
scope="user",
reRank=True,
)
results = client.recall_memory(recall_req)
for m in results:
print(m.content, m.similarityScore)
Recall summary
from recallio import RecallSummaryRequest
summary_req = RecallSummaryRequest(
projectId="project_abc",
userId="user_123",
scope="user",
)
summary = client.recall_summary(summary_req)
print(summary.content)
Recall topics
from recallio import RecallTopicsRequest
topics_req = RecallTopicsRequest(userId="user_123")
topics = client.recall_topics(topics_req)
print(topics.topics)
Delete memories
from recallio import MemoryDeleteRequest
delete_req = MemoryDeleteRequest(scope="user", userId="user_123")
client.delete_memory(delete_req)
Export memories
from recallio import MemoryExportRequest
export_req = MemoryExportRequest(type="fact", format="json", userId="user_123")
json_data = client.export_memory(export_req)
Graph Memory API
Add data to the graph
from recallio import GraphAddRequest
graph_req = GraphAddRequest(
data="John works at OpenAI in San Francisco",
user_id="user_123",
project_id="project_abc",
)
response = client.add_graph_memory(graph_req)
print(response.added_entities)
Search the graph
from recallio import GraphSearchRequest
search_req = GraphSearchRequest(query="Where does John work?", user_id="user_123")
graph_results = client.search_graph_memory(search_req)
for r in graph_results:
print(r.source, r.relationship, r.destination)
Get all relationships
relationships = client.get_graph_relationships(user_id="user_123")
Delete all graph data
client.delete_all_graph_memory(user_id="user_123")
Metadata
Release files for recallio 1.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| recallio-1.2.7.tar.gz | 7.4 kB | Without provenance | Details for recallio-1.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| recallio-1.2.7-py3-none-any.whl | Python 3 | none | any | Details for recallio-1.2.7-py3-none-any.whl |
Total release size: 14.6 kB
Release files / recallio-1.2.7.tar.gz
| Download URL | recallio-1.2.7.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb3d93340ab76fcef0508aaff9a07e9ccb95d4e55a6f1eadac3caee921d7353e
|
|
BLAKE2b-256 checksum How to use checksums |
a6b0737d2c7082981ac93b8740c70a41e81033083e5668dfefce6d5dca581c45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.6
|
Release files / recallio-1.2.7-py3-none-any.whl
| Download URL | recallio-1.2.7-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6cc45f8dace0a03567de5202ae647b22465afb1644b76a1ef0f5f88cada5746d
|
|
BLAKE2b-256 checksum How to use checksums |
7451825b98ca8548ff2232d2ea7e972f71536ee4e0bf89a07c674068e50edafe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.6
|
Security for recallio 1.2.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.