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 Hindsight
✗ from hindsight import Hindsight
Initialize Hindsight client, create a memory, and search for memories.
import os
from hindsight import Hindsight
client = Hindsight(api_key=os.environ.get('HINDSIGHT_API_KEY', ''))
# Create a memory
memory = client.create_memory(
content="Meeting with Alice about project X on Tuesday.",
metadata={"category": "work", "importance": 5}
)
print(f"Memory ID: {memory.id}")
# Search memories
results = client.search("project X")
for mem in results:
print(mem.content)
Debug
Known issues
breakingVersion 0.7.0 changed the import path from 'hindsight_api' to 'hindsight'. Update all imports.fixReplace 'from hindsight_api import ...' with 'from hindsight import ...'.
affects: <0.7.0 -> >=0.7.0
gotchaThe API key must be passed explicitly via environment variable or constructor; there is no automatic discovery.fixEither set HINDSIGHT_API_KEY environment variable or pass api_key parameter to Hindsight constructor.
affects: all
deprecatedThe method `store_memory` is deprecated in favor of `create_memory` since 0.6.0.fixUse `create_memory` instead of `store_memory`.
affects: >=0.6.0
gotchaThe library requires Python >=3.11. Installations on older Python versions will fail.fixUse Python 3.11 or later.
affects: all
Upgrade
Version history
0.7.2latest on PyPI · released Jun 2, 2026
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.