Registry / ai-ml / hindsight-api-slim

hindsight-api-slim

JSON →
library0.7.2pypypi✓ verified 79d ago

Hindsight provides agent memory that mimics human recall by using semantic chunking and dynamic retrieval. It's designed for AI agents that need to remember context over long conversations. Current version 0.7.2, rapid release cadence.

pip install hindsight-api-slim
INSTALL
IMPORT
SIG · HINDSIGHT-API-SLIM
H
hindsight-api-slim
ai-mlpythonv0.7.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Hindsight
from hindsight_api import HindsightConfig
from hindsight import Hindsight

Initialize Hindsight client with API key, store and retrieve memories.

import os from hindsight import Hindsight client = Hindsight(api_key=os.environ.get('HINDSIGHT_API_KEY', '')) result = client.store_memory("The user likes Python.") print("Memory stored:", result) memories = client.retrieve_memory("What does the user like?") print("Retrieved memories:", memories)
Debug
Known issues
breakingIn v0.7.x, the default embedding provider changed from 'text-embedding-ada-002' to 'text-embedding-3-small'. Existing stored embeddings may be incompatible.
fix
Set 'embedding_model' explicitly in Hindsight constructor or re-embed existing data.
affects: >=0.7.0
deprecatedThe method 'remember' has been deprecated in favor of 'retrieve_memory' since v0.6.0.
fix
Replace 'remember()' calls with 'retrieve_memory()'.
affects: >=0.6.0
gotchaAPI key is required even for local-only use due to authentication handshake. Offline mode is not supported.
fix
Obtain an API key from the Hindsight service and set it via the 'api_key' parameter or environment variable.
affects: all
gotchaMemory retrieval uses cosine similarity threshold default 0.7; low relevance results may be omitted if threshold is too high.
fix
Adjust the 'threshold' parameter in 'retrieve_memory()' between 0.0 and 1.0.
affects: all
Upgrade
Version history
0.7.2latest on PyPI · released Jun 2, 2026
Audit
Dependencies
openairequiredRequired for embedding generation
Agent activity
18 hits · last 30 days
node
18
Resources

No resource links recorded.

hindsight-api-slim — pip install hindsight-api-slim · libregistry