Query Methods - Use
find() for keyword/semantic search, ask() for RAG-powered Q&A with context synthesis, and timeline() for chronological retrieval. All methods return structured dicts matching CLI JSON output format.findreturns a list of dicts containingframe_id,score,preview, and metadata identical to CLI JSON outputaskreturns a dict withanswer,context, and ranked hits (semantic/hybrid requireenable_vec=True)timelineyields chronological entries by scanning the Time Index Track; falls back gracefully when absent
Reading frame payloads
Use the hit URI to fetch metadata (frame) or bytes (blob):
Error handling
All methods raise the same typed exceptions as the CLI. CatchLockedError, CapacityExceededError, etc., to mirror CLI messaging and make it easier to follow the troubleshooting guidance in the Golden Test Pack.
Testing - Reuse the Golden Corpus to validate search + timeline outputs in Python integration tests to keep parity with CLI regressions.